Skip to content

chore: drop Node.js 20 support - #225

Draft
innerdvations wants to merge 1 commit into
mainfrom
chore/drop-node-20-support
Draft

chore: drop Node.js 20 support#225
innerdvations wants to merge 1 commit into
mainfrom
chore/drop-node-20-support

Conversation

@innerdvations

Copy link
Copy Markdown
Collaborator

What does it do?

  • Raise engines.node from ^20.19.0 || >=22.12.0 to >=22.12.0 (drop Node 20).
  • Raise the SDK CLI Vite build target from node20 to node22.
  • Add a major changeset.

Plugin server bundle defaults remain node20 so plugins built with the SDK can still run on Strapi apps that have not dropped Node 20 yet.

Why is it needed?

Node 20 reached EOL on 2026-04-30. Keeping Node 20 in engines while shipping dependencies that require Node 22+ (e.g. chalk 6) is dishonest packaging. CI already only runs on Node 22/24/26.

Related broader work: CMS-656 (CMS monorepo drop — not completed by this PR).

How to test it?

  1. On Node 22.12+ (or 24/26): pnpm install && pnpm check
  2. Confirm package.json engines is >=22.12.0
  3. Confirm vite.config.ts build target is node22
  4. Optional: on Node 20, pnpm install should warn/fail engines checks depending on package manager settings

Related issue(s)/PR(s)

Related: CMS-656 (CMS-wide drop still in progress; this is sdk-plugin engines only)

Require Node >=22.12.0 now that Node 20 is EOL. Align the SDK CLI Vite
build target with node22. Plugin server bundle defaults stay on node20
until Strapi CMS drops Node 20.
@innerdvations innerdvations added the pr: chore Cleanups / dependencies / tooling / styling label Aug 17, 2026
@changeset-bot

changeset-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 59b47ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@strapi/sdk-plugin Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 888e55ad-0eb3-4d98-b527-06434a4e14b8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

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

Labels

pr: chore Cleanups / dependencies / tooling / styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant