Skip to content

Latest commit

 

History

History
121 lines (73 loc) · 6.05 KB

CHANGELOG.md

File metadata and controls

121 lines (73 loc) · 6.05 KB

2.1.6 (2023-11-24)

Bug Fixes

Changelog

2.1.5 (2022-10-17)

Bug Fixes

2.1.4 (2022-10-15)

Bug Fixes

2.1.3 (2022-02-16)

Bug Fixes

2.1.2 (2022-01-03)

Bug Fixes

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

Bug Fixes

  • model: adjust init method to recently introduced sequelize type changes (b60c011)

2.1.0 (2021-02-14)

Initial release with Changelog.

Bug Fixes

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

Features

Older versions

⚠️ sequelize@5

sequelize@5 requires sequelize-typescript@1. See documentation for version 1.0.

npm install [email protected]

V5 Model definition

import { Table, Model } from 'sequelize-typescript';

@Table
class Person extends Model<Person> {}

⚠️ sequelize@4

sequelize@4 requires [email protected]. See documentation for version 0.6.

npm install [email protected]

Upgrade to sequelize-typescript@2

Breaking Changes

  • All breaking changes of sequelize@6 are also valid for sequelize-typescript@2. See Upgrade to v6 for details.
  • @types/bluebird is no longer needed, sequelize@6 removed usage of bluebird
  • 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.

Upgrade to sequelize-typescript@1

sequelize-typescript@1 only works with sequelize@5>=. For sequelize@4 & sequelize@3 use [email protected].

Breaking Changes @5

All breaking changes of sequelize@5 are also valid for sequelize-typescript@1. See Upgrade to v5 for details.

Official Sequelize Typings

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