globby
16.2.4 · 19 Aug 2026MIT114.6M / weekRepositoryHomepagenpmAtom feed
16.2.4 is the newest release of 16.x.
In short
1 breaking4 new5 fixed
- Breaking
Respect parent .gitignore files when
gitignoreoption is enabled b9a9a84
Release note
Breaking
- Breaking
Respect parent .gitignore files when
gitignoreoption is enabled b9a9a84When
{gitignore: true}, Globby now searches for .gitignore files up to the Git repo root (if detected). This matches Git's actual behavior where parent .gitignore patterns apply to subdirectories. Previously, only .gitignore files within the glob search path were considered. This change could break existing code that relied on the previous, more limited behavior.
Improvements
Support negation-only patterns 1273541
Respect custom fs implementation from options c2eb272
Add some more options to
isGitIgnoredfunctions e794ff9Improve error message for invalid
cwdoption 7535e6d
Fixes
Fix
{gitignore: true}performance issue fcb07c3Fix bundler compatibility e6c72c9
Fix parent directory patterns with
gitignoreoption 11dd2dfFix ignore patterns with parent directory references a58d117
Fix types for
statsoption c10f600
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.