Skip to content

migrate inquirer usage to v12 syntax#14

Open
harshithad0703 wants to merge 2 commits intov2-dev-bugfixfrom
enh/dx-362-inquirer-v12
Open

migrate inquirer usage to v12 syntax#14
harshithad0703 wants to merge 2 commits intov2-dev-bugfixfrom
enh/dx-362-inquirer-v12

Conversation

@harshithad0703
Copy link
Contributor

@harshithad0703 harshithad0703 commented Mar 6, 2026

Changes

1. Upgraded inquirer from v8.2.7 to v12.11.1 (5 packages)

  • Packages: contentstack, contentstack-utilities, contentstack-bootstrap, contentstack-clone, contentstack-seed
  • Maintains Node.js 14+ runtime compatibility
  • Removes dependency on unmaintained inquirer-checkbox-plus-prompt
  • Fixed deprecated BottomBar API usage in contentstack-clone
  • Updated type imports for inquirer v12 compatibility in contentstack-utilities

2. Migrated contentstack-export-to-csv to @inquirer/prompts v8.2.1

  • Complete rewrite of interactive prompts using modern @inquirer/prompts ecosystem
  • Built-in search functionality (type to filter, space to select) replaces plugin-based search
  • Removed unmaintained dependencies: inquirer-checkbox-plus-prompt, inquirer-autocomplete-prompt
  • Updated Node requirement from unlimited to >=18.0.0

3. Upgraded TypeScript from v4.9.5 to v5.0.0 (17 packages)

  • Required to support inquirer v12's const type parameter syntax
  • Enables modern TypeScript features across the codebase
  • No impact on runtime compatibility

4. Updated @types/node from v14 to v18 (6 packages)

  • Required for TypeScript compilation with inquirer v12 type definitions

5. Plugins that use the inquirer table prompt

The table prompt is implemented in @contentstack/cli-utilities (inquirer-table-prompt.ts) and is used in one plugin only.
Plugin: @contentstack/cli-cm-branches (Branches)
Command: csdx cm:branches:merge
Package: packages/contentstack-branches
Usage: packages/contentstack-branches/src/utils/interactive.ts (two table prompts)

@harshithad0703 harshithad0703 requested a review from a team as a code owner March 6, 2026 06:39
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

🔒 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 2 1 25 ✅ Passed
🟡 Medium Severity 0 0 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: 1
  • Medium without fixes: 0
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

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.

1 participant