Skip to content

Upgraded Node version to 22 for plugins and Readme Update#245

Open
cs-raj wants to merge 2 commits into
developmentfrom
fix/DX-9334
Open

Upgraded Node version to 22 for plugins and Readme Update#245
cs-raj wants to merge 2 commits into
developmentfrom
fix/DX-9334

Conversation

@cs-raj

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

Copy link
Copy Markdown
Contributor

No description provided.

@cs-raj cs-raj requested a review from a team as a code owner June 25, 2026 13:07
@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 1 7 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

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 2 90 / 365 days ⚠️ Warning
🔵 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: 7
  • Low without fixes: 0

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

Consider reviewing these vulnerabilities when fixes become available.

@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 1 5 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

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 1 90 / 365 days ⚠️ Warning
🔵 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: 5
  • Low without fixes: 0

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

Consider reviewing these vulnerabilities when fixes become available.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates multiple Contentstack CLI plugin packages in this monorepo to require Node.js 22+, bumps package versions/dependencies accordingly, and refreshes several plugin READMEs (usage blocks, install guidance, links).

Changes:

  • Raised engines.node to >=22.0.0 across the root workspace and many plugin packages; bumped package versions and aligned @contentstack/cli-command-family dependencies.
  • Regenerated/edited README content across plugins (usage/commands sections, region-switching guidance, license/npm links).
  • Added packages/contentstack-clone/PR_DESCRIPTION.md (but it currently does not match the code in this PR).

Reviewed changes

Copilot reviewed 40 out of 40 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
packages/contentstack-seed/README.md README refresh (usage block + wording updates).
packages/contentstack-seed/package.json Version bump, dependency bumps, Node engine raised to >=22.
packages/contentstack-query-export/README.md README rewrite (toc/options/examples + commands section).
packages/contentstack-query-export/package.json Version bump, dependency bumps, Node engine raised to >=22.
packages/contentstack-migration/README.md License link + usage/version snippet updates; removed “Points to remember” section.
packages/contentstack-migration/package.json Version bump, dependency bump, Node engine raised to >=22.
packages/contentstack-migrate-rte/README.md README cleanup + license badge + usage snippet updates.
packages/contentstack-migrate-rte/package.json Version bump, Node engine raised to >=22.
packages/contentstack-import/README.md README updated (region switching guidance + usage snippet).
packages/contentstack-import/package.json Version bump, dependency bumps, Node engine raised to >=22.
packages/contentstack-import-setup/README.md README updated (region switching guidance + usage snippet).
packages/contentstack-import-setup/package.json Version bump, dependency bump, Node engine raised to >=22.
packages/contentstack-external-migrate/README.md README header/npm badge updates; removed redundant section header.
packages/contentstack-external-migrate/package.json Version bump, dependency bump, Node engine raised to >=22.
packages/contentstack-export/README.md README updated (license link + region switching guidance + usage snippet).
packages/contentstack-export/package.json Version bump, dependency bumps, Node engine raised to >=22.
packages/contentstack-export-to-csv/README.md README expanded with toc/usage/commands content and updated “See code” link.
packages/contentstack-export-to-csv/package.json Version bump, dependency bump, Node engine raised to >=22.
packages/contentstack-content-type/README.md README header/npm link + usage block updates.
packages/contentstack-content-type/package.json Version bump, Node engine raised to >=22.
packages/contentstack-clone/README.md Usage snippet update + removed duplicated usage block.
packages/contentstack-clone/PR_DESCRIPTION.md Added PR description document for clone behavior fix.
packages/contentstack-clone/package.json Version bump, dependency bumps, Node engine raised to >=22.
packages/contentstack-cli-tsgen/README.md README header/npm link + commands section updates.
packages/contentstack-cli-tsgen/package.json Version bump, dependency bump, Node engine raised to >=22.
packages/contentstack-cli-cm-regex-validate/README.md README badge/link + usage snippet updates; “See code” link updated.
packages/contentstack-cli-cm-regex-validate/package.json Version bump, Node engine raised to >=22, dev dependency updates.
packages/contentstack-bulk-publish/README.md README license link + usage snippet update.
packages/contentstack-bulk-publish/package.json Version bump, dependency bumps, Node engine raised to >=22.
packages/contentstack-bulk-operations/README.md README refresh (toc/usage text cleanup + requirements line update).
packages/contentstack-bulk-operations/package.json Version bump, dependency bump, Node engine raised to >=22.
packages/contentstack-branches/README.md README license link + region switching guidance + usage snippet update.
packages/contentstack-branches/package.json Version bump, dependency bump, Node engine raised to >=22.
packages/contentstack-bootstrap/README.md README header + usage snippet update; removed duplicated usage block.
packages/contentstack-bootstrap/package.json Version bump, dependency bumps, Node engine raised to >=22.
packages/contentstack-audit/README.md README cleanup + usage snippet update.
packages/contentstack-audit/package.json Version bump, dependency bump, Node engine raised to >=22.
packages/contentstack-apps-cli/README.md README cleanup + “See code” links updated to this monorepo; usage snippet updated.
packages/contentstack-apps-cli/package.json Version bump, dependency bump, Node engine raised to >=22.
package.json Root Node engine raised to >=22.

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

Comment on lines +1 to +3
# @contentstack/contentstack-cli-content-type

[![npm](https://img.shields.io/npm/v/contentstack-cli-content-type)](https://npmjs.org/package/@contentstack/contentstack-cli-content-type)
Comment on lines +1 to +3
# @contentstack/contentstack-cli-tsgen

[![npm](https://img.shields.io/npm/v/contentstack-cli-tsgen)](https://npmjs.org/package/@contentstack/contentstack-cli-tsgen)

## Description
The seed command in Contentstack CLI allows users to import content to your stack, from Github repositories. It's an effective command that can help you to migrate content to your stack with minimal steps.
The "seed" command in Contentstack CLI allows users to import content to your stack, from Github repositories. It's an effective command that can help you to migrate content to your stack with minimal steps.
**Contentstack's organization**: In this organization, we have provided sample content, which you can import directly to your stack using the seed command.

**Githubs repository**: You can import content available on Githubs repository belonging to an organization or an individual.
**Github's repository**: You can import content available on Github's repository belonging to an organization or an individual.
Now, run `csdx cm:export` against it. The following documentation explains the [Export Plugin](https://www.contentstack.com/docs/developers/cli/export-content-using-cli/).

In most cases, running `csdx cm:export -A` or `csdx cm:export -a "management token"` should work for you.
In most cases, running `csdx cm:export -a "management token alias"` or `csdx cm:export -a "management token"` should work for you.
Comment on lines +41 to +42
# Export using API key and alias
csdx cm:stacks:export-query --stack-api-key <api-key> -a <alias> --query '{"title": {"$exists": true}}'
Comment on lines +49 to +52
| `-a, --alias` | Management token alias | Yes (or use `-k, --stack-api-key`) |
| `-k, --stack-api-key` | Stack API key | Yes (or use `--alias`) |
| `-c, --config` | External config file path | No |
| `--query` | Query as JSON string or file path | Yes |
## Requirements

- Node.js >= 22
- Node.js >= 22.21.1
Comment on lines +52 to +61
## Fix

Removed the `console.clear()` from `cloneTypeSelection()`. The inquirer list prompt renders correctly without it — there was no functional reason for the clear.

**`src/core/util/clone-handler.ts`**
```diff
async cloneTypeSelection(): Promise<any> {
- console.clear();
return new Promise(async (resolve, reject) => {
```

@aniket-shikhare-cstk aniket-shikhare-cstk left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

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.

4 participants