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

refactor(DebugInfo): Changes DebugInfo constructor signature to POJO #636

Merged
merged 3 commits into from
May 14, 2019

Conversation

scalvert
Copy link
Contributor

@scalvert scalvert commented May 3, 2019

The signature of the DebugInfo constructor used to take a series of booleans. This type of signature becomes very hard to use and read, as a succession of true/false parameters doesn't help the reader understand what's required.

This PR addresses this by converting the signature to take a POJO, in this case of type SettledState.

@scalvert
Copy link
Contributor Author

scalvert commented May 6, 2019

This is technically a breaking change, but I think the only external consumer is ember-qunit. I'll leave it up to folks here to figure out the version number.

@rwjblue
Copy link
Member

rwjblue commented May 14, 2019

This is technically a breaking change

I don't think I agree, the constructor was not exposed as public API (AFAICT only this lib itself was creating instances of DebugInfo)

@rwjblue
Copy link
Member

rwjblue commented May 14, 2019

Sorry, didn't mean to seem so argumentative there! Indeed changing the constructor args is a breaking change, but since we don't (AFAIK) leak the constructor we should be safe.

@scalvert
Copy link
Contributor Author

👍

@rwjblue rwjblue merged commit 84b4d58 into emberjs:master May 14, 2019
@scalvert scalvert deleted the debug-info-pojo-param branch May 14, 2019 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants