cosmiconfig breaking changes
cosmiconfig 10.0.0 (August 2, 2026) is its newest release with breaking changes, 5 of them. The first: Removed typescript. Every breaking API change we have recorded in cosmiconfig on npm: 22 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 10.0.1, released August 30, 2026. Source repository
Its 8.0.0 release drops Node.js 10 and 12. Node.js end of life dates.
- From 9.0.0 to 10.0.0: 5 breaking changes in 1 version.
- From 8.0.0 to 10.0.0: 20 breaking changes in 2 versions.
cosmiconfig 10.0.0 breaking changes
- Removed
typescript
TypeScript config files are no longer handled by the package; non-erasable syntax like namespace or enum is unsupported. github.com - Behavior changed
Parse errors for JSON config files now come from JSON.parse instead of parse-json, so error messages change. github.com - Configuration changed
The package now requires Node.js ^22.18 or >=24; older Node.js versions must be upgraded before use. github.com - Signature changed
defaultLoaders
Was const defaultLoaders: Readonly<{readonly '.mjs': import("./types").Loader; readonly '.cjs': import("./types").Loader; readonly '.js': import("./types").Loader; readonly '.ts': import("./types").Loader; readonly '.json'... npmjs.com - Signature changed
defaultLoadersSync
Was const defaultLoadersSync: Readonly<{readonly '.cjs': import("./types").LoaderSync; readonly '.js': import("./types").LoaderSync; readonly '.ts': import("./types").LoaderSync; readonly '.json': import("./types").LoaderSync; readonly... npmjs.com
cosmiconfig 9.0.0 breaking changes
- Removed
metaSearchPlaces
metaSearchPlaces was removed in cosmiconfig 9.0.0 npmjs.com - Behavior changed
Meta config files such as config.js are no longer found in the current working directory. Move them into the .config subfolder. github.com - Behavior changed
searchPlaces
When a meta config file defines searchPlaces, the tool's built-in searchPlaces are now merged in. Set mergeSearchPlaces: false to keep the old behavior. github.com - Default changed
searchStrategy
When no stopDir is passed, cosmiconfig now searches only the current working directory. To keep the old upward search, pass searchStrategy: 'global'. github.com - Signature changed
CommonOptions.cache
Was cache?: boolean; now cache: boolean. npmjs.com - Signature changed
CommonOptions.ignoreEmptySearchPlaces
Was ignoreEmptySearchPlaces?: boolean; now ignoreEmptySearchPlaces: boolean. npmjs.com - Signature changed
CommonOptions.searchPlaces
Was searchPlaces?: Array<string>; now searchPlaces: Array<string>. npmjs.com - Signature changed
cosmiconfig
Was function cosmiconfig(moduleName: string, options?: Readonly<Options>): PublicExplorer; now function cosmiconfig(moduleName: string, options?: Readonly<Partial<Options>>): PublicExplorer. npmjs.com - Signature changed
cosmiconfigSync
Was function cosmiconfigSync(moduleName: string, options?: Readonly<OptionsSync>): PublicExplorerSync; now function cosmiconfigSync(moduleName: string, options?: Readonly<Partial<OptionsSync>>): PublicExplorerSync. npmjs.com - Signature changed
defaultLoaders
Was const defaultLoaders: Readonly<{readonly '.mjs': import("./types.js").Loader; readonly '.cjs': import("./types.js").Loader; readonly '.js': import("./types.js").Loader; readonly '.ts': import("./types.js").Loader; readonly '.json'... npmjs.com
And 5 more in this version. Sign up to see every change
cosmiconfig 8.0.0 breaking changes
- Removed
The package no longer supports Node 10 and 12. Upgrade Node before using this version. github.com - Behavior changed
YAML files are now parsed by js-yaml instead of yaml, so parsing results may differ for some files. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.