Skip to content

Commit 4dfedfa

Browse files
committed
Merge branch 'develop' into sheffieldnick-debounced-search
2 parents ebcf141 + 06d1b04 commit 4dfedfa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+14410
-6346
lines changed

.browserslistrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ie 9

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
version: 2
1+
version: 2.1
22
jobs:
33
build:
44
docker:
5-
- image: circleci/node:6.15
5+
- image: circleci/node:14.15.1
66
steps:
77
- checkout
88
- restore_cache:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ docs/_site
44
docs/.sass-cache
55
docs/.jekyll-metadata
66
coverage
7+
docs/vendor

.npmignore

+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
docs/
1+
docs
2+
__test__
3+
.circleci
4+
WISHLIST.md
5+
webpack.config.js
6+
Release.md
7+
prettier.config.js
8+
.prettierignore
9+
.codecov.yml
10+
.browserslistrc

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14.15.1

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.min.js

History.md renamed to CHANGELOG.md

+47-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
# Changelog
22

3+
### 2.1.0 - 2020-11-21
4+
5+
- **[Feature]** #634 Add item template function
6+
- **[Feature]** #591 Support adding custom pagination item
7+
- **[Bugfix]** #667 Fix `getAttribute` fallback method
8+
- **[Bugfix]** #636 Aviod strange ie11 bug
9+
- **[Bugfix]** #570 Don't empty original value array when adding items async
10+
- **[Misc]** #637 Reuse iteration indices
11+
12+
### 2.0.0 - 2020-11-21 - Winter cleanup 🧹
13+
14+
- **[Breaking]** Drop support for IE6-8
15+
- **[Website]** Update Jekyll to remove security warnings
16+
- **[Website]** Fix all examples (sorry that they we're broken)
17+
- **[Misc]** Update dev dependencies to latest version: Webpack 3.12.0 -> 5.6.0, jest 23.3 -> 26.6.3, jquery 3.3.1 -> 3.5.1, Removed: jshint jshint-loader
18+
- **[Misc]** Replace uglify-js with terser
19+
- **[Misc]** Update Node for dev from 6.15 to 14.15.1
20+
- **[Misc]** Prettier on everything
21+
- **[Misc]** Make release script simpler
22+
- **[Misc]** Rename History.md to CHANGELOG.md
23+
- **[Misc]** Use `babal-loader` with `@babel/preset-env` for supporting IE9-11
24+
- **[Misc]** Add source-maps to `/dist`
25+
326
### 1.5.1
27+
428
- **[Misc]** Added WISHLIST.md for feature requests to allow cleanup of issue list.
529
- **[Misc]** Update CircleCI from 1.0 to 2.0
630
- **[Website]** Use https instead of http for listjs.com
@@ -11,23 +35,27 @@
1135
- **[Bugfix]** Don't break pagination if page=0
1236
[See commit →](https://github.com/javve/list.js/commit/b3db0de731d436422e016b5e17f7ceab5941cd5d)
1337
[See commit →](https://github.com/javve/list.js/commit/725bc188d7ba72c7d234bda1e09fc50b40661310)
38+
1439
### 2017-01-29 v1.5.0
40+
1541
- **[Feature]** Bundle fuzzySearch and pagination plugins into List.js
1642
[See commit →](https://github.com/javve/list.js/commit/2f5322fd139ee6f30cef3bb5e15d382ff29f9489)
1743
- **[Misc]** Switch from Grunt to Webpack and from Mocha to Jest
1844
[See commit →](https://github.com/javve/list.js/commit/8376ef01b1da4b6e60a7457d628d97a803a82e14)
1945

2046
### 2017-01-19 v1.4.1
47+
2148
- **[Bugfix]** Move string-natural-compare to dependencies instead of devDependencies
2249
[See commit →](https://github.com/javve/list.js/commit/c17162b26fd5093d3ddde01e11a3f748310d993c)
2350

24-
2551
### 2017-01-15 v1.4.0
52+
2653
- **[Bugfix/Feature]** Change natural-sort library to support custom alphabets
27-
and thereby handle JavaScripts unicode bugs like sorting ÅÄÖ in Swedish wrong.
54+
and thereby handle JavaScripts unicode bugs like sorting ÅÄÖ in Swedish wrong.
2855
[See commit →](https://github.com/javve/list.js/commit/81e1386bed88d1f932e729feca2b3649e489bdfe)
2956

3057
### 2016-10-23 v1.3.0
58+
3159
- **[Bugfix]** Make mkdir in build script OS agnostic
3260
[See commit →](https://github.com/javve/list.js/commit/ba387125efddd7f5f4f8360bce516ae740cb5ae5)
3361
- **[Bugfix]** Make it possible to reset search columns
@@ -46,6 +74,7 @@ and thereby handle JavaScripts unicode bugs like sorting ÅÄÖ in Swedish wrong
4674
[See commit →](https://github.com/javve/list.js/commit/1af94012de89fd6bcf8446c31305ad517507c44b)
4775

4876
### 2016-02-27: v1.2.0
77+
4978
It's been two years since the last update of List.js. That is absolutely not ok
5079
and I'm very sorry that it has taken so long. I promise I'll do better in the future!
5180

@@ -100,14 +129,15 @@ I hope you'll like this update!
100129
get same values as first item in list
101130
[See commit →](https://github.com/javve/list.js/commit/3a4733d52cff25ef99ee8a1326c0b54be81d64ca)
102131

103-
104132
### 2014-02-03: 1.1.1
133+
105134
- **[Bugfix]** Update `javve/events` version which fixes critical bugs in Safari
106135
for PC and PhantomJS (which makes the command line tests work again).
107136
- **[Bugfix]** Clear search when clicking in the HTML5 clear button.
108137
- **[Misc]** Add History.md file for changelog instead of having it at Listjs.com.
109138

110139
### 2014-02-03: 1.1.0
140+
111141
- **[Breaking]** The sorting API is update so it looks like this
112142
`listObj.sort('name', { order: "asc "})` and `listObj.sort('name', { order: "desc "})`
113143
instead or `listObj.sort('name', { desc: true/false })`.
@@ -117,11 +147,12 @@ I hope you'll like this update!
117147
- **[Bugfix]** Remove sorting when searching and filtering.
118148
- **[Bugfix]** Fix sorting and search when using pagiation plugin
119149

120-
121150
### 2014-01-17: 1.0.2
151+
122152
- **[Bugfix]** Fix error that broke the lib in IE8.
123153

124154
### 2013-11-12: 1.0.0
155+
125156
- **[Feature]** Add more events and enable to add them on initialization.
126157
- **[Feature]** Add support for Component.js, Bower, RequireJS and CommonJS
127158
- **[Feature]** Make it possible to remove event handlers by `.off('event', handler)`
@@ -143,42 +174,49 @@ I hope you'll like this update!
143174
- **[Change]** Move plugins into seperated repos: <a href="https://github.com/javve/list.pagination.js">github.com/javve/list.pagination.js</a> and <a href="https://github.com/javve/list.fuzzysearch.js">github.com/javve/list.fuzzysearch.js</a>
144175
- **[Change]** Plugin initiation have changed. See <a href="/docs/plugins">getting started with plugins
145176

146-
147177
### 2012-04-24: 0.2.1
148-
- Fuzzy Search plugin, `.filter()` changes and bug fixes *[Read more »](http://jonnystromberg.com/listjs-0-2-1-release-notes/)*
178+
179+
- Fuzzy Search plugin, `.filter()` changes and bug fixes _[Read more »](http://jonnystromberg.com/listjs-0-2-1-release-notes/)_
149180

150181
### 2012-01-23: 0.2.0
151-
- Lots of updates and interesting features. *[Read more »](http://jonnystromberg.com/listjs-0-2-0-plugins-paging/)*
182+
183+
- Lots of updates and interesting features. _[Read more »](http://jonnystromberg.com/listjs-0-2-0-plugins-paging/)_
152184

153185
### 2011-12-15: 0.1.4
186+
154187
- `.filters()`, `.sort()` and `.search()` now deped on each other. If the list is filtered and then there is a search, the items hidden by the filters will stay hidden etc.
155188
- `.filter()` is the only way to reset filter. `.filter(false)` does not work anymore.
156189

157190
### 2011-11-29: 0.1.3 release
191+
158192
- Added function `.clear()` that removes all items from the list
159193
- Changed the sort function to be based on `data-sort` instead of `rel`
160194
- When sorting one category, all sort-related classes will be removed from the other sort buttons
161195
- Updated `.sort(valueName, sortFunction)` to `.sort(valueName, options)`, se more info in the documentation
162196

163197
### 2011-11-16: 0.1.2 release
198+
164199
- Sorting is now indicated by class `asc` or `desc` at sorting buttons
165-
- Added three new small helper functions `hasClass(element, class)`, `addClass(element, class)``
166-
and `removeClass(element, class)`</li>
200+
- Added three new small helper functions `hasClass(element, class)`, ` addClass(element, class)`` and `removeClass(element, class)`</li>
167201

168202
### 2011-10-20: 0.1.1 release
203+
169204
- Added possibility to reverse sort the list
170205

171206
### 2011-10-18: 0.1 release
207+
172208
- Examples at Listjs.com works in IE7,8,9 (IE6 is not tested, should work)
173209
- More documentation
174210
- Misc bug fixes
175211

176212
### 2011-10-15 Final alpha 0.3 release
213+
177214
- More documentation
178215
- Only show 200 items at same time, huge speed increase
179216
- Misc bug fixes
180217

181218
### 2011-08-08 Alpha 0.2 release
219+
182220
- Added asynchronous item adding
183221
- Added asynchronous list indexing
184222
- Improved (but incomplete) documentation

README.md

+29-21
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# List.js
2+
23
Perfect library for adding **search**, **sort**, **filters** and **flexibility** to
34
**tables**, **lists** and various HTML elements. Built to be invisible and work on existing HTML.
45
Really simple and easy to use!
@@ -10,6 +11,7 @@ Really simple and easy to use!
1011
[![jsDelivr Hits](https://data.jsdelivr.com/v1/package/npm/list.js/badge?style=rounded)](https://www.jsdelivr.com/package/npm/list.js)
1112

1213
### Core idea
14+
1315
- Simple and invisible
1416
- Easy to apply to existing HTML
1517
- No dependencies
@@ -18,35 +20,45 @@ Really simple and easy to use!
1820
- Handle thousands of items
1921

2022
### Features
23+
2124
- Works both lists, tables and almost anything else. E.g. `<div>`,`<ul>`,`<table>`, etc.
2225
- Search [Read more ›](http://listjs.com/docs/list-api#search)
2326
- Sort [Read more ›](http://listjs.com/docs/list-api#sort)
2427
- Filter [Read more ›](http://listjs.com/docs/list-api#filter)
2528
- Simple templating system that adds possibility to add, edit, remove items [Read more ›](http://listjs.com/docs/list-api#add)
26-
- Plugins [Read more ›](http://listjs.com/docs/plugins)
27-
- Support for Chrome, Safari, Firefox, IE6+
29+
- Support for Chrome, Safari, Firefox, IE9+
2830

2931
### Download / Install
30-
##### Via Bower
31-
```
32-
bower install list.js
33-
```
32+
3433
##### Via NPM
34+
3535
```
3636
npm install list.js
3737
```
38+
39+
##### Via Bower
40+
41+
```
42+
bower install list.js
43+
```
44+
3845
##### Via CDNJS
46+
3947
```html
40-
<script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script>
48+
<script src="//cdnjs.cloudflare.com/ajax/libs/list.js/2.0.0/list.min.js"></script>
4149
```
50+
4251
##### Via Direct Download
43-
- [Compressed list.js](https://raw.githubusercontent.com/javve/list.js/v1.5.0/dist/list.min.js)
44-
- [Uncompressed list.js](https://raw.githubusercontent.com/javve/list.js/v1.5.0/dist/list.js)
52+
53+
- [Compressed list.js](https://raw.githubusercontent.com/javve/list.js/v2.0.0/dist/list.min.js)
54+
- [Uncompressed list.js](https://raw.githubusercontent.com/javve/list.js/v2.0.0/dist/list.js)
4555

4656
### Questions / How to?
57+
4758
https://stackoverflow.com/questions/tagged/list.js
4859

4960
### Demo / Examples
61+
5062
- [Existing list](http://listjs.com/examples/existing-list)
5163
- [Existing list + add](http://listjs.com/examples/existing-list-add)
5264
- [New list](http://listjs.com/examples/new-list)
@@ -59,28 +71,24 @@ https://stackoverflow.com/questions/tagged/list.js
5971
- [Only show list after search/filter](http://codepen.io/javve/pen/YyqyRg)
6072

6173
## Documentation
74+
6275
- [Getting started](http://listjs.com/docs)
6376
- [Options](http://listjs.com/docs/options)
6477
- [List API](http://listjs.com/docs/list-api)
6578
- [Item API](http://listjs.com/docs/item-api)
66-
- [Changelog](http://listjs.com/overview/changelog)
67-
68-
### Plugins
69-
- [Introduction](http://listjs.com/docs/plugins)
70-
- [Pagination](http://listjs.com/docs/plugins/pagination)
71-
- [Fuzzy search](http://listjs.com/docs/plugins/fuzzysearch)
72-
- [Build your own](http://listjs.com/docs/plugins/build)
79+
- [Changelog](https://github.com/javve/list.js/blob/master/CHANGELOG.md)
7380

7481
### Thanks to [all lovely contributors](https://github.com/javve/list.js/graphs/contributors)! Want to join them?
82+
7583
- Read more at [listjs.com/overview/contribute](http://listjs.com/overview/contribute)
7684

7785
### Creator
78-
| | Jonny Strömberg [@javve](http://twitter.com/javve) |
79-
| ------------- | ------------- |
80-
| ![Image of Jonny](http://1.gravatar.com/avatar/9f8130715cb4c452f1294eafa1b36290?size=80) | I hope you like the lib. I’ve put a lot of hours into it! Feel free to follow me on [Twitter](http://twitter.com/javve) for news and [donate a coffee](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M7ZGHV75VSD2E) for good karma ;)
8186

87+
| | Jonny Strömberg [@javve](http://twitter.com/javve) |
88+
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
89+
| ![Image of Jonny](http://1.gravatar.com/avatar/9f8130715cb4c452f1294eafa1b36290?size=80) | I hope you like the lib. I’ve put a lot of hours into it! Feel free to follow me on [Twitter](http://twitter.com/javve) for news and [donate a coffee](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M7ZGHV75VSD2E) for good karma ;) |
8290

8391
## License (MIT)
8492

85-
Copyright (c) 2011-2018 Jonny Strömberg <[[email protected]](mailto:[email protected])>
86-
[http://javve.com](http://javve.com)
93+
Copyright (c) 2011-2020 Jonny Strömberg <[[email protected]](mailto:[email protected])>
94+
[javve.com](https://javve.com)

Release.md

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# RELEASE
22

3-
1. Update version in package.json
4-
2. Update links in README.md
5-
3. `cp package.json docs/_data/pkg.json`
6-
4. Commit "Version x.y.z"
7-
5. Tag with `git tag -a v1.14.0 -m "Version 1.14.0`
8-
6. Push with `git push`
9-
7. Push tags with `git push --tags`
10-
8. `npm publish`
3+
1. `npm release patch|minor|major` (depending on what kind of release it is)
4+
2. `npm publish`
5+
3. Update links in README.md with new version number

WISHLIST.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Wishlist
2+
23
- Add tests for custom event handlers. 27e2d6fdeee7090eb1342a108013db898fc29b96
34
- Regex in search https://github.com/javve/list.js/issues/371
45
- Keep original order? + know
@@ -16,6 +17,9 @@
1617
- Multiple filter functionality
1718
- Activ search term, sort order, filter, etc
1819
- [Smarter pagination window](https://github.com/javve/list.js/issues/599)
20+
- [Handle input checkboxes in list](https://github.com/javve/list.js/pull/630)
21+
- Use query-selector to support more than just ID for item and list initiation
1922

2023
# Known bugs
24+
2125
Pagination does not respect .show(i, page)

0 commit comments

Comments
 (0)