-
Notifications
You must be signed in to change notification settings - Fork 27
Update sequelize to the latest version 🚀 #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
handle no authorization header case
Update to this version instead 🚀 CommitsThe new version differs by 18 commits.
There are 18 commits in total. See the full diff |
Update to this version instead 🚀 CommitsThe new version differs by 10 commits.
See the full diff |
|
|
|
|
|
Update to this version instead 🚀 CommitsThe new version differs by 5 commits.
See the full diff |
|
|
|
|
|
|
|
|
|
|
23f3082 to
a3f376a
Compare
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
|
🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚 Find out how to migrate to Snyk at greenkeeper.io
|
The dependency sequelize was updated from
4.43.0to5.1.0.This version is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for v5
Breaking Changes
Support for Node 6 and up
Sequelize v5 will only support Node 6 and up #9015
Secure Operators
With v4 you started to get a deprecation warning
String based operators are now deprecated. Also concept of operators was introduced. These operators are Symbols which prevent hash injection attacks.http://docs.sequelizejs.com/manual/querying.html#operators-security
With v5
operatorsAliases, but that will give you deprecation warning.Typescript Support
Sequelize now ship official typings #10287. You can consider migrating away from external typings which may get out of sync.
Pooling
With v5 Sequelize now use
sequelize-poolwhich is a modernized fork ofgeneric-pool@2.5. You no longer need to callsequelize.closeto shutdown pool, this helps with lambda executions. #8468Model
Validators
Custom validators defined per attribute (as opposed to the custom validators defined in the model's options) now run when the attribute's value is
nullandallowNullistrue(while previously they didn't run and the validation succeeded immediately). To avoid problems when upgrading, please check all your custom validators defined per attribute, whereallowNullistrue, and make sure all these validators behave correctly when the value isnull. See #9143.Attributes
Model.attributesnow removed, useModel.rawAttributes. #5320Note: Please don't confuse this with
options.attributes, they are still validParanoid Mode
With v5 if
deletedAtis set, record will be considered as deleted.paranoidoption will only usedeletedAtas flag. #8496Model.bulkCreate
updateOnDuplicateoption which used to accept boolean and array, now only accepts non-empty array of attributes. #9288Underscored Mode
Implementation of
Model.options.underscoredis changed. You can find full specifications here.Main outline
underscoredAllandunderscoredoptions are merged into singleunderscoredoptionunderscoredoption set totrue, thefieldoption for attributes will be set as underscored version of attribute name.underscoredwill control all attributes including timestamps, version and foreign keys. It will not affect any attribute which already specifies thefieldoption.#9304
Removed aliases
Many model based aliases has been removed #9372
Datatypes
Range
Now supports only one standard format
[{ value: 1, inclusive: true }, { value: 20, inclusive: false }]#9364Case insensitive text
Added support for
CITEXTfor Postgres and SQLiteRemoved
NONEtype has been removed, useVIRTUALinsteadHooks
Removed aliases
Hooks aliases has been removed #9372
Sequelize
Removed aliases
Prototype references for many constants, objects and classes has been removed #9372
Query Interface
changeColumnno longer generates constraint with_idxsuffix. Now Sequelize does not specify any name for constraints thus defaulting to database engine naming. This aligns behavior ofsync,createTableandchangeColumn.Others
ValidationErrorItemnow holds reference to original error in theoriginalproperty, rather than the__rawproperty.3.1.0, which use any-promise. This module repeat allsequelize.queryoperations. You can configureany-promiseto usebluebirdfor better performance on Node 4 or 6undefinedkeys inwhereoptions, In past versionsundefinedwas converted tonull.Dialect Specific
MSSQL
tedious >= 6.0.0. OlddialectOptionshas to be updated to match their new format. Please refer to tedious documentation. An example of newdialectOptionsis given belowdialectOptions: { authentication: { domain: 'my-domain' }, options: { requestTimeout: 60000, cryptoCredentialsDetails: { ciphers: "RC4-MD5" } } }MySQL
mysql2 >= 1.5.2for prepared statementsMariaDB
dialect: 'mariadb'is now supported withmariadbpackagePackages
generic-poolsequelize-poolChangelog
5.0.0-beta.17
5.0.0-beta.16
5.0.0-beta.15
attribute.column.validateoption #102375.0.0-beta.14
5.0.0-beta.13
5.0.0-beta.12
5.0.0-beta.11
5.0.0-beta.10
5.0.0-beta.9
5.0.0-beta.8
5.0.0-beta.7
5.0.0-beta.6
5.0.0-beta.5
5.0.0-beta.4
5.0.0-beta.3
5.0.0-beta.2
5.0.0-beta.1
5.0.0-beta
Model.attributesnow removed, useModel.rawAttributes#5320paranoidmode will now treat any record withdeletedAtas deleted #8496Commits
The new version differs by 316 commits ahead by 316, behind by 28.
0a9b8a65.1.06d84ceddocs: fix styling issue with long commentscf5aeeachore: v5 release (#10544)1275de0docs: remove extra entriesd6d9d815.0.0-beta.17bc6c133docs: v5.0.0-beta.174478d74chore: strict linting for code and jsdocs (#10535)f862e6bfix(util): improve performance of classToInvokable (#10534)a26193achore: enforce stricter linting (#10532)786b19bfix(build): default null for multiple primary keysae7d4b9feat: expose Sequelize.BaseErrore03a537fix(tests): missing clock instanced7241f7fix(tests): path for instance tests69b85c3refactor: instance tests0c68590feat(sqlite/query-generator): support restart identity for truncate-table (#10522)There are 250 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴