From cc72541604dc66ecf40fd69365233bf78328a278 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Wed, 27 Aug 2025 22:38:55 -0400 Subject: [PATCH] Revise deprecation notes for Ember service injection Updated deprecation handling information for injecting services in Ember. --- content/ember/v6/importing-inject-from-ember-service.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/ember/v6/importing-inject-from-ember-service.md b/content/ember/v6/importing-inject-from-ember-service.md index f4ac5120..942b1e61 100644 --- a/content/ember/v6/importing-inject-from-ember-service.md +++ b/content/ember/v6/importing-inject-from-ember-service.md @@ -18,7 +18,9 @@ export default class MyRoute extends Route { } ``` -You can use the [ember-codemod-remove-inject-as-service](https://github.com/ijlee2/ember-codemod-remove-inject-as-service) codemod, to fix all violations. +You may ignore this deprecation via babel plugin (for both app and addon code), here: [babel-plugin-undeprecate-inject-from-at-ember-service](https://github.com/NullVoxPopuli/undeprecate-inject-from-at-ember-service). + +For violations within your own code, this deprecation can be dealt with one a single pass via the [ember-codemod-remove-inject-as-service](https://github.com/ijlee2/ember-codemod-remove-inject-as-service) codemod. If you're working on a library that needs to support ember-source prior to 4.1, you can support both styles of `service` via: ```js