Skip to content

feat(cli): Update chokidar to v5#122

Merged
kdy1 merged 5 commits intoswc-project:mainfrom
Coly010:update-chokidar
Feb 6, 2026
Merged

feat(cli): Update chokidar to v5#122
kdy1 merged 5 commits intoswc-project:mainfrom
Coly010:update-chokidar

Conversation

@Coly010
Copy link
Contributor

@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: e5421ad

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 Minor

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

CLAassistant commented Jan 26, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ kdy1
❌ Coly010
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
@kdy1 kdy1 enabled auto-merge (squash) February 6, 2026 04:56
@kdy1 kdy1 disabled auto-merge February 6, 2026 04:57
@kdy1 kdy1 enabled auto-merge (squash) February 6, 2026 04:58
@kdy1
Copy link
Member

kdy1 commented Feb 6, 2026

I removed a changeset with a wrong bump. Major here means 1.0 so it’s not what we want

@kdy1 kdy1 merged commit 12e5b06 into swc-project:main Feb 6, 2026
10 of 11 checks passed
@Coly010
Copy link
Contributor Author

Coly010 commented Feb 6, 2026

Thanks @kdy1 ! I wasn't sure if lerna's special case handling for Major bumps for 0.x versions would apply (bumping the minor).

It looks like the publish pipeline failed, just curious if it would be possible to re-run it, such that a new version can be published to allow me to update the versions of swc Nx installs for users?

@kdy1
Copy link
Member

kdy1 commented Feb 6, 2026

Done, thank you for the PR!

https://github.com/swc-project/pkgs/actions/runs/21748677787/job/62740847849

github-merge-queue bot pushed a commit to AmadeusITGroup/otter that referenced this pull request Feb 10, 2026
## Proposed change

- [x] Pending update on `@swc/cli`
swc-project/pkgs#122

## Related issues

<!--
Please make sure to follow the [contribution
guidelines](https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md)
-->

*- No issue associated -*

<!-- * 🐛 Fix #issue -->
<!-- * 🐛 Fix resolves #issue -->
<!-- * 🚀 Feature #issue -->
<!-- * 🚀 Feature resolves #issue -->
<!-- * :octocat: Pull Request #issue -->
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.

4 participants