---
title: "cosmiconfig 10.0.0 Breaking Changes on npm | Since.dev"
description: "What each cosmiconfig release removed, renamed or changed: 22 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/cosmiconfig
last_updated: 2026-12-04
---

# 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

Latest version `10.0.1`, released August 30, 2026. [Source repository](https://github.com/cosmiconfig/cosmiconfig)

Its 8.0.0 release drops Node.js 10 and 12. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [9.0.0](#v-9-0-0) to [10.0.0](#v-10-0-0): 5 breaking changes in 1 version.
- From [8.0.0](#v-8-0-0) to [10.0.0](#v-10-0-0): 20 breaking changes in 2 versions.

## cosmiconfig 10.0.0 breaking changes

cosmiconfig 10.0.0, released August 2, 2026: 5 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](https://github.com/cosmiconfig/cosmiconfig/blob/v10.0.0/CHANGELOG.md)
- **Behavior changed**  

Parse errors for JSON config files now come from JSON.parse instead of parse-json, so error messages change. [github.com](https://github.com/cosmiconfig/cosmiconfig/blob/v10.0.0/CHANGELOG.md)
- **Configuration changed**  

The package now requires Node.js ^22.18 or >=24; older Node.js versions must be upgraded before use. [github.com](https://github.com/cosmiconfig/cosmiconfig/blob/v10.0.0/CHANGELOG.md)
- **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](https://www.npmjs.com/package/cosmiconfig/v/10.0.0)
- **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](https://www.npmjs.com/package/cosmiconfig/v/10.0.0)

## cosmiconfig 9.0.0 breaking changes

cosmiconfig 9.0.0, released November 26, 2023: 15 breaking changes.

- **Removed** `metaSearchPlaces`  

metaSearchPlaces was removed in cosmiconfig 9.0.0 [npmjs.com](https://www.npmjs.com/package/cosmiconfig/v/9.0.0)
- **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](https://github.com/cosmiconfig/cosmiconfig/blob/v9.0.0/CHANGELOG.md)
- **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](https://github.com/cosmiconfig/cosmiconfig/blob/v9.0.0/CHANGELOG.md)
- **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](https://github.com/cosmiconfig/cosmiconfig/blob/v9.0.0/CHANGELOG.md)
- **Signature changed** `CommonOptions.cache`  

Was cache?: boolean; now cache: boolean. [npmjs.com](https://www.npmjs.com/package/cosmiconfig/v/9.0.0)
- **Signature changed** `CommonOptions.ignoreEmptySearchPlaces`  

Was ignoreEmptySearchPlaces?: boolean; now ignoreEmptySearchPlaces: boolean. [npmjs.com](https://www.npmjs.com/package/cosmiconfig/v/9.0.0)
- **Signature changed** `CommonOptions.searchPlaces`  

Was searchPlaces?: Array\<string>; now searchPlaces: Array\<string>. [npmjs.com](https://www.npmjs.com/package/cosmiconfig/v/9.0.0)
- **Signature changed** `cosmiconfig`  

Was function cosmiconfig(moduleName: string, options?: Readonly\<Options>): PublicExplorer; now function cosmiconfig(moduleName: string, options?: Readonly\<Partial\<Options>>): PublicExplorer. [npmjs.com](https://www.npmjs.com/package/cosmiconfig/v/9.0.0)
- **Signature changed** `cosmiconfigSync`  

Was function cosmiconfigSync(moduleName: string, options?: Readonly\<OptionsSync>): PublicExplorerSync; now function cosmiconfigSync(moduleName: string, options?: Readonly\<Partial\<OptionsSync>>): PublicExplorerSync. [npmjs.com](https://www.npmjs.com/package/cosmiconfig/v/9.0.0)
- **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](https://www.npmjs.com/package/cosmiconfig/v/9.0.0)

And 5 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## cosmiconfig 8.0.0 breaking changes

cosmiconfig 8.0.0, released November 21, 2022: 2 breaking changes.

- **Removed**  

The package no longer supports Node 10 and 12. Upgrade Node before using this version. [github.com](https://github.com/davidtheclark/cosmiconfig/blob/v8.0.0/CHANGELOG.md)
- **Behavior changed**  

YAML files are now parsed by js-yaml instead of yaml, so parsing results may differ for some files. [github.com](https://github.com/davidtheclark/cosmiconfig/blob/v8.0.0/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
