Skip to content

Pass valuesObject.criteria to beforeCallbacks#1120

Closed
mmiller42 wants to merge 2 commits intobalderdashy:masterfrom
mmiller42:master
Closed

Pass valuesObject.criteria to beforeCallbacks#1120
mmiller42 wants to merge 2 commits intobalderdashy:masterfrom
mmiller42:master

Conversation

@mmiller42
Copy link

Pass criteria to the beforeUpdate callbacks. Passes criteria as the last argument, which does not follow the Node.js convention of putting the callback last, but it would be a non-breaking change to existing implementations that expect arguments as they were.

Serves as a solution to issue #1004.

@devinivy
Copy link
Contributor

#1004 is in the 0.11 milestone, and we expect this to be a breaking change. Want to make a PR with the breaking change to the 0.11 branch?

@mmiller42
Copy link
Author

Sure. Since you are expecting a breaking change, should I rearrange the arguments to put criteria before done, then?

@mmiller42 mmiller42 closed this Aug 15, 2015
@mmiller42
Copy link
Author

Opened PR #1122 with test coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants