Skip to content

Conversation

@Coly010
Copy link

@Coly010 Coly010 commented Jan 26, 2026

This update resolves peer dependency conflicts in repositories that use
both @swc/cli and Angular, as Angular now uses chokidar v5.

BREAKING CHANGE: Minimum Node.js version bumped from 16.14.0 to 20.19.0
to match chokidar v5's requirements.

Changes:

  • Update chokidar from ^4.0.1 to ^5.0.0 in devDependencies and peerDependencies
  • Add local type declarations for chokidar to support Node.js 20.19+
    (chokidar v5 types use Node.js 22+ generic EventEmitter)
  • Add skipLibCheck to tsconfig.json for type compatibility
  • Add explicit FSWatcher return type to watchSources function

This update resolves peer dependency conflicts in repositories that use
both @swc/cli and Angular, as Angular now uses chokidar v5.

BREAKING CHANGE: Minimum Node.js version bumped from 16.14.0 to 20.19.0
to match chokidar v5's requirements.

Changes:
- Update chokidar from ^4.0.1 to ^5.0.0 in devDependencies and peerDependencies
- Add local type declarations for chokidar to support Node.js 20.19+
  (chokidar v5 types use Node.js 22+ generic EventEmitter)
- Add skipLibCheck to tsconfig.json for type compatibility
- Add explicit FSWatcher return type to watchSources function
@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2026

🦋 Changeset detected

Latest commit: 289d10d

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

This PR includes changesets to release 1 package
Name Type
@swc/cli 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

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@socket-security
Copy link

socket-security bot commented Jan 26, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedchokidar@​4.0.1 ⏵ 5.0.0100 +210010081100

View full report

@kdy1 kdy1 self-assigned this Jan 27, 2026
"homepage": "https://github.com/swc-project/pkgs",
"engines": {
"node": ">= 16.14.0"
"node": ">= 20.19.0"
Copy link
Member

Choose a reason for hiding this comment

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

@kwonoj Thoughts?

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants