Skip to content

Standardises the minimum supported Node.js version to >=22.0.0 across the root workspace and all packages.#2612

Merged
cs-raj merged 2 commits into
v2-devfrom
fix/DX-9300
Jun 24, 2026
Merged

Standardises the minimum supported Node.js version to >=22.0.0 across the root workspace and all packages.#2612
cs-raj merged 2 commits into
v2-devfrom
fix/DX-9300

Conversation

@cs-raj

@cs-raj cs-raj commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

chore: upgrade Node.js engine requirement to >=22.0.0

Summary

Standardises the minimum supported Node.js version to >=22.0.0 across the root workspace and all packages. Shipped as part of the major release alongside the cli-plugins change.

Why Now

Node version Status
Node 18 EOL — April 2025
Node 20 LTS ends April 2026
Node 22 LTS until April 2027 ✓
Node 24 Released, becomes LTS October 2025

The companion cli-plugins repo already requires Node 22 in practice (due to the uuid@14 ESM-only Snyk fix). Aligning cli keeps the requirement consistent across the full CLI surface.

Changes

File Before After
package.json (root) >=18.0.0 >=22.0.0
packages/contentstack/package.json >=14.0.0 >=22.0.0
packages/contentstack-auth/package.json >=14.0.0 >=22.0.0
packages/contentstack-command/package.json >=14.0.0 >=22.0.0
packages/contentstack-config/package.json >=14.0.0 >=22.0.0

Test Plan

  • All existing unit tests pass on Node 22.x
  • csdx --version reports correctly on Node 22
  • No engines mismatch warnings during pnpm install

@cs-raj cs-raj requested a review from a team as a code owner June 24, 2026 05:51
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 8 77 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 77
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@cs-raj cs-raj requested a review from harshitha-cstk June 24, 2026 05:56
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 3 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 3
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@cs-raj cs-raj merged commit 1582788 into v2-dev Jun 24, 2026
10 checks passed
@cs-raj cs-raj deleted the fix/DX-9300 branch June 24, 2026 06:37
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.

2 participants