Changelog
Changelog for updates on the package.
2.13.0 — 2024-01-16
npm install simpl.db@2.13.0Fixes
Fixed collection's defaultValues not being assigned correctly (9d4d440)
Changes
Collection.entriesrenamed toCollection.totalEntries(b766ae1)Collection#fetchOrCreate and Collection#getOrCreate can no longer return
null(5e0a255)
Features
Added an unique
__ididentifier to every entry from the collections (b766ae1)
2.12.1 — 2022-09-10
npm install simpl.db@2.12.1Fixes
Fixed Collection#update method for TypeScript users (7857831)
2.12.0 — 2022-09-02
npm install [email protected]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
npm install [email protected]Fixes
Fixed Collection#createBulk typings (252eef8)
Features
Added
Data#savemethod 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
npm install [email protected]Fixes
Fixed default values not being applied when creating entries in collections (3f2fae3)
2.10.1 — 2022-06-23
npm install [email protected]Fixes
Fixed crucial error on database instantiation (see Troubleshooting) (4395616)
Features
Added
databaseproperty for Collections (09578b8)
2.9.2 — 2022-06-20
npm install [email protected]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
createdAtandupdatedAtkeys (ac4000b)Collection#has: removed double check for parameter type (cb20a2b)
Features
Collection:
createBulkmethod (88cd983)Database:
getCollectionmethod (dd78dc9)Database:
renamemethod (210c01e)Database:
updatemethod (b8a1f70)
2.8.1 — 2022-03-31
npm install [email protected]Fixes
Fixed Database#add() and Database#subtract() method when using
NaN(b816aa7)
2.8.0 — 2021-03-31
npm install [email protected]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:
resetmethod (16b2824)
2.7.1 — 2021-03-01
npm install [email protected]Changes
Collection#update() now returns the updated data instead of all the collection's data (23771ca)
2.7.0 — 2021-03-01
npm install [email protected]Features
Added support for timestamp attributes (
createdAtandupdatedAt) for collections (c263f95)
2.6.0 — 2021-02-14
npm install [email protected]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
npm install [email protected]Changes
Fixed typings (31ba87b)
Features
Database:
deleteCollectionmethod (55d5fa6)
2.4.5 — 2022-02-01 (deprecated)
npm install [email protected]Changes
Changed Collection#create() method's return type (1901b4e)
2.4.3 — 2022-01-28 (deprecated)
npm install [email protected]Fixes
Fixed Database#set() method, again (e6abe99)
2.4.2 — 2022-01-26 (deprecated)
npm install [email protected]Fixes
Fixed Database#set() method (58c6146)
2.4.1 — 2022-01-23 (deprecated)
npm install [email protected]Changes
Database: Changed default tabSize value from 2 to 0 (6639e0a)
2.4.0 — 2021-11-27 (deprecated)
npm install [email protected]Changes
2.3.5 — 2021-09-30 (deprecated)
npm install [email protected]Changes
Added support for spaces in keys' names (9a13983)
Features
Collection:
fetchOrCreatemethod (24e3ce4)
2.3.3 — 2021-08-31 (deprecated)
npm install [email protected]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)
npm install [email protected]Changes
Moved the validation of the
filterparameter to a private method (38cc956)More examples on README (38cc956)
Return
nullinstead of an empty array when no results are returned (38cc956)Removed an useless if-statement inside the Collection#update() method (38cc956)
Features
Last updated
Was this helpful?