Packages

cosmiconfig

10.0.1 · 30 Aug 2026MIT172.2M / weekRepositoryHomepagenpmAtom feed

Upgrading cosmiconfig From 9.0.0 to 10.0.1

4 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 9.0.0Newest 9.x9.0.2

Before you upgrade

Tick each one off as you go
  • breaking10.0.0
  • breaking10.0.0
  • breaking10.0.0

Release by release

  1. 10.0.1nothing new or fixed in the note

  2. 10.0.0

    Migration needed2 Aug 20261 new
    • breaking

      The required version range is now ^22.18 || >=24.

    • breaking

      Remove typescript in favor of Node's own type stripping. This means that TypeScript 7 projects are supported, but non-erasable type syntax like namespace or enum is unsupported.

    • breaking

      JSON parsing uses the JSON.parse function directly. parse-json is no longer used for better error messages, since Node has improved theirs.

    • new

      Added support for UTF-16 config files

  3. 9.0.2

    7 Jun 20262 fixes
    • fixed

      Fixed a prototype chain issue that may happen when merging different config objects.

    • fixed

      Fixed the project search strategy not correctly stopping at the package boundary.

  4. 9.0.1

    2 Mar 20262 fixes
    • fixed

      Fixed a race condition where multiple instances existing simultaneously could cause cosmiconfig to fail to load TypeScript config files.

    • fixed

      Fixed an issue on Windows where CWD being a short path (e.g. C:\Users\USERNA~1) would cause cosmiconfig to fail to load ESM config files.

1 other line we could not sort, mostly version bumps
  • Remove import-fresh dependency in favor of directly clearing the cache.

    10.0.0