Skip to content

Move to Ember 7.3.1 and ember-cli 7.3.0 (CD-383) - #297

Closed
phndiaye wants to merge 8 commits into
pn/cd-375-action-helperfrom
pn/cd-383-ember-7-3
Closed

phndiaye wants to merge 8 commits into
pn/cd-375-action-helperfrom
pn/cd-383-ember-7-3

Conversation

@phndiaye

@phndiaye phndiaye commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Ember 7.3.1 / ember-cli ~7.3.0, classic loose build kept (dummy app only). Stacked on #293 (pn/cd-375-action-helper, which contains the 6.12 bump #294/#295 and #296); retarget to feature/ember-upgrade-4-to-7 once #293 merges. Review commit by commit.

  1. Owner types: constructor(owner: unknown, ...) to Owner in 10 files (mechanical).
  2. Locale in tests: setupIntl(hooks) to setupIntl(hooks, 'en-us') (11 files), this.intl looked up where read, setupIntl added to the 2 files that used the service without it, TestContext imported from @ember/test-helpers (ember-intl 7 no longer exports it). Kept in this PR (about 25 files, ~40 lines) rather than split.
  3. Toolchain, works on 6.12: ember-cli-htmlbars ^7.0.1, use-ember-modules (@ember/optional-features ^3), babel-plugin-ember-template-compilation ^3.1.0, ember-intl ^7.5.0, @glimmer/component ^2.2.1, @ember/test-waiters ^4.1.2 override, oss-components pinned to pn/cd-383-ember-7-3.
  4. ember-source ~7.3.1, ember-cli ~7.3.0, engines.node >= 20.19.
  5. resolutions moved into pnpm-workspace.yaml overrides: with resolutions present pnpm ignored the workspace overrides, so the test-waiters override was not applied (the commit message also mentions a short-lived ember-flatpickr override, replaced by item 7).
  6. Tests locale for the classic table (hyper-table-test, numeric renderer), which rendered format-number without a locale.
  7. ember-flatpickr ^3.1.1 to ^9.0.2 (+ flatpickr ^4.6.13 as a direct dependency, a peer of 9) and ember-sortable ^4.0.3 to ^5.4.1: the v1 builds fail on Ember 7 ("needs to depend on ember-auto-import", and flatpickr 3 pulls its own @glimmer/component 1 and htmlbars 6). Same EmberFlatpickr component and sortable helpers/modifiers; the date filter and column reordering tests pass. ember-flatpickr 9 declares node >= 22 in engines (warning only). Not visually checked.

Pin: oss-components 89f18b66 = git ls-remote of pn/cd-383-ember-7-3 today (merge oss-components#732 first, then retarget). ember-cli-ifa is resolved but not loaded by the dummy app, so no patch here.

Checks on the head: frozen install, tsc 0, production build, ember ts:precompile, tests 335 pass / 1 skipped (same as the 6.12 baseline), Chrome. Known open items #288, #291 and template lint untouched; lint:js not run (eslint does not start here). pnpm why: ember-cli-htmlbars 7.0.1 only; @embroider/shared-internals 2.8.1/3.2.1.

Peer ranges (hyperevents ^1.x, oss-components ^3.x) are left as they were; the last commit restores them after an earlier commit in this PR had dropped them.

🤖 Generated with Claude Code

Mechanical: `constructor(owner: unknown, ...)` becomes `constructor(owner: Owner, ...)`
in 10 files. @glimmer/component 2 requires a typed owner and the change also
compiles against 1.x.
ember-intl 7 requires the locale in setupIntl and no longer sets this.intl on the
test context; 6.x accepts both forms.
…er-intl 7, glimmer 2

oss-components is pinned to its Ember 7 branch, @ember/test-waiters is overridden
to 4.x and the oss-components peer range, which the new major would reject, is
dropped.
pnpm ignored the workspace overrides (the test-waiters one included) while
package.json carried resolutions. ember-flatpickr 3.2.3 compiles with
ember-cli-htmlbars 6, which cannot load the template compiler on Ember 7, so it
is overridden to 7 as well.
They rendered format-number without a locale, which ember-intl 7 no longer defaults.
The v1 builds (ember-flatpickr 3.2.3, ember-sortable 4.0.3) cannot build on Ember 7:
they need ember-auto-import to import @ember/test-waiters and @glimmer/component, and
flatpickr 3 ships its own @glimmer/component 1 and ember-cli-htmlbars 6. The v2
releases keep the same components and modifiers; flatpickr 4 is now a direct dependency
because 9 takes it as a peer.
@phndiaye
phndiaye requested a review from a team as a code owner November 3, 2026 14:07
@phndiaye
phndiaye requested review from Elodie-DeMatteis-Upf, OwenCoogan and edouardmisset and removed request for a team November 3, 2026 14:07
@linear-code

linear-code Bot commented Nov 3, 2026

Copy link
Copy Markdown

CD-383

@phndiaye
phndiaye marked this pull request as draft November 3, 2026 15:05
@phndiaye

phndiaye commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Parked: Ember 7 is on hold until third-party patches are resolved; branch kept, will be rebased when we resume

@phndiaye

phndiaye commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Closed: the Ember 7 trial is dropped; we stay on Ember 6.12. Branch kept for reference, not deleted. The 6.12-safe parts were re-landed separately.

@phndiaye phndiaye closed this Nov 3, 2026
@phndiaye
phndiaye deleted the pn/cd-383-ember-7-3 branch November 3, 2026 15:31
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