-
-
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
[RFC 673] Deprecate tryInvoke #19254
Conversation
fa39a3b
to
5ca044b
Compare
packages/@ember/-internals/glimmer/tests/integration/components/life-cycle-test.js
Outdated
Show resolved
Hide resolved
5ca044b
to
9eb8f7f
Compare
9eb8f7f
to
fbd50d3
Compare
@rwjblue code corrected! |
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.
Looks good, can you also update the ember-cli-babel
version listed in package.json
to be at least the current version? (that will help ensure we are using a new enough @babel/preset-env
that knows to transpile this properly for consuming apps)
This ensures a new enough `@babel/preset-env` that includes `@babel/plugin-syntax-optional-chaining`.
d04b873
to
15e3eb2
Compare
@rwjblue good catch! I should've thought of that as I just had this problem in an app this week 😂 FYI for anyone running into this, you need |
Nah. Having separate commits is great, when they each do something logical. |
Implements RFC #673 "Deprecate tryInvoke".
Deprecation guide PR.
There seemed to be some internal usage of
tryInvoke
, so I exported an underscored tryInvoke for internal usage, and call it from the public tryInvoke.I retrieved the deprecation URL from the preview, which should only change if the id changes.