Repository navigation
host: Fix some deprecation warnings - #5221
Conversation
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>
Preview deploymentsHost Test Results 1 files ±0 1 suites ±0 2h 39m 20s ⏱️ +48s Results for commit 81dcc2f. ± Comparison against earlier commit fd12613. Realm Server Test Results 1 files ±0 1 suites ±0 12m 0s ⏱️ -1s Results for commit 81dcc2f. ± Comparison against earlier commit fd12613. |
…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>
# Conflicts: # pnpm-lock.yaml
…ions-cs-11526 # Conflicts: # pnpm-lock.yaml
There was a problem hiding this comment.
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-animatedto^2.3.0and add/update several Ember addon versions in the workspacecatalog. - Switch
packages/hostandpackages/boxel-ui/*package.json entries to"catalog:"for the affected addons to ensure consistent versioning across workspaces. - Refresh
pnpm-lock.yamlto 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.
Since the Ember 6 update we have some new deprecation warnings:
With these dependency updates, the warnings are gone: