Commit Graph

117 Commits

Author SHA1 Message Date
Julien Fontanet
0880787d68 new Index() now accepts a computeHash() callback-ish. 2015-04-29 14:33:37 +02:00
Julien Fontanet
cd582e2e3a Rename Index#itemsByHash to Index#items. 2015-04-29 14:12:22 +02:00
Julien Fontanet
aebd9319f5 Comments in Collection#_onUpdate(). 2015-04-29 13:22:36 +02:00
Julien Fontanet
de6cbb0f45 Fix Index#sweep(). 2015-04-29 13:22:36 +02:00
Julien Fontanet
e14dcd0184 Put some utils in their own modules. 2015-04-29 13:22:30 +02:00
Julien Fontanet
17ef653903 0.1.1 2015-04-28 17:10:58 +02:00
Julien Fontanet
f5d5b5efc0 Make View and Index requireable. 2015-04-28 17:10:31 +02:00
Julien Fontanet
59dbee8f28 Minor doc about views. 2015-04-28 17:06:37 +02:00
Julien Fontanet
1bc48fbf96 0.1.0 2015-04-27 15:27:12 +02:00
Julien Fontanet
d45348c167 Minor fixes. 2015-04-27 15:09:07 +02:00
Julien Fontanet
22caa0ee66 Initial Index implementation (see #1). 2015-04-27 15:05:02 +02:00
Julien Fontanet
e6e8ccc855 Remove standard from npm test.
Currently broken du to due to eslint/espree#123
2015-04-27 15:04:52 +02:00
Julien Fontanet
d78522f5e1 Comment doc for Collection#getId(). 2015-04-27 12:14:30 +02:00
Julien Fontanet
3da2a618b9 Coding style. 2015-04-27 10:55:22 +02:00
Julien Fontanet
00f944f3f4 Remove unused import. 2015-04-19 00:42:02 +02:00
Julien Fontanet
1269411771 Add iteration to the README. 2015-04-18 22:33:32 +02:00
Julien Fontanet
d4d8ea6cf2 Collection #getId() renamed to getKey(). 2015-04-18 22:20:57 +02:00
Julien Fontanet
160522c520 Collection iteration more similar to Map. 2015-04-18 22:04:37 +02:00
Julien Fontanet
7024b5ec1b Reorganization of Collection code. 2015-04-18 21:58:17 +02:00
Julien Fontanet
5b020035d6 Collection is iterable. 2015-04-18 21:34:36 +02:00
Julien Fontanet
fcea7fd4bf mkdir -p is more portable. 2015-04-18 19:37:04 +02:00
Julien Fontanet
7941a24d51 Force npm test to be successful before committing. 2015-04-15 15:16:28 +02:00
Julien Fontanet
e004ba63f8 Remove unused JSHint conf. 2015-04-15 10:46:09 +02:00
Julien Fontanet
1f30a19566 Improved view example. 2015-04-14 12:18:29 +02:00
Julien Fontanet
51f4578a41 View handles existing items. 2015-04-14 12:18:24 +02:00
Julien Fontanet
bd3954a5f1 Rename index.* to collection.*. 2015-04-14 10:47:47 +02:00
Julien Fontanet
94967add7c Merge branch 'views' 2015-04-14 10:25:49 +02:00
Julien Fontanet
783ab0b611 Initial view implementation (fix #3). 2015-04-13 20:23:43 +02:00
Julien Fontanet
653a9526f5 0.0.1 2015-04-13 14:54:19 +02:00
Julien Fontanet
34ac4b25af Test and fix #clear(). 2015-04-13 14:53:25 +02:00
Julien Fontanet
e072ff2d77 Update README.md 2015-04-10 11:51:54 +02:00
Julien Fontanet
41dfbc2709 Publish to npm as xo-collection. 2015-04-10 11:41:02 +02:00
Julien Fontanet
964e461597 Better Collection#_resolveItem(). 2015-04-10 10:51:01 +02:00
Julien Fontanet
ef2eec4c4a Minor build updates. 2015-04-10 10:50:23 +02:00
Julien Fontanet
bf1d76d853 Source map support for tests. 2015-04-10 10:49:25 +02:00
Julien Fontanet
0682cbd554 Test for Collection#touch(). 2015-04-10 10:49:08 +02:00
Julien Fontanet
f5191cdd42 Better error classes. 2015-04-10 10:48:47 +02:00
Julien Fontanet
b1c73208c5 Do not return this. 2015-04-08 16:33:28 +02:00
Julien Fontanet
ab221a465b Use lodash.foreach instead of native implementation. 2015-04-08 16:32:46 +02:00
Julien Fontanet
4ecfa0477d Optimize Collection#_touch(). 2015-04-08 14:30:16 +02:00
Julien Fontanet
bab2de36ad Tests for events deduplication. 2015-04-08 14:24:07 +02:00
Julien Fontanet
f479e914bb #getId() should behave even if the item is null or undefined. 2015-04-08 12:00:52 +02:00
Julien Fontanet
45441653f6 #bufferChanges() → #bufferEvents(). 2015-04-08 11:51:18 +02:00
Julien Fontanet
0303558ae1 Prefer the term of item over entry. 2015-04-08 11:49:25 +02:00
Julien Fontanet
b70e0e3e2b Tests for #add(), #update(), #set() and #remove() with an object. 2015-04-08 11:40:07 +02:00
Julien Fontanet
5e0c4d7b7a Avoid Function#apply() for performance. 2015-04-08 10:50:04 +02:00
Julien Fontanet
6c83308451 Optimize Collection#get(). 2015-04-08 10:48:27 +02:00
Julien Fontanet
eeb898179e Minor simplification of buffer flushing. 2015-04-08 10:42:00 +02:00
Julien Fontanet
0ea662d8fe Replace let by const where possible. 2015-04-08 10:05:41 +02:00
Julien Fontanet
ea3219fa10 Typo. 2015-04-08 10:04:58 +02:00