Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cosmiconfig

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmiconfig - npm Package Versions

13
6

8.3.1

Diff

Changelog

Source

8.3.1

  • Fixed crash when stopDir was given but undefined
jrandolf
published 8.3.0 •

Changelog

Source

8.3.0

  • Add support for TypeScript configuration files
d-fischer
published 8.2.0 •

Changelog

Source

8.2.0

  • Add support for ECMAScript modules (ESM) to the asynchronous API. End users running Node versions that support ESM can provide .mjs files, or .js files whose nearest parent package.json file contains "type": "module".
    • ${moduleName}rc.mjs and ${moduleName}.config.mjs are included in the default searchPlaces of the asynchronous API.
    • The synchronous API does not support ECMAScript modules, so does not look for .mjs files.
    • To learn more, read "Loading JS modules".
d-fischer
published 8.1.3 •

Changelog

Source

8.1.3

  • Fixed: existence of meta config breaking default loaders
d-fischer
published 8.1.2 •

Changelog

Source

8.1.2

  • Fixed: generation of TypeScript types going to the wrong output path
d-fischer
published 8.1.1 •

Changelog

Source

8.1.1

  • Fixed: meta config overriding original options completely (now merges correctly)
d-fischer
published 8.1.0 •

Changelog

Source

8.1.0

  • Added: always look at .config.{yml,yaml,json,js,cjs} file to configure cosmiconfig itself, and look for tool configuration in it using packageProp (similar to package.json)
d-fischer
published 8.0.0 •

Changelog

Source

8.0.0

No major breaking changes! We dropped support for Node 10 and 12 -- which you're probably not using. And we swapped out the YAML parser -- which you probably won't notice.

  • Breaking change: Drop support for Node 10 and 12.

  • Breaking change: Use npm package js-yaml to parse YAML instead of npm package yaml.

  • Added: Loader errors now include the path of the file that was tried to be loaded.

d-fischer
published 7.1.0 •

Changelog

Source

7.1.0

  • Added: Additional default searchPlaces within a .config subdirectory (without leading dot in the file name)
davidtheclark
published 7.0.1 •

Changelog

Source

7.0.1

  • Fixed: If there was a directory that had the same name as a search place (e.g. "package.json"), we would try to read it as a file, which would cause an exception.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc