Skip to content

Releases: cosmiconfig/cosmiconfig

v9.0.0

28 Nov 08:35
v9.0.0
006fc0b
Compare
Choose a tag to compare
  • Added searchStrategy option:
    • The none value means that cosmiconfig does not traverse any directories upwards.
      • Breaking change: This is the default value if you don't pass a stopDir option, which means that cosmiconfig no longer traverses directories by default, and instead just looks in the current working directory.
        • If you want to achieve maximum backwards compatibility without adding an explicit stopDir, add the searchStrategy: 'global' option.
    • The project value means that cosmiconfig traverses upwards until it finds a package.json (or .yaml) file.
    • The global value means that cosmiconfig traverses upwards until the passed stopDir, or your home directory if no stopDir is given.
  • Breaking change: Meta config files (i.e. config.js and similar) are not looked for in the current working directory anymore. Instead, it looks in the .config subfolder.
  • Breaking change: When defining searchPlaces in a meta config file, the tool-defined searchPlaces are merged into this. Users may specify mergeSearchPlaces: false to disable this.
  • Added support for a special $import key which will import another configuration file
    • The imported file will act as a base file - all properties from that file will be applied to the configuration, but can be overridden by the importing file
    • For more information, read the import section of the README
  • Added searching in OS conventional folders (XDG compatible on Linux, %APPDATA% on Windows, Library/Preferences on macOS) for searchStrategy: 'global'
  • Fixed crash when trying to load a file that is not readable due to file system permissions
  • Fixed wrong ERR_REQUIRE_ESM error being thrown when there is an issue loading an ESM file

cosmiconfig: v8.3.6

13 Sep 16:33
42ca3fa
Compare
Choose a tag to compare

8.3.6 (2023-09-13)

Bug Fixes

  • ignore search place if accessing it causes ENOTDIR (i.e. if access of a subpath of a file is attempted) (5bd915a)

cosmiconfig: v8.3.5

08 Sep 22:07
8550adb
Compare
Choose a tag to compare

8.3.5 (2023-09-08)

Bug Fixes

  • pass null to transform function for backwards compat (2b38510)

cosmiconfig: v8.3.4

04 Sep 19:32
f4eb2d7
Compare
Choose a tag to compare

8.3.4 (2023-09-04)

Bug Fixes

  • remove node: prefix from imports (f76484a), closes #323

cosmiconfig: v8.3.3

03 Sep 19:52
bd90c89
Compare
Choose a tag to compare

8.3.3 (2023-09-03)

Bug Fixes

cosmiconfig: v8.3.2

02 Sep 20:32
6cb1e76
Compare
Choose a tag to compare

8.3.2 (2023-09-02)

Bug Fixes

  • use .cjs extension for sync compiled typescript (0d76a9a)
  • use default for async TS loader (5bed3e3)

cosmiconfig: v8.3.1

02 Sep 19:56
408c9cc
Compare
Choose a tag to compare

8.3.1 (2023-09-02)

Bug Fixes

  • do not resolve stopDir when undefined (59082e2), closes #317

cosmiconfig: v8.3.0

02 Sep 16:03
7eaaeef
Compare
Choose a tag to compare

8.3.0 (2023-09-02)

Features

  • add support for TypeScript configuration files (d88b1b4)