v7.0.0-alpha.11
Pre-release
Pre-release
github-actions
released this
15 Apr 10:31
·
1400 commits
to v7
since this release
7.0.0-alpha.11 (2022-04-15)
Bug Fixes
-
deps: update dependency moment to v2.29.2 [security] (#14351) (9433540)
-
fix typo in query-generator.js error message (#14151) (49411bc)
-
mssql commentTemplate handling table object (#14097) (abdb896)
-
types: export
GroupedCountResultItem
interface (#14154) (842230a) -
types: remove non-exist types in query interface (#14229) (54c8137)
-
types: update return type of
Model.update
(#14155) (ce26f3c) -
feat!: drop support for node 12 (#14339) (61efb50), closes #14339
Features
- add
isModelStatic
,isSameInitialModel
(#14360) (07b95dd) - Add
Op.notStartsWith
,Op.notEndsWith
andOp.notSubstring
(#14376) (1261e37) - add Model.{getInitialModel,withoutScope}, rename .{schema,scope} (#14337) (338766b)
- block access to sequelize's internals (#14352) (f1774ec)
- deprecate accessing DataTypes directly on Sequelize class (#14373) (4bbd4fb)
- merge scope where conditions using the and operator (#14110) (872d47d)
- reserve
::
,->
syntax in attribute names (#14181) (ed7b03b) - simplify withSchema API (#14359) (e8b37c2)
- stop testing against TypeScript < 4.4 (#14188) (66fd55e)
- types: infer nullable creation attributes as optional (#14147) (b8bce31)
- types: make
Model.init
aware of pre-configured foreign keys (#14148) (a23fcab) - use native
Error#cause
in Sequelize errors (#14318) (bfab15d)
BREAKING CHANGES
- dropped support for node 12
::
&->
cannot be used in attribute names anymore (see out upgrade-to-v7 guide for more information)- the
where
property of a scope is now merged usingOp.and