The Wire · Showcase
SHOPIFY CLI DROPS NODE 22 LEGACY CODE
By RepoJournal · Filed · About Shopify
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.
One email a day. Unsubscribe in one click.
Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
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