Changelog

Changelog for updates on the package.

2.13.0 — 2024-01-16

npm install simpl.db@2.13.0

Fixes

  • Fixed collection's defaultValues not being assigned correctly (9d4d440)

  • Fixed Data#save not properly saving (b766ae1)

Changes

  • Collection.entries renamed to Collection.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

npm install simpl.db@2.12.1

Fixes

  • Fixed Collection#update method for TypeScript users (7857831)

2.12.0 — 2022-09-02

npm install simpl.db@2.12.0

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 simpl.db@2.11.0

Fixes

  • Fixed Collection#createBulk typings (252eef8)

Features

2.10.2 — 2022-07-04

npm install simpl.db@2.10.2

Fixes

  • Fixed default values not being applied when creating entries in collections (3f2fae3)

2.10.1 — 2022-06-23

npm install simpl.db@2.10.1

Fixes

Features

  • Added database property for Collections (09578b8)

2.9.2 — 2022-06-20

npm install simpl.db@2.9.2

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 and updatedAt 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

npm install simpl.db@2.8.1

Fixes

  • Fixed Database#add() and Database#subtract() method when using NaN (b816aa7)

2.8.0 — 2021-03-31

npm install simpl.db@2.8.0

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

2.7.1 — 2021-03-01

npm install simpl.db@2.7.1

Changes

  • Collection#update() now returns the updated data instead of all the collection's data (23771ca)

2.7.0 — 2021-03-01

npm install simpl.db@2.7.0

Features

  • Added support for timestamp attributes (createdAt and updatedAt) for collections (c263f95)

2.6.0 — 2021-02-14

npm install simpl.db@2.6.0

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 simpl.db@2.5.0

Changes

Features

  • Database: deleteCollection method (55d5fa6)

2.4.5 — 2022-02-01 (deprecated)

npm install simpl.db@2.4.5

Changes

  • Changed Collection#create() method's return type (1901b4e)

2.4.3 — 2022-01-28 (deprecated)

npm install simpl.db@2.4.3

Fixes

  • Fixed Database#set() method, again (e6abe99)

2.4.2 — 2022-01-26 (deprecated)

npm install simpl.db@2.4.2

Fixes

  • Fixed Database#set() method (58c6146)

2.4.1 — 2022-01-23 (deprecated)

npm install simpl.db@2.4.1

Changes

  • Database: Changed default tabSize value from 2 to 0 (6639e0a)

2.4.0 — 2021-11-27 (deprecated)

npm install simpl.db@2.4.0

Changes

  • Updated Collection#update() method (c788ae8)

  • Removed Collection#updateOrCreate() method (0fea4d3)

2.3.5 — 2021-09-30 (deprecated)

npm install simpl.db@2.3.5

Changes

  • Added support for spaces in keys' names (9a13983)

Features

  • Collection: fetchOrCreate method (24e3ce4)

2.3.3 — 2021-08-31 (deprecated)

npm install simpl.db@2.3.3

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 simpl.db@2.3.2

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

  • Database: fetch method (38cc956)

  • Collection: fetch, getOrCreate and updateOrCreate methods (38cc956)

Last updated