Repository navigation
feat: deprecate accessing DataTypes directly on Sequelize class - #14373
Conversation
|
Maybe I missed it with my quick scroll through the changes, but do we test somewhere that |
|
Not directly but |
|
Ah of course, that's true |
|
Nice changes, remove confusion between using |
sdepold
left a comment
There was a problem hiding this comment.
Can we mark this as breaking change in the commit message somehow?
Good change overall
|
Oh. Too slow :( |
|
Aha! There is a pr for this. |
To document this change? Yeah, this is indeed something that we needed to put in the upgrade guide EDIT: sequelize/website#80 |
|
🎉 This PR is included in version 7.0.0-alpha.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* document deprecations & removals * document PR sequelize/sequelize#14373 Co-authored-by: Sascha Depold <[email protected]>
…elize#14373) * feat: deprecate accessing DataTypes directly on Sequelize class * docs: update datatypes in jsdoc * test: revert fixing of a datatype that needs to be broken Co-authored-by: Rik Smale <[email protected]>
* document deprecations & removals * document PR sequelize/sequelize#14373 Co-authored-by: Sascha Depold <[email protected]>

Pull Request Checklist
yarn testoryarn test-DIALECTpass with this change (including linting)?Description Of Change
This PR deprecates accessing DataTypes directly on the Sequelize constructor.
Instead, users should use the
DataTypesobject.These DataTypes take up a lot of possible names and should be kept in their own namespace: