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

[BUGFIX release] Deprecate htmlSafe via prototype #19690

Merged
merged 1 commit into from
Aug 1, 2021

Conversation

mixonic
Copy link
Member

@mixonic mixonic commented Aug 1, 2021

In Ember 3.24 various string methods added to the String.prototype were deprecated for removal in Ember 4.0. htmlSafe (the version available via string prototype) was supposed to be included in those deprecations, however dues to its implementation being different it was missed. This omission can be understood as a bug.

This patch deprecates String.prototype.htmlSafe targeting Ember 4.0. This will allow the removal of all string prototype extensions in 4.0 as intended by the original deprecation.

See also: #19654 (comment)

@mixonic mixonic force-pushed the mixonic/html-safe-deprecation branch from 8738d5d to 4edd367 Compare August 1, 2021 13:01
@mixonic mixonic force-pushed the mixonic/html-safe-deprecation branch 6 times, most recently from d219784 to 56126df Compare August 1, 2021 13:40
@mixonic mixonic marked this pull request as ready for review August 1, 2021 13:40
In Ember 3.24 various string methods added to the `String.prototype` were
deprecated for removal in Ember 4.0. `htmlSafe` (the version available
via string prototype) was supposed to be included in those deprecations,
however dues to its implementation being different it was missed. This
omission can be understood as a bug.

This patch deprecates `String.prototype.htmlSafe` targeting Ember 4.0.
This will allow the removal of *all* string prototype extensions in 4.0
as intended by the original deprecation.

See also: emberjs#19654 (comment)
@mixonic mixonic force-pushed the mixonic/html-safe-deprecation branch from 56126df to c6c6978 Compare August 1, 2021 13:46
id: 'ember-string.prototype-extensions',
for: 'ember-source',
since: {
enabled: '3.27.6',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be the next 3.27 release.

@mixonic mixonic merged commit 015bd42 into emberjs:master Aug 1, 2021
@mixonic mixonic deleted the mixonic/html-safe-deprecation branch August 1, 2021 17:23
@nlfurniss
Copy link
Contributor

@mixonic should this be added to the deprecation-app? I can do that if so

@mixonic
Copy link
Member Author

mixonic commented Aug 17, 2021

@nlfurniss yeah I think so, it can join the other string deprecation entry. It doesn't need to be a new entry entirely.

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