Releases: sequelize/sequelize
Releases · sequelize/sequelize
v7.0.0-alpha.17
7.0.0-alpha.17 (2022-09-18)
Bug Fixes
- decode encoded value from
urlParts.pathname
fordatabase
option (#14963) (12983a1) - expose url utility in index.ts (#14968) (b64de28), closes #14963
- Transaction.afterCommit hooks should not run on failing transactions (#14903) (ad5c0cd)
- types: add missing model hooks types (#14993) (b1515a0)
- types: add TypeScript 4.8 compatibility (#14996) (7040343)
Features
- snowflake: Add support for
QueryGenerator#tableExistsQuery
(eedba90)
v6.23.0
v6.22.1
v6.22.0
v6.21.6
v6.21.5
v7.0.0-alpha.16
7.0.0-alpha.16 (2022-08-23)
Bug Fixes
- Association mixin bug with unique false (#14890) (2482035)
- mssql: match aggregate errors (#14784) (00c1019)
- types: add missing properties to RetryOptions (#14896) (5222a53)
- update dependency sequelize-pool to v8 (#14799) (c40b81d)
- update updated_at on upsert (#14853) (e39eddb)
- use aliases if subQuery is not used (v7) (#14882) (f4de2b6)
v6.21.4
v7.0.0-alpha.15
7.0.0-alpha.15 (2022-08-07)
Bug Fixes
- deps: update dependency retry-as-promised to v6 (#14676) (6a29e6e)
- don't treat
\
as escape in standard strings, support E-strings, support vars after->>
operator (#14700) (1c85d01) - fix
sync
duplicating existing foreign keys when a schema is used (#14570) (ab9a21d) - kill connection on commit/rollback error (v7) (#14574) (0610358)
- minified aliases are now properly referenced in subqueries (#14804) (4abe16c)
- mysql,mariadb: remove extra
FROM
fromshowIndexes
(#14657) (0016739) - postgres: attach postgres error-handler earlier in lifecycle (#14742) (b74b130)
- postgres: minifyAliases with through tables (#14629) (7a5f210)
- postgres: treat lowercase e as valid e-string prefix (#14733) (7a15a4d)
- postgres: use schema set in sequelize config by default (#14634) (751826a)
- sequelize should take transaction from CLS everywhere (#13927) (be98856)
- sqlite: Fix removeColumn and changeColumn foreign key issues for the sqlite dialect (#14070) (ee1d07b)
- take scope into account when setting associated models with belongsToMany's
.setX
(#14738) (d7a501a) - types: add keepDefaultTimezone to Options interface (#14825) (5bccbbb)
- types: align the return value of increment and decrement with actual behavior (#14704) (89dd2ec)
- types: fix
findAll()
being treated as raw (#14668) (06f4429) - typings: make
findX
model methods return custom attributes ifraw
istrue
(#12921) (3cf2207)
Features
- add queryLabel option for logging (#14787) (d6854c7)
- Migrate
ConnectionManager
to TypeScript (#14652) (b382a32) - support typescript >= 4.5's module resolution (#14713) (4558f57)
BREAKING CHANGES
- The signature of
connectionManager.pool
when read replication is disabled is now the same as when read replication is enabled. If read replication is disabled, you can access the actual pool throughconnectionManager.pool.write
. If read replication is enabled, you can use bothconnectionManager.pool.read
andconnectionManager.pool.write
. - When instantiating Sequelize by providing the same options through both the URI and an option bag to the sequelize constructor, the option bag always takes priority over the URI