Skip to content

host: Fix some deprecation warnings#5221

Draft
backspace wants to merge 5 commits into
mainfrom
host-service-deprecations-cs-11526
Draft

host: Fix some deprecation warnings#5221
backspace wants to merge 5 commits into
mainfrom
host-service-deprecations-cs-11526

Conversation

@backspace

@backspace backspace commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Since the Ember 6 update we have some new deprecation warnings:

Importing `inject` from `@ember/service` is deprecated. Please import `service` instead. [deprecation id: importing-inject-from-ember-service]
importing ViewUtils from the 'ember' barrel file is deprecated. [deprecation id: deprecate-import-view-utils-from-ember]
importing _setClassicDecorator from the 'ember' barrel file is deprecated. [deprecation id: deprecate-import--set-classic-decorator-from-ember]
s 2026-06-12 at 13 45 39@2x

ember-freestyle 0.24 and ember-keyboard 9 fixed some of these, but unfortunately other addons that produce these don’t have merged fixes yet:

  • ember-animated has an open PR
  • I opened a PR for ember-elsewhere
  • ember-set-body-class also has a PR

With patches or overrides to use those PR branches, the deprecations are gone:

s 2026-06-12 at 13 45 58@2x

Removes ember-freestyle's deprecated `inject` imports from
`@ember/service`, which trigger the importing-inject-from-ember-service
deprecation (slated for removal in ember-source 7.0.0). The 0.24.0
import surface is unchanged: the freestyle-guide/section/usage component
paths, the freestyle controller, and the css-variable decorator all
still resolve.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

    1 files      1 suites   1h 36m 17s ⏱️
3 045 tests 3 030 ✅ 15 💤 0 ❌
3 064 runs  3 049 ✅ 15 💤 0 ❌

Results for commit ce95705.

Realm Server Test Results

    1 files      1 suites   9m 30s ⏱️
1 693 tests 1 693 ✅ 0 💤 0 ❌
1 786 runs  1 786 ✅ 0 💤 0 ❌

Results for commit ce95705.

backspace and others added 4 commits June 12, 2026 11:49
…ion fixes

These three addons import deprecated symbols that emit warnings under
Ember 6 (and are removed in ember-source 7.0.0): `inject` from
`@ember/service`, and `ViewUtils`/`_setClassicDecorator` from the
`ember` barrel. None have a released fix yet.

- ember-elsewhere and ember-set-body-class: point at the upstream fix
  branches via github: overrides (lockfile pins the exact commits).
- ember-animated: patch the published 2.2.0 to import getViewBounds from
  @ember/-internals/views, setClassicDecorator from @ember/-internals/metal,
  and service from @ember/service in the animated-* components.

Temporary until each upstream fix is released.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ember-keyboard 8.2.1 imported `inject` from `@ember/service` in its
on-key modifier, key-responder decorator, and on-key helper, emitting
the importing-inject-from-ember-service deprecation. 9.0.4 resolves the
service injection without the deprecated import and widens its
@ember/test-helpers peer range to cover the v5 used here. The on-key
modifier API is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The test-app pinned ember-page-title ^8.0.0, which imports `inject` from
`@ember/service` and emits the importing-inject-from-ember-service
deprecation in that suite. Match the host's ^9.0.3, which resolves it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
These three were bumped with inline version ranges across host and
boxel-ui packages. Centralize them in the pnpm catalog so the versions
are declared once, matching the convention used by the other ember-*
dependencies.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant