# What changed in globby

> 18 changes in globby 16 from its official release notes, upgrade guides and advisories: 1 breaking, 3 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/globby/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## globby 16

### Breaking changes

- With gitignore enabled, Globby searches for .gitignore files up to the detected Git repository root, so parent ignore patterns now apply to subdirectories. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)

### New APIs and options

- Adds the globalGitignore option. (16.2.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.2.0)
- Adds the expandNegationOnlyPatterns option. (16.1.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.1.0)
- The isGitIgnored functions now accept additional options. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)

### Performance

- A performance issue when gitignore is enabled has been fixed. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)

### Behavior and default changes

- Globby options now respect a custom filesystem implementation. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)
- Globby now supports negation-only patterns. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)

### Fixes and other changes

- Fixes the `ignore` option so it no longer disables the `gitignore` option. (16.2.4) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.2.4)
- Fixes handling of backslash-escaped .gitignore rules. (16.2.3) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.2.3)
- The gitignore option no longer enumerates ignored directories. (16.2.2) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.2.2)
- Fixes `gitignore` ignoring an entire checkout under an anchored ancestor path. (16.2.1) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.2.1)
- Negation patterns with absolute filesystem paths are fixed. (16.1.1) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.1.1)
- Normalizes leading-slash negation patterns before task generation. (16.1.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.1.0)
- Bundler compatibility has been fixed. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)
- Parent directory patterns are now handled correctly when gitignore is enabled. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)
- Invalid cwd options now produce an improved error message. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)
- The types for the stats option have been fixed. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)
- Ignore patterns containing parent directory references are now handled correctly. (16.0.0) — [release notes](https://github.com/sindresorhus/globby/releases/tag/v16.0.0)
