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

Add deprecation warning to Ember.assign #19634

Closed
wants to merge 3 commits into from
Closed

Add deprecation warning to Ember.assign #19634

wants to merge 3 commits into from

Conversation

nlfurniss
Copy link
Contributor

Ember RFC #750 was approved; this implements it.

The url for the deprecation is optimistic (in that that page does not yet exist), let me know if I should handle that differently.

Copy link
Member

@mixonic mixonic left a comment

Choose a reason for hiding this comment

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

Minor ask, thanks for this patch!

@@ -49,7 +49,9 @@ moduleFor(
'Ember.assign (polyfill)',
class extends AssignTests {
assign() {
return assignPolyfill(...arguments);
return expectDeprecation(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return expectDeprecation(() => {
expectDeprecation(() => {

If we can safely discard the return value of assignPolyfill's result, then we simply don't need a return value.

@mixonic
Copy link
Member

mixonic commented Jul 17, 2021

Also, I believe we need someone to commit to writing the deprecation guide in the next few weeks (before the beta cut) in order to land this. It seems like we need 4.x section in the guides app ember-learn/deprecation-app#898

@rwjblue rwjblue closed this Jul 18, 2021
@rwjblue rwjblue deleted the branch emberjs:v4-cleanup July 18, 2021 02:05
@mixonic
Copy link
Member

mixonic commented Jul 18, 2021

@nlfurniss this PR was auto-closed when v4-cleanup was merged to master. Can you re-open for us to review/merge against master? This is excellent work and I don't want to lose it.

@nlfurniss nlfurniss deleted the deprecate-ember-assign-2 branch July 19, 2021 02:31
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.

3 participants