Breaking
- Respect parent .gitignore files when
gitignoreoption is enabled b9a9a84- When
{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.
- When
Improvements
- Support negation-only patterns 1273541
- Respect custom fs implementation from options c2eb272
- Add some more options to
isGitIgnoredfunctions e794ff9 - Improve error message for invalid
cwdoption 7535e6d
Fixes
- Fix
{gitignore: true}performance issue fcb07c3 - Fix bundler compatibility e6c72c9
- Fix parent directory patterns with
gitignoreoption 11dd2df - Fix ignore patterns with parent directory references a58d117
- Fix types for
statsoption c10f600