Skip to content

findandbind: pass found entry to callback #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2016
Merged

findandbind: pass found entry to callback #86

merged 1 commit into from
Mar 2, 2016

Conversation

tcort
Copy link
Contributor

@tcort tcort commented Mar 2, 2016

Prior versions of findandbind() passed (err, data) to the callback.
This functionality was broken, I believe inadvertently, in commit
a4b9ce6 It's still documented in
the README and the callbacks in the unit tests still accept
(err, data). Since it was broken in a minor version bump (3.0->3.1),
it will break existing code that relies on data being passed back
and uses the caret operator to specify dependency versions.

Restore that functionality, by passing the found entry
to the callback supplied to findandbind().

Prior versions of `findandbind()` passed `(err, data)` to the callback.
This functionality was broken, I believe inadvertently, in commit
a4b9ce6 It's still documented in
the README and the callbacks in the unit tests still accept
`(err, data)`. Since it was broken in a minor version bump (3.0->3.1),
it will break existing code that relies on `data` being passed back
and uses the caret operator to specify dependency versions.

Restore that functionality, by passing the found entry
to the callback supplied to `findandbind()`.
jeremycx added a commit that referenced this pull request Mar 2, 2016
findandbind: pass found entry to callback
@jeremycx jeremycx merged commit b72216f into jeremycx:master Mar 2, 2016
@jeremycx
Copy link
Owner

jeremycx commented Mar 2, 2016

Thanks for the PR! Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants