fix(deps): update dependency sequelize to v6 #4958
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
5.22.0
->6.2.0
Release Notes
sequelize/sequelize
v6.2.0
Compare Source
Bug Fixes
Features
v6.1.1
Compare Source
Bug Fixes
v6.1.0
Compare Source
Sequelize v6 is the next major release after v5. Below is a list of breaking changes to help you upgrade.
Breaking Changes
Support for Node 10 and up
Sequelize v6 will only support Node 10 and up #10821.
CLS
You should now use cls-hooked package for CLS support.
Database Engine Support
We have updated our minimum supported database engine versions. Using older database engine will show
SEQUELIZE0006
deprecation warning. Please check ENGINE.md for version table.Sequelize
Sequelize.Promise
is no longer available.sequelize.import
method has been removed.Model
options.returning
Option
returning: true
will no longer return attributes that are not defined in the model. Old behavior can be achieved by usingreturning: ['*']
instead.Model.changed()
This method now tests for equality with
_.isEqual
and is now deep aware for JSON objects. Modifying a nested value for a JSON object won't mark it as changed (since it is still the same object).Model.bulkCreate()
This method now throws
Sequelize.AggregateError
instead ofBluebird.AggregateError
. All errors are now exposed aserrors
key.Model.upsert()
Native upsert is now supported for all dialects.
Signature for this method has been changed to
Promise<Model,boolean | null>
. First index contains upsertedinstance
, second index contains a boolean (ornull
) indicating if record was created or updated. For SQLite/Postgres,created
value will always benull
.Note for Postgres users: If upsert payload contains PK field, then PK will be used as the conflict target. Otherwise first unique constraint will be selected as the conflict key.
QueryInterface
addConstraint
This method now only takes 2 parameters,
tableName
andoptions
. Previously the second parameter could be a list of column names to apply the constraint to, this list must now be passed asoptions.fields
property.Changelog
6.0.0-beta.7
6.0.0-beta.6
6.0.0-beta.5
queryInterface.addIndex
#11844plain
option insequelize.query
#11596comparator
arg ofSequelize.where
#11843hooks
toCreateOptions
#11736options.storage
#11853idle_in_transaction_session_timeout
connection option #117756.0.0-beta.4
6.0.0-beta.3
6.0.0-beta.2
v5.22.1
Compare Source
Bug Fixes
Renovate configuration
📅 Schedule: "every weekday" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.