Deprecations Added in Ember 6.x

What follows is a list of deprecations introduced to Ember during the 6.x cycle.

For more information on deprecations in Ember, see the main deprecations page.

Deprecations Added in 6.3.0

Importing inject from @ember/service

until: 7.0.0
since: 6.3.0

Importing inject from @ember/service is deprecated. Please import service instead.

Example:

my-route.js
import { Route } from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { service } from '@ember/service';

export default class MyRoute extends Route {
  @service store;
}

You can use the ember-codemod-remove-inject-as-service codemod, to fix all violations.

Deprecations Added in 6.5.0

import Ember from 'ember'

until: 7.0.0
since: 6.5.0
includes: 149 deprecations

import Ember from 'ember'; is deprecated. APIs that were previously accessed via Ember should be imported directly from their respective packages.

This was introduced in RFC #1003.