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

Commit 334903f5 by Jan Aagaard Meier

Merge pull request #2578 from overlookmotel/inflection-v1.5.2

Update inflection dependency to v1.5.2
2 parents 36d46c03 fb31093a
Showing with 2 additions and 1 deletions
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
- [BUG] Copy the options object in association getters. [#2311](https://github.com/sequelize/sequelize/issues/2311) - [BUG] Copy the options object in association getters. [#2311](https://github.com/sequelize/sequelize/issues/2311)
- [BUG] `Model#destroy()` now supports `field`, this also fixes an issue with `N:M#removeAssociation` and `field` - [BUG] `Model#destroy()` now supports `field`, this also fixes an issue with `N:M#removeAssociation` and `field`
- [BUG] Customized error message can now be set for unique constraint that was created manually (not with sync, but e.g. with migrations) or that has fields with underscore naming. This was problem at least with postgres before. - [BUG] Customized error message can now be set for unique constraint that was created manually (not with sync, but e.g. with migrations) or that has fields with underscore naming. This was problem at least with postgres before.
- [INTERNALS] Update `inflection` dependency to v1.5.2
#### Backwards compatability changes #### Backwards compatability changes
- When eager-loading a many-to-many association, the attributes of the through table are now accessible through an attribute named after the through model rather than the through table name singularized. i.e. `Task.find({include: Worker})` where the table name for through model `TaskWorker` is `TableTaskWorkers` used to produce `{ Worker: { ..., TableTaskWorker: {...} } }`. It now produces `{ Worker: { ..., TaskWorker: {...} } }`. Does not affect models where table name is auto-defined by Sequelize, or where table name is model name pluralized. - When eager-loading a many-to-many association, the attributes of the through table are now accessible through an attribute named after the through model rather than the through table name singularized. i.e. `Task.find({include: Worker})` where the table name for through model `TaskWorker` is `TableTaskWorkers` used to produce `{ Worker: { ..., TableTaskWorker: {...} } }`. It now produces `{ Worker: { ..., TaskWorker: {...} } }`. Does not affect models where table name is auto-defined by Sequelize, or where table name is model name pluralized.
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
"dependencies": { "dependencies": {
"dottie": "0.2.4", "dottie": "0.2.4",
"generic-pool": "2.1.1", "generic-pool": "2.1.1",
"inflection": "1.5.1", "inflection": "1.5.2",
"lodash": "~2.4.0", "lodash": "~2.4.0",
"moment": "~2.8.0", "moment": "~2.8.0",
"node-uuid": "~1.4.1", "node-uuid": "~1.4.1",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!