Socket
Socket
Sign inDemoInstall

sequelize-typescript

Package Overview
Dependencies
35
Maintainers
3
Versions
94
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
10Next

2.1.6

Diff

Changelog

Source

2.1.6 (2023-11-24)

Bug Fixes

  • deny modifying the object prototype (#1698) (5ce8afd)
robinbuschmann
published 2.1.5 •

Changelog

Source

2.1.5 (2022-10-17)

Bug Fixes

  • deps: revert to glob@7.2.0 for sequelize@6 & node@10 compatibility (#1479) (7c8eea7)
robinbuschmann
published 2.1.4 •

Changelog

Source

2.1.4 (2022-10-15)

Bug Fixes

robinbuschmann
published 2.1.3 •

Changelog

Source

2.1.3 (2022-02-16)

Bug Fixes

robinbuschmann
published 2.1.2 •

Changelog

Source

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)
robinbuschmann
published 2.1.1 •

Changelog

Source

2.1.1 (2021-10-10)

Bug Fixes

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

Changelog

Source

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 sequelize-typescript@1.0
V5 Model definition
import { Table, Model } from 'sequelize-typescript';

@Table
class Person extends Model<Person> {}

⚠️ sequelize@4

sequelize@4 requires sequelize-typescript@0.6. See documentation for version 0.6.

npm install sequelize-typescript@0.6

Upgrade to sequelize-typescript@2

  • sequelize-typescript@2 only works with sequelize@6.2>=. For sequelize@5 use sequelize-typescript@1.0.
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 sequelize-typescript@0.6.

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
robinbuschmann
published 2.0.0 •

Changelog

Source

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 sequelize-typescript@1.0
V5 Model definition
import { Table, Model } from 'sequelize-typescript';

@Table
class Person extends Model<Person> {}

⚠️ sequelize@4

sequelize@4 requires sequelize-typescript@0.6. See documentation for version 0.6.

npm install sequelize-typescript@0.6

Upgrade to sequelize-typescript@2

  • sequelize-typescript@2 only works with sequelize@6.2>=. For sequelize@5 use sequelize-typescript@1.0.
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 sequelize-typescript@0.6.

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
robinbuschmann
published 2.0.0-beta.1 •

Changelog

Source

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 sequelize-typescript@1.0
V5 Model definition
import { Table, Model } from 'sequelize-typescript';

@Table
class Person extends Model<Person> {}

⚠️ sequelize@4

sequelize@4 requires sequelize-typescript@0.6. See documentation for version 0.6.

npm install sequelize-typescript@0.6

Upgrade to sequelize-typescript@2

  • sequelize-typescript@2 only works with sequelize@6.2>=. For sequelize@5 use sequelize-typescript@1.0.
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 sequelize-typescript@0.6.

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
robinbuschmann
published 2.0.0-beta.0 •

2345
10Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc