cosmiconfig
10.0.1 · 30 Aug 2026MIT172.2M / weekRepositoryHomepagenpmAtom feed
10.0.1 is the newest release of 10.x.
In short
3 breaking1 new1 changed
- breaking
The required version range is now
^22.18 || >=24. - breaking
Remove
typescriptin favor of Node's own type stripping. This means that TypeScript 7 projects are supported, but non-erasable type syntax likenamespaceorenumis unsupported. - breaking
JSON parsing uses the
JSON.parsefunction directly.parse-jsonis no longer used for better error messages, since Node has improved theirs.
Release note
- breaking
The required version range is now
^22.18 || >=24. - breaking
Remove
typescriptin favor of Node's own type stripping. This means that TypeScript 7 projects are supported, but non-erasable type syntax likenamespaceorenumis unsupported. - breaking
JSON parsing uses the
JSON.parsefunction directly.parse-jsonis no longer used for better error messages, since Node has improved theirs. Remove
import-freshdependency in favor of directly clearing the cache.Added support for UTF-16 config files