Skip to content
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

Proposal Allow mapping to return function when not wrapped with stub #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

steevsachs
Copy link

b8d0a95 introduced a breaking change where mappings that return functions will now return the result of those functions.

It appears the intent was only to support dynamic return values using stub.

This PR preserves the behavior of stub but eliminates calling functions that are specified as return values in mappings.

Note, this is a breaking change to 2.1.0 and 3.0.0, but it restores broken behavior from 2.0.3 which I believe was more correct. Would love feedback!

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.

1 participant