Skip to content

Add support for Node 24+#1117

Draft
gciotola wants to merge 2 commits intomainfrom
feat/1116-node24
Draft

Add support for Node 24+#1117
gciotola wants to merge 2 commits intomainfrom
feat/1116-node24

Conversation

@gciotola
Copy link
Copy Markdown
Contributor

@gciotola gciotola commented May 8, 2026

Closes #1116

What I did

  • Project now requires node 24 to run
  • Updated Github pipelines
  • Updated test mock server to run in latest node versions

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
  • Make sure to add/update documentation regarding your changes.
  • You are NOT deprecating/removing a feature.

Co-authored-by: Copilot <copilot@github.com>
@gciotola gciotola requested a review from pfferrari May 8, 2026 15:57
@netlify
Copy link
Copy Markdown

netlify Bot commented May 8, 2026

Deploy Preview for commercelayer-app-elements ready!

Name Link
🔨 Latest commit 68e418f
🔍 Latest deploy log https://app.netlify.com/projects/commercelayer-app-elements/deploys/69fe0b395a78440008c32439
😎 Deploy Preview https://deploy-preview-1117--commercelayer-app-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gciotola gciotola added the enhancement New feature or request label May 8, 2026
@gciotola gciotola self-assigned this May 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the repo to require/run on Node.js 24+ and adjusts CI + test dependencies to be compatible with newer Node/undici behavior.

Changes:

  • Bump Node engine requirements to >=24 and align local tooling (.npmrc) + GitHub Actions to use Node 24.
  • Update MSW (and related lockfile entries) to a newer version.
  • Adjust test setup and snapshots to accommodate Node/undici + mocked resources behavior.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pnpm-lock.yaml Updates locked dependency versions (notably MSW + rettime) consistent with Node 24+ compatibility.
package.json Raises root Node engine requirement to >=24.
.npmrc Updates the pinned Node version used by tooling to 24.14.1.
packages/app-elements/package.json Raises Node engine requirement to >=24 and bumps MSW dependency.
packages/docs/package.json Raises Node engine requirement to >=24 and bumps MSW dependency.
packages/app-elements/src/mocks/stubs.ts Adds a test-only workaround for AbortSignal/undici incompatibility in newer Node versions.
packages/app-elements/src/ui/forms/CodeEditor/fetchCoreResourcesSuggestions.test.ts Updates assertions/snapshots for relationship suggestions.
.github/workflows/test.yaml Runs CI tests on Node 24.x.
.github/workflows/publish.yaml Runs publish workflow on Node 24.x.
.github/workflows/pkg-pr-new.yaml Runs pkg-pr-new workflow on Node 24.x and changes how pkg-pr-new is invoked.
.github/workflows/gh-pages.yaml Runs gh-pages workflow on Node 24.x.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported
Comments suppressed due to low confidence (1)

packages/app-elements/src/ui/forms/CodeEditor/fetchCoreResourcesSuggestions.test.ts:1091

  • The inline snapshot no longer includes order.versions, but the test fixture for /api/public/resources still includes the versions relationship on order. This mismatch can hide whether the suggestion list changed intentionally vs. the tests drifting from the mocked schema; consider aligning by either updating the fixture/schema (if versions is truly gone) or restoring the snapshot entry.
    },
    {
      "type": "relationship",
      "value": "order.tags",
    },
    {
      "type": "relationship",
      "value": "order.event_stores",
    },

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

Comment thread .github/workflows/pkg-pr-new.yaml
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 8, 2026

npm i https://pkg.pr.new/commercelayer/app-elements/@commercelayer/app-elements@1117

commit: 68e418f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Node v24

3 participants