npm / picomatch
picomatch
What changed in picomatch 3 to 4, from its official release notes, upgrade guides and advisories. Also covers @types/picomatch. Sources checked 2026-11-30.
2 breaking2 security1 new APIs and options6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpicomatch 48 changes
Security 2
Fixes the security issue identified as CVE-2026-33671.
Fixes the security issue identified as CVE-2026-33672.
Fixes and other changes 6
Fixed handling of terminal globstars in parenthesized patterns.
Returns complete pattern parts from scan.
Scans the full pattern when tokens are requested.
Rewriting risky repeated extglobs now preserves all branches.
The windows option is now honored when matching basenames.
Fixes an exception when a glob pattern contains a constructor.
picomatch 33 changes
Breaking changes 2
The undocumented constants property is no longer copied to the package's main export.
Windows path-separator handling is controlled by this option instead of automatic platform detection. Calls without an options object use POSIX behavior; pass windows: true when backslashes should be treated as path separators.
New APIs and options 1
A dependency-free entry point is available for browser and other non-Node.js environments; it uses POSIX path semantics unless windows: true is passed.