Skip to content

Get ember service in way that avoids deprecation#792

Merged
SergeAstapov merged 2 commits intoember-animation:masterfrom
evoactivity:fix-inject-deprecation
Nov 15, 2025
Merged

Get ember service in way that avoids deprecation#792
SergeAstapov merged 2 commits intoember-animation:masterfrom
evoactivity:fix-inject-deprecation

Conversation

@evoactivity
Copy link
Contributor

Closes #783

Uses code suggested by deprecation block https://deprecations.emberjs.com/id/importing-inject-from-ember-service/

@mogstad
Copy link

mogstad commented Oct 24, 2025

The service import was introduced in Ember 4.1, and the minimum supported version of ember-animated is Ember 4.4, so doing just import { service } from '@ember/service'; should be sufficient.

@SergeAstapov SergeAstapov merged commit f6301c5 into ember-animation:master Nov 15, 2025
20 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Importing inject from @ember/service is deprecated in the latest releases

3 participants