npm / globby
globby
What changed in globby 16, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.
1 breaking3 new APIs and options1 performance2 behavior and defaults11 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initglobby 1618 changes
Breaking changes 1
With gitignore enabled, Globby searches for .gitignore files up to the detected Git repository root, so parent ignore patterns now apply to subdirectories.
New APIs and options 3
Adds the globalGitignore option.
Adds the expandNegationOnlyPatterns option.
The isGitIgnored functions now accept additional options.
Performance 1
A performance issue when gitignore is enabled has been fixed.
Behavior and default changes 2
Globby options now respect a custom filesystem implementation.
Globby now supports negation-only patterns.
Fixes and other changes 11
Fixes the
ignoreoption so it no longer disables thegitignoreoption.Fixes handling of backslash-escaped .gitignore rules.
The gitignore option no longer enumerates ignored directories.
Fixes
gitignoreignoring an entire checkout under an anchored ancestor path.Negation patterns with absolute filesystem paths are fixed.
Normalizes leading-slash negation patterns before task generation.
Bundler compatibility has been fixed.
Parent directory patterns are now handled correctly when gitignore is enabled.
Invalid cwd options now produce an improved error message.
The types for the stats option have been fixed.
Ignore patterns containing parent directory references are now handled correctly.