不要怂,就是干,撸起袖子干!

You need to sign in or sign up before continuing.
Commit 24721b51 by Sushant

docs: changelog for 5.0.0-beta.14

1 parent 75f48a23
Showing with 27 additions and 1 deletions
...@@ -20,6 +20,10 @@ http://docs.sequelizejs.com/manual/tutorial/querying.html#operators-security ...@@ -20,6 +20,10 @@ http://docs.sequelizejs.com/manual/tutorial/querying.html#operators-security
- You can still use string operators by passing an operators map in `operatorsAliases`, but that will give you deprecation warning. - You can still use string operators by passing an operators map in `operatorsAliases`, but that will give you deprecation warning.
- Op.$raw is removed - Op.$raw is removed
### Pooling
With v5 Sequelize now use `sequelize-pool` which is a modernized fork of `generic-pool@2.5`. You no longer need to call `sequelize.close` to shutdown pool, this helps with lambda executions. [#8468](https://github.com/sequelize/sequelize/issues/8468)
### Model ### Model
**Attributes** **Attributes**
...@@ -170,7 +174,7 @@ Model.findAll({ ...@@ -170,7 +174,7 @@ Model.findAll({
- Sequelize now use parameterized queries for all INSERT / UPDATE operations (except UPSERT). They provide better protection against SQL Injection attack. - Sequelize now use parameterized queries for all INSERT / UPDATE operations (except UPSERT). They provide better protection against SQL Injection attack.
- `ValidationErrorItem` now holds reference to original error in the `original` property, rather than the `__raw` property. - `ValidationErrorItem` now holds reference to original error in the `original` property, rather than the `__raw` property.
- [retry-as-promised](https://github.com/mickhansen/retry-as-promised) has been updated to `3.0.0`, which use [any-promise](https://github.com/kevinbeaty/any-promise). This module repeat all `sequelize.query` operations. You can configure `any-promise` to use `bluebird` for better performance on Node 4 or 6 - [retry-as-promised](https://github.com/mickhansen/retry-as-promised) has been updated to `3.1.0`, which use [any-promise](https://github.com/kevinbeaty/any-promise). This module repeat all `sequelize.query` operations. You can configure `any-promise` to use `bluebird` for better performance on Node 4 or 6
- Sequelize will throw for all `undefined` keys in `where` options, In past versions `undefined` was converted to `null`. - Sequelize will throw for all `undefined` keys in `where` options, In past versions `undefined` was converted to `null`.
...@@ -178,9 +182,31 @@ Model.findAll({ ...@@ -178,9 +182,31 @@ Model.findAll({
- removed: terraformer-wkt-parser [#9545](https://github.com/sequelize/sequelize/pull/9545) - removed: terraformer-wkt-parser [#9545](https://github.com/sequelize/sequelize/pull/9545)
- mysql2: use `1.5.2` or above to support prepared statements - mysql2: use `1.5.2` or above to support prepared statements
- updated: retry-as-promised: `3.1.0`
- change: `generic-pool` to `sequelize-pool`
## Changelog ## Changelog
### 5.0.0-beta.14
- fix(query): correctly quote identifier for attributes (#9964) [#10118](https://github.com/sequelize/sequelize/pull/10118)
- feat(postgres): dyanmic oids [#10077](https://github.com/sequelize/sequelize/pull/10077)
- fix(error): optimistic lock message [#10068](https://github.com/sequelize/sequelize/pull/10068)
- fix(package): update depd to version 2.0.0 [#10081](https://github.com/sequelize/sequelize/pull/10081)
- fix(model): validate virtual attribute (#9947) [#10085](https://github.com/sequelize/sequelize/pull/10085)
- fix(test): actually test get method with raw option [#10059](https://github.com/sequelize/sequelize/pull/10059)
- fix(model): return deep cloned value for toJSON [#10058](https://github.com/sequelize/sequelize/pull/10058)
- fix(model): create instance with many-to-many association with extra column (#10034) [#10050](https://github.com/sequelize/sequelize/pull/10050)
- fix(query-generator): fix bad property access [#10056](https://github.com/sequelize/sequelize/pull/10056)
- docs(upgrade-to-v4): typo [#10060](https://github.com/sequelize/sequelize/pull/10060)
- docs(model-usage): order expression format [#10061](https://github.com/sequelize/sequelize/pull/10061)
- chore(package): update retry-as-promised to version 3.1.0 [#10065](https://github.com/sequelize/sequelize/pull/10065)
- refactor(scopes): just in time options conforming [#9735](https://github.com/sequelize/sequelize/pull/9735)
- refactor: use sequelize-pool for pooling [#10051](https://github.com/sequelize/sequelize/pull/10051)
- refactor(*): cleanup code [#10091](https://github.com/sequelize/sequelize/pull/10091)
- refactor: use template strings [#10055](https://github.com/sequelize/sequelize/pull/10055)
- refactor(query-generation): cleanup template usage [#10047](https://github.com/sequelize/sequelize/pull/10047)
### 5.0.0-beta.13 ### 5.0.0-beta.13
- fix: throw on undefined where parameters [#10048](https://github.com/sequelize/sequelize/pull/10048) - fix: throw on undefined where parameters [#10048](https://github.com/sequelize/sequelize/pull/10048)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!