npm / globby
globby
What changed in globby 7 to 16, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
23 breaking9 new APIs and options2 performance2 behavior and defaults18 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.
globby 155 changes
Breaking changes 1
Node.js 20 is now required to use globby.
Fixes and other changes 4
Fixes expandDirectories so it works with globstar patterns.
Fixes relative paths when using the gitignore option.
Fixes recursive application of gitignore patterns in subdirectories.
Corrects TypeScript types so globbyStream correctly yields strings.
globby 142 changes
Breaking changes 1
Node.js 18 is now required to use globby.
New APIs and options 1
Adds convertPathToPattern() for converting a path to a pattern.
globby 135 changes
Breaking changes 2
The synchronous method is now named generateGlobTasksSync.
The ignore option was removed from isGitIgnored and isGitIgnoredSync because it never worked correctly.
New APIs and options 1
An asynchronous generateGlobTasks method was added.
Performance 1
Performance was improved when using multiple patterns.
Fixes and other changes 1
A bug with the objectMode option was fixed.
globby 129 changes
Breaking changes 9
generateGlobTasks is now available as a named export.
The package is now pure ESM and uses named exports instead of a default export.
Import globby as a named export instead of using the default export.
The stream function is now available as the named export globbyStream.
The synchronous function is now available as the named export globbySync.
The former hasMagic function is now available as the named export isDynamicPattern.
The gitignore function is now available as the named export isGitIgnored.
The synchronous gitignore function is now available as the named export isGitIgnoredSync.
Node.js 12.20 is now required to use globby.
globby 112 changes
Breaking changes 2
Options passed to globby.hasMagic() need to be updated to use the new options.
Node.js 10 is now required.
globby 105 changes
Breaking changes 3
The default ignore patterns no longer include **/bower_components/**.
globby upgrades fast-glob to v3, which has many breaking changes; read fast-glob’s release notes for details.
Node.js 8 is now required.
New APIs and options 1
Adds globby.stream() for streaming results.
Fixes and other changes 1
Fixes using the gitignore and stats options together.
globby 93 changes
Breaking changes 2
Node.js 6 is now required to use globby.
The property returned from .generateGlobTasks was renamed from opts to options.
Fixes and other changes 1
The expandDirectories and ignores options now work together.
globby 75 changes
Breaking changes 2
Requires Node.js >=4.
The nodir option is now true by default, so results now include only file paths, not directory paths.
New APIs and options 3
Adds the expandDirectories option, which is on by default.
Adds the gitignore option.
Adds the hasMagic() method.