Packages

globby

16.2.4 · 19 Aug 2026MIT114.6M / weekRepositoryHomepagenpmAtom feed

Your version

16.0.0

major15 Nov 2025Where it was published

16.2.4 is the newest release of 16.x.

In short

1 breaking4 new5 fixed

  • Breaking

    Respect parent .gitignore files when gitignore option is enabled b9a9a84

Release note

Breaking

  • Breaking

    Respect parent .gitignore files when gitignore option 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.

Improvements

  • Support negation-only patterns 1273541

  • Respect custom fs implementation from options c2eb272

  • Add some more options to isGitIgnored functions e794ff9

  • Improve error message for invalid cwd option 7535e6d

Fixes

  • Fix {gitignore: true} performance issue fcb07c3

  • Fix bundler compatibility e6c72c9

  • Fix parent directory patterns with gitignore option 11dd2df

  • Fix ignore patterns with parent directory references a58d117

  • Fix types for stats option c10f600


v15.0.0...v16.0.0

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.