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

[RFC 673] Deprecate tryInvoke #19254

Merged
merged 2 commits into from
Nov 12, 2020
Merged

[RFC 673] Deprecate tryInvoke #19254

merged 2 commits into from
Nov 12, 2020

Conversation

locks
Copy link
Contributor

@locks locks commented Nov 7, 2020

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.

@locks locks marked this pull request as ready for review November 7, 2020 23:42
@locks locks requested review from rwjblue, pzuraq and a team November 8, 2020 00:22
@locks
Copy link
Contributor Author

locks commented Nov 11, 2020

@rwjblue code corrected!

Copy link
Member

@rwjblue rwjblue left a 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`.
@locks
Copy link
Contributor Author

locks commented Nov 12, 2020

@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 @babel/preset-env v7.8.0 or higher.
I made the ember-cli-babel update a separate commit, do you want me to manually squash it?

@locks locks requested a review from rwjblue November 12, 2020 21:08
@rwjblue
Copy link
Member

rwjblue commented Nov 12, 2020

I made the ember-cli-babel update a separate commit, do you want me to manually squash it?

Nah. Having separate commits is great, when they each do something logical.

@rwjblue rwjblue merged commit 371c06e into master Nov 12, 2020
@rwjblue rwjblue deleted the deprecate-try-invoke branch November 12, 2020 22:33
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