0.19.0 (2024-06-17)
0.18.1 (2023-11-10)
0.18.0 (2023-11-09)
0.17.0 (2023-09-22)
- add
useTransaction
to BaseModel (#151) (92fa525) - add
transaction
shortcut on Database - add support for transaction options on Connection
0.16.0 (2023-09-19)
mongodb
was updated to v6. See the changelog at https://github.com/mongodb/node-mongodb-native/releases/tag/v6.0.0
0.15.0 (2023-05-22)
- add
afterUpSuccess
method to migrations (8e70e59)
0.14.4 (2023-05-08)
- publish on npm and GPR (51c6370)
0.14.3 (2023-03-07)
0.14.2 (2023-03-07)
0.14.1 (2023-03-06)
- add "override" to migration template (#132) (d8f8dc7)
- ignore type declaration files in migrations directory (#137) (b7eda71)
0.14.0 (2023-02-13)
- Drop support for Node.js 14.x and MongoDB 4.x
0.13.0 (2021-11-22)
- migrations: add dropIndex method (16652d8)
0.12.0 (2021-09-23)
- throw an error when user attempts to spread a model (ffacaca)
0.11.0 (2021-09-16)
- It is no longer possible to pass explain to the query() method's driver options. Use the new
explain
method instead. - It is no longer possible to pass sort, skip or limit to the query() method's driver options. Use the new
sort
,sortBy
,skip
andlimit
methods instead.
- add explain query method (42491b5)
- add sort, sortBy, skip and limit query methods (29cc49c)
- implement $isPersisted, $isNew and $isLocal model properties (4c7b36e)
0.10.6 (2021-09-01)
0.10.5 (2021-09-01)
0.10.4 (2021-07-20)
0.10.3 (2021-07-19)
- include src in distribution (4fd53d4)
0.10.2 (2021-07-15)
0.10.1 (2021-07-14)
0.10.0 (2021-07-14)
- move ObjectId export to Zakodium/Mongodb/Odm
- rename isDirty to $isDirty
- move mongodb driver options to options.driverOptions
- The model API has been reworked to be closer to Lucid's.
- move count() method out of find result, make find() method return synchronously
- The MongoDB driver has been upgraded to version 4. Types are now included and many have changed.
- rename Model binding to Odm, and rename Model to BaseModel
- add model boot method and start working on field decorator (18d41c9)
- add model.$dirty (d218456)
- allow to change the connection used in Model.getCollection (16c4180)
- expose model.$isDeleted (39f01d3)
- make query filter optional, add query.count and query.distinct (d7a65b1)
- rename Model binding to Odm, and rename Model to BaseModel (0fa9da6)
- sort find results by descending id by default (d9162b3)
- upgrade mongodb driver to version 4 (1e2e403)
- correct types and suppress unavoidable anys (7d95cee)
- move count() method out of find result, make find() method return synchronously (cf07ae7)
- move mongodb driver options to options.driverOptions (edb0587)
- move ObjectId export to Zakodium/Mongodb/Odm (093eef3)
- rename isDirty to $isDirty (2a3bc6a)
- rework model API (4092ca6)
0.9.1 (2021-07-06)
- implement workaround to allow closing and reopening connections (48d3ad5)
0.9.0 (2021-06-30)
- implement Connection manager
- rename DatabaseContract and add primaryConnectionName
- rename "default" config field to "connection"
- add Zakodium/ prefix to IoC binding names
- add Zakodium/ prefix to IoC binding names (966a7a1)
- implement Connection manager (749ccca)
- rename "default" config field to "connection" (bcfda31)
- rename DatabaseContract and add primaryConnectionName (5a1a914)
0.8.0 (2021-06-15)
0.7.0 (2021-04-27)
- The module now depends on @adonisjs/auth v8
0.6.0 (2021-03-23)
0.5.0 (2021-03-15)
0.4.1 (2021-03-04)
- do not put templates in subdirectories (a7e2a34)
0.4.0 (2021-02-23)
- add authentication provider using model (8fb56a7)
- abort migration transaction in case of error (#47) (8a46ef1)
- correctly handle already running migrations in migrate command (b6efc7c)
0.3.6 (2021-01-08)
- remove peer dependency on adonis core (fa35ba6)
0.3.5 (2020-11-02)
0.3.4 (2020-10-14)
- in-memory typescript keeps migrations as TS files (#36) (7f4fd20)
- rename handle with run (#34) (70c1b53)
0.3.3 (2020-10-14)
- migration: correctly extract name from migrations and check for dups (7c6dec1)
0.3.2 (2020-10-12)
0.3.1 (2020-10-07)
- add merge and fill methods (#23) (0b9d3ef)
- support instantiating models before saving (#17) (25d194a)
0.3.0 (2020-09-29)
- migrations paths can be configured in the config file (#8) (fb8934d)
- pass session on object instantiation (#16) (1395ba0)
0.2.2 (2020-09-09)
- correct incremental id in AutoIncrementModel (8a20201)
- do not create a config subfolder (#4) (a86e79b)
- show accurate information in status command (6580db9)
0.2.1 (2020-09-02)
0.2.0 (2020-09-02)
- correct migration batch number (66af888)
- don't log description twice (923048f)
- only use transaction when creating indexes if collection does not exist (94fa3fb)
- use original type on id getter (78317c1)
-
add command show migration status (0ef66d2)
-
add defer method to migration module (ff7c60a)
-
add incremental model (e7574f6)
-
allow to add description to migration (7c075e7)
-
execute all pending migrations in one transaction (1581854)
-
rename migrate command (c6ce51b)
- do not convert to string in id getter
- Model is no longer a default export but a named export
- renamed the migrate command to match how lucid names migration commands
0.1.7 (2020-04-14)
0.1.6 (2020-01-13)
0.1.5 (2019-12-06)
- actually execute the up() method (3d8740f)
0.1.4 (2019-12-03)
- enable emitDecoratorMetadata (407554e)
0.1.3 (2019-12-03)
- transpile optional properties (d22d8d1)
0.1.2 (2019-12-03)
- really correctly read templates (ad4c812)
0.1.1 (2019-12-03)
- correctly refer to template directory (dab86ad)
- rename types from .d.ts to .ts (4a0cd71)
- initial library (6c917cf)