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

Commit 7610345e by Sushant

docs(v6-guide): bluebird removal API changes

1 parent adeb73a6
Showing with 7 additions and 1 deletions
...@@ -20,7 +20,9 @@ You should now use [cls-hooked](https://github.com/Jeff-Lewis/cls-hooked) packag ...@@ -20,7 +20,9 @@ You should now use [cls-hooked](https://github.com/Jeff-Lewis/cls-hooked) packag
Sequelize.useCLS(namespace); Sequelize.useCLS(namespace);
``` ```
[Bluebird now supports `async_hooks`](https://github.com/petkaantonov/bluebird/issues/1403). This configuration will automatically be enabled when invoking `Sequelize.useCLS`. This way, using [`cls-bluebird`](https://www.npmjs.com/package/cls-bluebird) is no longer necessary. ### Promise
Bluebird has been removed. Public API now returns native promises. `Sequelize.Promise` is no longer available.
### Model ### Model
...@@ -46,6 +48,10 @@ This method now tests for equality with [`_.isEqual`](https://lodash.com/docs/4. ...@@ -46,6 +48,10 @@ This method now tests for equality with [`_.isEqual`](https://lodash.com/docs/4.
await instance.save(); // will save await instance.save(); // will save
``` ```
#### `Model.bulkCreate()`
This method now throws `Sequelize.AggregateError` instead of `Bluebird.AggregateError`. All errors are now exposed as `errors` key.
## Changelog ## Changelog
### 6.0.0-beta.5 ### 6.0.0-beta.5
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!