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

Removed escapeExpression from @ember/-internals (may be deprecated) #1844

Merged
merged 3 commits into from
Mar 4, 2024

Conversation

ijlee2
Copy link
Contributor

@ijlee2 ijlee2 commented Mar 4, 2024

Why?

Ember.Handlebars.Utils.escapeExpression may be deprecated. The related file is the only place where we write import Ember from 'ember';.

Solution?

ember-intl has been calling escapeExpression() only when typeof val === 'string' is equal to true. As a result, lines 89-102 can never be executed, and we can copy a small piece of code to keep the existing behavior.

@ijlee2 ijlee2 added the enhance: code Issue asks for new feature or refactor label Mar 4, 2024
@ijlee2 ijlee2 changed the title Remove escapeExpression (to be deprecated) Removed escapeExpression from @ember/-internals (may be deprecated) Mar 4, 2024
@ijlee2 ijlee2 marked this pull request as ready for review March 4, 2024 17:39
@ijlee2 ijlee2 merged commit d0f4855 into main Mar 4, 2024
23 checks passed
@ijlee2 ijlee2 deleted the remove-escapeExpression branch March 4, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhance: code Issue asks for new feature or refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant