$ the-wire · showcase
SHOPIFY CLI DROPS NODE 22 LEGACY CODE
By RepoJournal · Filed · About Shopify · Composed from the cited sources · methodology
The CLI team ripped out compatibility shims and polyfills that shouldn't have survived the Node 22.12.0 minimum bump.
Shopify CLI's package.json locked the floor at Node >=22.12.0, but the codebase was still carrying dead weight from older runtimes [1]. Isaac Roldán just merged a cleanup that removes the `Promise.withResolvers` polyfill, which had a comment flagging itself for removal the moment Node 22 became required [2]. The one callsite in `theme-environment.ts` now calls the native method directly. This is the kind of technical debt that doesn't hurt performance but makes the codebase harder to reason about. Small move, but the kind that compounds when you're maintaining a tool your entire platform depends on.
Action items
- → Pull the latest CLI and verify your theme and app commands work as expected Shopify/cli [plan]
References
- [1] Clean up Node <22 compatibility leftovers ↗ Shopify/cli
- [2] Merge pull request #8291 from Shopify/isaac/node-22-cleanup ↗ Shopify/cli