-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Deprecate Ember.merge #16956
Deprecate Ember.merge #16956
Conversation
let eventOpts = merge({}, DEFAULT_EVENT_OPTIONS); | ||
merge(eventOpts, options); | ||
let eventOpts = assign({}, DEFAULT_EVENT_OPTIONS); | ||
assign(eventOpts, options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace this with a single assign?
let eventOpts = merge({}, DEFAULT_EVENT_OPTIONS); | ||
merge(eventOpts, options); | ||
let eventOpts = assign({}, DEFAULT_EVENT_OPTIONS); | ||
assign(eventOpts, options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here? We should only need one assign...
deprecate('Use of `merge` has been deprecated. Please use `assign` instead.', false, { | ||
id: 'ember-polyfills.deprecate-merge', | ||
until: '4.0.0', | ||
url: 'https://emberjs.com/deprecations/v3.x/#toc_ember-polyfills-deprecate-merge', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this created yet? Can you link me to the deprecation app PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not created yet. I need to look into what I need to do for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just created it ember-learn/deprecation-app#179
We also need to guard this with deprecation flags for svelting, something like #16745. |
@rwjblue I added a link to the deprecations app PR and attempted the svelting stuff. Not sure I did it exactly right, so feel free to let me know what I should tweak. One thing I wasn't sure on is what version we should mark this deprecation as introduced in? I randomly chose 3.5 for both the svelting here and the deprecations app PR, but I think it will have to be a later version probably, since I think 3.5 beta has already been cut? |
Correct, master currently represents 3.6. We could backport the deprecation into 3.5 betas but I don’t see why we would necessarily want to do that so let’s just say 3.6... |
@rwjblue just updated to point to 3.6. Let me know if there are any other tweaks I should make 😄 |
I merged the deprecation PR, it should redeploy soon, would you mind confirming the url here works properly? Once we’ve done that we can merge... |
https://emberjs.com/deprecations/v3.x/#toc_ember-polyfills-deprecate-merge is up and working :) |
@rwjblue looks like it's deployed and working. Anything else we need to tweak here? |
No description provided.