Skip to content

Latest commit

 

History

History
466 lines (219 loc) · 21.7 KB

CHANGELOG.md

File metadata and controls

466 lines (219 loc) · 21.7 KB

Changelog

0.19.0 (2024-06-17)

Features

  • Connection: add an observer api on transaction (#160) (721fe35)

0.18.1 (2023-11-10)

Bug Fixes

  • export @computed in typings and bound in Provider (#155) (3d136b9)

0.18.0 (2023-11-09)

Features

0.17.0 (2023-09-22)

Features

  • add useTransaction to BaseModel (#151) (92fa525)
  • add transaction shortcut on Database
  • add support for transaction options on Connection

0.16.0 (2023-09-19)

⚠ BREAKING CHANGES

Features

0.15.0 (2023-05-22)

Features

  • add afterUpSuccess method to migrations (8e70e59)

0.14.4 (2023-05-08)

Bug Fixes

0.14.3 (2023-03-07)

Bug Fixes

  • set exit code to 1 if migration failed (#140) (f07017c)

0.14.2 (2023-03-07)

Bug Fixes

0.14.1 (2023-03-06)

Bug Fixes

  • add "override" to migration template (#132) (d8f8dc7)
  • ignore type declaration files in migrations directory (#137) (b7eda71)

0.14.0 (2023-02-13)

⚠ BREAKING CHANGES

  • Drop support for Node.js 14.x and MongoDB 4.x

Miscellaneous Chores

0.13.0 (2021-11-22)

Features

  • migrations: add dropIndex method (16652d8)

0.12.0 (2021-09-23)

Features

  • implement model.$original and model.$attributes (952a139)
  • improve custom inspect output (7fb3a3e)

Bug Fixes

  • throw an error when user attempts to spread a model (ffacaca)

0.11.0 (2021-09-16)

⚠ BREAKING CHANGES

  • 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 and limit methods instead.

Features

  • 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)

Bug Fixes

  • correct types of MongodbModelAuthProvider (#104) (e913e53)

0.10.5 (2021-09-01)

Bug Fixes

0.10.4 (2021-07-20)

Bug Fixes

  • typings: make query filter optional (#94) (fc1c6f6)

0.10.3 (2021-07-19)

Bug Fixes

  • include src in distribution (4fd53d4)

0.10.2 (2021-07-15)

Bug Fixes

  • correctly compute ModelAttributes type (af9d775)
  • make id reference the type of _id (8148481)

0.10.1 (2021-07-14)

Bug Fixes

  • update mongodb to 4.0.0 and test on MongDB 5.0 too (#87) (d57f0d8)

0.10.0 (2021-07-14)

⚠ BREAKING CHANGES

  • 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

Features

  • 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)

Bug Fixes

  • correct types and suppress unavoidable anys (7d95cee)

Code Refactoring

  • 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)

Bug Fixes

  • implement workaround to allow closing and reopening connections (48d3ad5)

0.9.0 (2021-06-30)

⚠ BREAKING CHANGES

  • implement Connection manager
  • rename DatabaseContract and add primaryConnectionName
  • rename "default" config field to "connection"
  • add Zakodium/ prefix to IoC binding names

Features

  • expose container binding types (de33f9e)
  • implement Database.connection method (91b0686)

Bug Fixes

  • treat model instances created from iterator as already saved (#67) (57474a9)

Code Refactoring

  • 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)

Features

  • do not cancel successful migrations (#65) (0b4fb92)

0.7.0 (2021-04-27)

⚠ BREAKING CHANGES

  • The module now depends on @adonisjs/auth v8

Features

  • bump @adonisjs/auth to version 8 (#60) (de23012)

0.6.0 (2021-03-23)

Bug Fixes

0.5.0 (2021-03-15)

Features

0.4.1 (2021-03-04)

Bug Fixes

  • do not put templates in subdirectories (a7e2a34)

0.4.0 (2021-02-23)

Features

  • add authentication provider using model (8fb56a7)

Bug Fixes

  • abort migration transaction in case of error (#47) (8a46ef1)
  • correctly handle already running migrations in migrate command (b6efc7c)

0.3.6 (2021-01-08)

Bug Fixes

  • remove peer dependency on adonis core (fa35ba6)

0.3.5 (2020-11-02)

Bug Fixes

0.3.4 (2020-10-14)

Bug Fixes

  • in-memory typescript keeps migrations as TS files (#36) (7f4fd20)
  • rename handle with run (#34) (70c1b53)

0.3.3 (2020-10-14)

Bug Fixes

  • migration: correctly extract name from migrations and check for dups (7c6dec1)

0.3.2 (2020-10-12)

Bug Fixes

0.3.1 (2020-10-07)

Features

  • add merge and fill methods (#23) (0b9d3ef)
  • support instantiating models before saving (#17) (25d194a)

0.3.0 (2020-09-29)

Features

  • migrations paths can be configured in the config file (#8) (fb8934d)
  • pass session on object instantiation (#16) (1395ba0)

0.2.2 (2020-09-09)

Bug Fixes

  • 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)

Bug Fixes

  • 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)

Features

  • 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)

BREAKING CHANGES

  • 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)

Bug Fixes

  • skip lib checks (7fd8507)
  • commands: inject db in handle method (303fdf1)

0.1.5 (2019-12-06)

Bug Fixes

  • actually execute the up() method (3d8740f)

0.1.4 (2019-12-03)

Bug Fixes

  • enable emitDecoratorMetadata (407554e)

0.1.3 (2019-12-03)

Bug Fixes

  • transpile optional properties (d22d8d1)

0.1.2 (2019-12-03)

Bug Fixes

  • really correctly read templates (ad4c812)

0.1.1 (2019-12-03)

Bug Fixes

  • correctly refer to template directory (dab86ad)

0.1.0 (2019-12-03)

Bug Fixes

  • rename types from .d.ts to .ts (4a0cd71)

Features