UNPKG

3.52 kBMarkdownView Raw
1# Changelog
2
3## 1.5.2
4* fixed error when transform steps have non-serializable parameters (#624)
5* addCollection will return existing collection when collection named already exists (#635)
6* batch updates when not cloning no longer risk invalidating adaptive binary indices (#639)
7* fixed autosave race condition when using async adapter (#643)
8* collection option added to disableMeta if not using changes api or ttl (#644)
9
10## 1.5.1
11* added disableDeltaChangesApi (default:true) collection option to store only differences. (#582)
12* loki indexed adapter deleteDatabase method will now wait until complete before callback (#584)
13* fixed clone methods correctly assigning object prototypes (#586)
14* partitioning adapter and memory adapter no longer throw error when database doesn't exist (yet)
15* simplesort and compoundsort now support sorting on nested properties via dot-notation (#574)
16* added support for binary indices on nested properties (#574)
17* fixed jsdoc syntax error causing vscode to crash (#614)
18* fixed error when using partitioning adapter with nativescript adapter (#615)
19* added optional 'dataOptions' to eqJoin and map (chain/transform) (see #618)
20
21## 1.5.0
22* refactored binary indices sorting order
23* date values in properties with binary index will be converted to epoch time
24* fix to LokiFsStructuredAdapter first time autoload error where file doesn't exist yet
25* fixed simplesort descending with binary indices and no filters
26* with 'clone' option collection 'insert' events no longer emit internal obj reference
27* fix to clone method 'shallow'
28* added 'removeMeta' option to chained data calls to shallow clone and remove $loki and meta
29* added quickstart examples for node and updated loki sandbox with online web quickstarts
30* fixes to async unit tests
31* npm release trimmed from 5 megs to 500k (no examples, jsdocs, tests)
32
33## 1.4.3
34* added throttled saves and loads (enabled by default) to ensure no overlapping calls
35* unfiltered simplesorts can leverage binary index
36* collection.clear now clears indices correctly
37* fix to LokiPartitioning adapter resetting maxId across saves
38* meta set correctly on batch inserts
39* LokiMemoryAdapter now configurable to simulate async
40* fix changesApi not enabled after loading database
41
42## 1.4.2
43* added 'adaptiveBinaryIndices' option to collections (default true) to avoid rebuilds on inserts/updates/removes
44* added higher performance LokiFsStructuredAdapter for node
45* added destructured serialization methods for partitioning and exporting
46* added 'addListener' method alias of 'on' method
47* LokiFsAdapter doesn't throw exception when file doesn't exist (yet)
48* fix for circular structure error when setting ttl
49* fix unit testing on windows
50* experimental implementation of an incremental adapter
51
52## 1.4.1
53* minor fixes
54* updated jsdoc coverage
55
56## 1.4.0
57* fixes to loki indexed adapter
58* added nativescript adapter
59* added $aeq, $contains, $containsAny, $ne
60* fix unique index update with new object
61* expose persistence adapters to module export
62* fix to loki-crypted-file-adapter
63
64## 1.3.0
65
66* UniqueIndex and `by()` method
67* staging API
68* count() utility method
69* RethinkDB-style joins (eqJoin)
70* moved testing to Karma
71* moved builds and run to npm instead of gulp
72* added $containsAny operator
73* statistical functions: average, max, maxRecord, min, minRecord, median, mode
74* extract() to extract a flat array of values for one field in each record
75* extractNumerical() - same as extract() for numerical values
76* pre-insert and pre-update events