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
Quest: Update deprecations to include since
property
#14811
Comments
This looks good to me. First step for the quest issue is building a list of all the current deprecations in the code base. |
We also need to update |
Also, does this new public API require an RFC? For reference, the |
I did an
|
Hi all. Is anyone actively working on this? I'd like to take a stab at it since it should benefit my front-facing app. I also recently did the 1.11 -> canary upgrade so I have some familiarity with the deprecations. Is it just a matter of gathering the info here or would you accept normal PRs? |
@andyhot we need a related RFC first, since this will impact the public API of the |
ok - i've started gathering since versions for those deprecations (and added a few more found by |
Why do we need this again? The way I did the initial pass at svelte was that Ember would provide something like this:
And then in the code you would do:
The consumer of ember-source would then do:
This will strip all deprecated code |
We need to strip more than just |
I personally don't mind gathering the since versions - even if it ends up as an exercise. It already helped me appreciate the code more and perhaps it can even have a 'marketing' value. I've already found there are 3 leftovers from 1.13 that you all probably are aware of (one from 1.13.0 and two from 1.13.3) |
Any reason why @andyhot couldn't make a PR just for the missing |
@btecu even if it is not for the svelte, it would still be useful. |
Thanks everyone for the interest. I have created a new issue that supersedes this with the deprecation ids. Please see #15062 if you would like to help. |
Why
With the eventual introduction of Svelte builds, there will be a mechanism to say "strip out any code for deprecated features from 2.0 to 2.8". However, to enable this range-based decision, we need both the start of the range as well as the end, and we currently only have the end in the form of the
until
property passed to thedeprecate()
method.How
Ways to find deprecations:
deprecate()
method in the codebase[DEPRECATE]
and[DEPRECATION]
tags in the CHANGELOG.Let's see an example of how we'd do it for
Ember.K
:Before:
After:
What
Phase 1
Compile a list of all the deprecations present in the master branch.
Phase 2
Update deprecations to include a
since
field:Ember.K
factoryFor
render
helperComponent#renderToElement
The text was updated successfully, but these errors were encountered: