2.1.6 (2023-11-24)
2.1.5 (2022-10-17)
- deps: revert to [email protected] for sequelize@6 & node@10 compatibility (#1479) (7c8eea7)
2.1.4 (2022-10-15)
- ci: bump markdownlint (#1470) (b24869b)
- model: compatible constructor with sequelize (#1310) (4f03520)
- update to TypeScript 4.8 (#1453) (5ddfa61)
2.1.3 (2022-02-16)
2.1.2 (2022-01-03)
- use custom decorator on column have a property descriptor (#1070) (7ce03de)
- validators: allow any values for isIn/notIn (#1124) (d25b392)
2.1.1 (2021-10-10)
- model: adjust init method to recently introduced sequelize type changes (b60c011)
2.1.0 (2021-02-14)
Initial release with Changelog.
- allow $set null (remove association) (#774) (ffe1c78)
- model associations methods to reflect sequelize v6 (#888) (6b1e3ff)
- typeof Model errors by using typeof Model generics (#900) (b865840)
sequelize@5
requires sequelize-typescript@1
. See
documentation for version 1.0
.
npm install [email protected]
import { Table, Model } from 'sequelize-typescript';
@Table
class Person extends Model<Person> {}
sequelize@4
requires [email protected]
. See
documentation for version 0.6
.
npm install [email protected]
sequelize-typescript@2
only works with[email protected]>=
. Forsequelize@5
use[email protected]
.
- All breaking changes of
sequelize@6
are also valid forsequelize-typescript@2
. See Upgrade to v6 for details. @types/bluebird
is no longer needed,sequelize@6
removed usage ofbluebird
- Sequelize v6.2 introduced additional model attributes typings, which affects how the model is defined.
- See below comparison between V5 and V6 model definition to show how to upgrade models.
- For more details, see sequelize typescript docs.
sequelize-typescript@1
only works with sequelize@5>=
.
For sequelize@4
& sequelize@3
use [email protected]
.
All breaking changes of sequelize@5
are also valid for sequelize-typescript@1
.
See Upgrade to v5 for details.
sequelize-typescript now uses the official typings bundled with sequelize (See this). Please note the following details:
- Most of the sequelize-typescript interfaces of the previous version are replaced by the official ones
@types/sequelize
is no longer used@types/bluebird
is no longer an explicit dependency- The official typings are less strict than the former sequelize-typescript ones