Upgrading cosmiconfig from 9.x to 10.x
Comparison of the public API of cosmiconfig 9.0.2 and 10.0.1, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 0 |
| Changed signatures | 2 |
| Removed class or interface members | 0 |
| Changed class or interface members | 0 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 2 |
| New exports | 0 |
Removed exports
None detected.
Changed signatures
| export | Before | After |
|---|---|---|
cosmiconfig · defaultLoaders | Readonly<{ readonly '.mjs': Loader; readonly '.cjs': Loader; readonly '.js': Loader; readonly '.ts': Loader; readonly '.json': LoaderSync; readonly '.yaml': LoaderSync; readonly '.yml': LoaderSync; readonly noExt: LoaderSync; }> | Readonly<{ readonly '.mjs': Loader; readonly '.cjs': Loader; readonly '.js': Loader; readonly '.ts': Loader; readonly '.cts': Loader; readonly '.mts': Loader; readonly '.json': LoaderSync; readonly '.yaml': LoaderSync; readonly '.yml': LoaderSync; readonly noExt: LoaderSync; }> |
cosmiconfig · defaultLoadersSync | Readonly<{ readonly '.cjs': LoaderSync; readonly '.js': LoaderSync; readonly '.ts': LoaderSync; readonly '.json': LoaderSync; readonly '.yaml': LoaderSync; readonly '.yml': LoaderSync; readonly noExt: LoaderSync; }> | Readonly<{ readonly '.cjs': LoaderSync; readonly '.js': LoaderSync; readonly '.cts': LoaderSync; readonly '.ts': LoaderSync; readonly '.json': LoaderSync; readonly '.yaml': LoaderSync; readonly '.yml': LoaderSync; readonly noExt: LoaderSync; }> |
Removed class or interface members
None detected.
Changed class or interface members
None detected.
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
| Before | After | |
|---|---|---|
engines.node | >=14 | ^22.18 || >= 24 |
peerDependencies.typescript | >=4.9.5 | — |
Frequently asked questions
What are the breaking changes when upgrading cosmiconfig from 9 to 10?
Between cosmiconfig 9.0.2 and 10.0.1, Vigia found 0 removed exports, 2 changed signatures and 0 removed or changed class or interface members.
What became deprecated in cosmiconfig 10?
0 exports or members are newly marked as deprecated in cosmiconfig 10.0.1.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/cosmiconfig/upgrade?from=9.0.2&to=10.0.1