Skip to content

Commit

Permalink
Release 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Gama committed Jun 15, 2016
1 parent 375185b commit 92e0169
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
# Changelog

## [1.0.3](https://github.com/seegno/bookshelf-cascade-delete/tree/1.0.3)
## [1.0.4](https://github.com/seegno/bookshelf-cascade-delete/tree/1.0.4)

[Full Changelog](https://github.com/seegno/bookshelf-cascade-delete/compare/1.0.3...1.0.4)

**Closed issues:**

- Destroying with where clause [\#14](https://github.com/seegno/bookshelf-cascade-delete/issues/14)

**Merged pull requests:**

- Update README.md contributing section [\#18](https://github.com/seegno/bookshelf-cascade-delete/pull/18) ([abelsoares](https://github.com/abelsoares))
- Fix cascade delete with queried models [\#17](https://github.com/seegno/bookshelf-cascade-delete/pull/17) ([ricardogama](https://github.com/ricardogama))
- Add a test file for each database engine [\#16](https://github.com/seegno/bookshelf-cascade-delete/pull/16) ([ricardogama](https://github.com/ricardogama))

## [1.0.3](https://github.com/seegno/bookshelf-cascade-delete/tree/1.0.3) (2016-06-14)
[Full Changelog](https://github.com/seegno/bookshelf-cascade-delete/compare/1.0.2...1.0.3)

**Closed issues:**
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports.default = function (Bookshelf) {
cascadeDelete: function cascadeDelete(transaction, options) {
var _this = this;

return (0, _bluebird.mapSeries)(this.constructor.recursiveDeletes(this.get(this.idAttribute), options), function (query) {
return (0, _bluebird.mapSeries)(this.constructor.recursiveDeletes(this.get(this.idAttribute) || this._knex.column(this.idAttribute), options), function (query) {
return query(transaction);
}).then(function () {
return Model.destroy.call(_this, (0, _extends4.default)({}, options, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bookshelf-cascade-delete",
"version": "1.0.3",
"version": "1.0.4",
"description": "Cascade delete with Bookshelf.js",
"license": "MIT",
"author": {
Expand Down

0 comments on commit 92e0169

Please sign in to comment.