4.x line: a CI-published 4.0.4 would unblock `chokidar@4` for pnpm `trustPolicy` users
Author: igorsantosgrueiroCreated Sep 27, 2026Updated Sep 27, 2026
Hi, a short FYI following #1440.
- 4.0.2 and 4.0.3 (Dec 2024) were published by hand after 4.0.0/4.0.1 had provenance.
- 5.0.0 restored trusted publishing, but the 4.x line still ends at 4.0.3, which has about 58M weekly downloads.
- Because of that, pnpm's
trustPolicy: no-downgradestill rejects[email protected]. pnpm's own CHANGELOG uses it as thetrustPolicyExcludeexample. - Anything that resolves to
[email protected]fails to install under that policy.
Reproduce (lockfile-only):
mkdir t && cd t
echo '{"name":"t","version":"0.0.0","private":true,"dependencies":{"chokidar":"4.0.3"}}' > package.json
printf 'trustPolicy: no-downgrade\n' > pnpm-workspace.yaml
npx [email protected] install --lockfile-only --ignore-scriptsIf it's easy, a no-change 4.0.4 published through the same CI/trusted-publisher workflow as 5.x would resolve this for ^4 users. No worries if not. We've raised the date-based design with pnpm separately.
Igor Santos-Grueiro
Source: paulmillr/chokidar