Changelog
Changelog for updates on the package.
2.13.0 — 2024-01-16
Fixes
Fixed collection's defaultValues not being assigned correctly (9d4d440)
Changes
Collection.entries
renamed toCollection.totalEntries
(b766ae1)Collection#fetchOrCreate and Collection#getOrCreate can no longer return
null
(5e0a255)
Features
Added an unique
__id
identifier to every entry from the collections (b766ae1)
2.12.1 — 2022-09-10
Fixes
Fixed Collection#update method for TypeScript users (7857831)
2.12.0 — 2022-09-02
Fixes
Fixed error when omitting a config for the Database (bf6e508)
Changes
Collection#get now returns an object instead of an array of objects and the filter parameter is now mandatory (12ed47f)
Collection#getOrCreate now returns an object instead of an array of objects (12ed47f)
Collection#fetch now returns an object instead of an array of objects and the filter parameter is now mandatory (12ed47f)
Collection#fetchOrCreate now returns an object instead of an array of objects (12ed47f)
All data returned from Collections are now read-only (9bdde72)
Features
Added Collection#getMany and Collection#fetchMany methods (12ed47f)
Added Collection#getAll and Collection#fetchAll methods (c2c2737)
2.11.0 — 2022-08-18
Fixes
Fixed Collection#createBulk typings (252eef8)
Features
Added
Data
#save
method to the data returned by the Collection#get, Collection#fetch, Collection#getOrCreate and Collection#fetchOrCreate methods (see Collection#update and Modifiable<T>) (b4472be)
2.10.2 — 2022-07-04
Fixes
Fixed default values not being applied when creating entries in collections (3f2fae3)
2.10.1 — 2022-06-23
Fixes
Fixed crucial error on database instantiation (see Troubleshooting) (4395616)
Features
Added
database
property for Collections (09578b8)
2.9.2 — 2022-06-20
Fixes
Changes
Database#pull() now support objects being pulled (a7f7902)
Removed the possibility of creating two collections with the same name (bc306db)
Collection#create return now includes
createdAt
andupdatedAt
keys (ac4000b)Collection#has: removed double check for parameter type (cb20a2b)
Features
Collection:
createBulk
method (88cd983)Database:
getCollection
method (dd78dc9)Database:
rename
method (210c01e)Database:
update
method (b8a1f70)
2.8.1 — 2022-03-31
Fixes
Fixed Database#add() and Database#subtract() method when using
NaN
(b816aa7)
2.8.0 — 2021-03-31
Changes
Rephrased typings (4281230)
Removed useless code (d16e91a)
Changed Collection#remove() return from all the collection's entries to the removed entries only (5e034ab)
Features
Collection:
reset
method (16b2824)
2.7.1 — 2021-03-01
Changes
Collection#update() now returns the updated data instead of all the collection's data (23771ca)
2.7.0 — 2021-03-01
Features
Added support for timestamp attributes (
createdAt
andupdatedAt
) for collections (c263f95)
2.6.0 — 2021-02-14
Changes
Improved typings, a lot (3c2fb01)
Adapted Collection#create() method to support the new incrementable properties feature (0dc8fbf)
Features
Added support for incrementable properties in Database#createCollection() method (f91432a)
2.5.0 — 2021-02-11
Changes
Fixed typings (31ba87b)
Features
Database:
deleteCollection
method (55d5fa6)
2.4.5 — 2022-02-01 (deprecated)
Changes
Changed Collection#create() method's return type (1901b4e)
2.4.3 — 2022-01-28 (deprecated)
Fixes
Fixed Database#set() method, again (e6abe99)
2.4.2 — 2022-01-26 (deprecated)
Fixes
Fixed Database#set() method (58c6146)
2.4.1 — 2022-01-23 (deprecated)
Changes
Database: Changed default tabSize value from 2 to 0 (6639e0a)
2.4.0 — 2021-11-27 (deprecated)
Changes
2.3.5 — 2021-09-30 (deprecated)
Changes
Added support for spaces in keys' names (9a13983)
Features
Collection:
fetchOrCreate
method (24e3ce4)
2.3.3 — 2021-08-31 (deprecated)
Fixes
Fixed Collection#has() method (3f01dbd)
Changes
Removed useless code inside the Collection#getOrCreate() method (3f01dbd)
Removed useless code inside the Collection#updateOrCreate() method (3f01dbd)
2.3.2 — 2021-08-29 (deprecated)
Changes
Moved the validation of the
filter
parameter to a private method (38cc956)More examples on README (38cc956)
Return
null
instead of an empty array when no results are returned (38cc956)Removed an useless if-statement inside the Collection#update() method (38cc956)
Features
Last updated