Skip to content

host: Fix some deprecation warnings - #5221

Merged
backspace merged 14 commits into
mainfrom
host-service-deprecations-cs-11526
Jul 8, 2026
Merged

backspace merged 14 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

With these dependency updates, the warnings are gone:

s 2026-07-08 at 17 39 01@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  ±0      1 suites  ±0   2h 39m 20s ⏱️ +48s
3 417 tests +2  3 402 ✅ +2  15 💤 ±0  0 ❌ ±0 
3 436 runs  +2  3 421 ✅ +2  15 💤 ±0  0 ❌ ±0 

Results for commit 81dcc2f. ± Comparison against earlier commit fd12613.

Realm Server Test Results

    1 files  ±0      1 suites  ±0   12m 0s ⏱️ -1s
1 738 tests +1  1 738 ✅ +1  0 💤 ±0  0 ❌ ±0 
1 817 runs  +1  1 817 ✅ +1  0 💤 ±0  0 ❌ ±0 

Results for commit 81dcc2f. ± Comparison against earlier commit fd12613.

backspace and others added 11 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>
@backspace
backspace marked this pull request as ready for review July 8, 2026 16:39
@backspace
backspace requested a review from a team July 8, 2026 22:40
@habdelra
habdelra requested a review from Copilot July 8, 2026 22:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates a small set of Ember addon dependencies (and aligns them to the repo’s pnpm catalog) to eliminate new deprecation warnings introduced after the Ember 6 upgrade.

Changes:

  • Bump ember-animated to ^2.3.0 and add/update several Ember addon versions in the workspace catalog.
  • Switch packages/host and packages/boxel-ui/* package.json entries to "catalog:" for the affected addons to ensure consistent versioning across workspaces.
  • Refresh pnpm-lock.yaml to reflect the resolved versions and transitive dependency updates.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pnpm-workspace.yaml Updates the workspace catalog entries for the Ember addons implicated in the deprecation warnings (and bumps ember-animated).
pnpm-lock.yaml Lockfile refresh reflecting the new catalog versions and transitive dependency changes.
packages/host/package.json Moves ember-elsewhere, ember-freestyle, ember-keyboard, and ember-page-title to "catalog:" to match workspace catalog versions.
packages/boxel-ui/test-app/package.json Moves ember-freestyle and ember-page-title to "catalog:" to match workspace catalog versions.
packages/boxel-ui/addon/package.json Moves ember-freestyle and ember-set-body-class to "catalog:" to match workspace catalog versions.
Files not reviewed (1)
  • pnpm-lock.yaml: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@backspace
backspace merged commit ef1fa26 into main Jul 8, 2026
78 of 80 checks passed
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.

3 participants