Skip to content

Rewrite promise #23

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 4 commits into from
Aug 31, 2017
Merged

Rewrite promise #23

merged 4 commits into from
Aug 31, 2017

Conversation

joelwurtz
Copy link
Member

Q A
Bug fix? yes
New feature? no
BC breaks? "no"
Deprecations? no
Related tickets
Documentation
License MIT

What's in this PR?

Rewrite the Promise class

Why?

Old behavior was never chaining result (see first commit with the test), thus updating the response through decorated or plugin system was never working, neither transforming response to exception (or vice versa)

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good. There are some BC breaks so we need to tag version 2.0.0.

FYI I've not tested the code.

@joelwurtz
Copy link
Member Author

joelwurtz commented Aug 31, 2017

For me the BC break is only on the Promise which is IMO something internal (i added the flag)

@Nyholm
Copy link
Member

Nyholm commented Aug 31, 2017

You also made that class final.

@joelwurtz
Copy link
Member Author

Hm right, we can tag 2.0, not really harmless to have directly that, upgrade is easy, but at least we are clear in the contract

@Nyholm
Copy link
Member

Nyholm commented Aug 31, 2017

If you are confident with these changes, then Im happy to tag 2.0.

@joelwurtz joelwurtz merged commit 175f973 into master Aug 31, 2017
@dbu dbu deleted the feature/rewrite-promise branch December 14, 2017 07:21
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