From 7f7759be68fc90875b753ae7d8823578126d28a8 Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Tue, 16 Aug 2022 17:25:29 -0400 Subject: [PATCH] docs: add link to Ember function prototype extensions deprecation RFC (#1569) --- docs/rules/no-function-prototype-extensions.md | 5 +++-- docs/rules/no-string-prototype-extensions.md | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/rules/no-function-prototype-extensions.md b/docs/rules/no-function-prototype-extensions.md index ebb283bb05..11177d761b 100644 --- a/docs/rules/no-function-prototype-extensions.md +++ b/docs/rules/no-function-prototype-extensions.md @@ -4,7 +4,7 @@ By default, Ember extends certain native JavaScript objects with additional methods. This can lead to problems in some situations. One example is relying on these methods in an addon that is used inside an app that has the extensions disabled. -The prototype extensions for the `function` object will likely become deprecated in the future. +The prototype extensions for the `function` object were deprecated in [RFC #272](https://rfcs.emberjs.com/id/0272-deprecation-native-function-prototype-extensions). Use computed property syntax, observer syntax, or module hooks instead of `.property()`, `.observes()` or `.on()` in Ember modules. @@ -48,7 +48,8 @@ export default Component.extend({ ## References -* [Ember Prototype extensions documentation](https://guides.emberjs.com/release/configuring-ember/disabling-prototype-extensions/) +* [Ember prototype extensions documentation](https://guides.emberjs.com/release/configuring-ember/disabling-prototype-extensions/) +* [Ember function prototype extensions deprecation RFC](https://rfcs.emberjs.com/id/0272-deprecation-native-function-prototype-extensions) ## Related Rules diff --git a/docs/rules/no-string-prototype-extensions.md b/docs/rules/no-string-prototype-extensions.md index e16fa2cfeb..fc8012dfe3 100644 --- a/docs/rules/no-string-prototype-extensions.md +++ b/docs/rules/no-string-prototype-extensions.md @@ -4,7 +4,7 @@ By default, Ember extends certain native JavaScript objects with additional methods. This can lead to problems in some situations. One example is relying on these methods in an addon that is used inside an app that has the extensions disabled. -The prototype extensions for the `String` object were deprecated in [RFC #236](https://emberjs.github.io/rfcs/0236-deprecation-ember-string.html). +The prototype extensions for the `String` object were deprecated in [RFC #236](https://rfcs.emberjs.com/id/0236-deprecation-ember-string/). ## Rule Details @@ -59,7 +59,7 @@ dasherize('myString'); ## References * [Ember prototype extensions documentation](https://guides.emberjs.com/release/configuring-ember/disabling-prototype-extensions/) -* [Ember String prototype extensions deprecation RFC](https://emberjs.github.io/rfcs/0236-deprecation-ember-string.html#string-prototype-extensions) +* [Ember String prototype extensions deprecation RFC](https://rfcs.emberjs.com/id/0236-deprecation-ember-string/) ## Related Rules