run-if-changed
run-if-changed copied to clipboard
Update dependency cosmiconfig to v7
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| cosmiconfig | ^5.0.7 -> ^7.0.0 |
Release Notes
davidtheclark/cosmiconfig
v7.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.
v7.0.0
- Breaking change: Add
${moduleName}rc.cjsand${moduleName}.config.cjsto the defaultsearchPlaces, to support users of"type": "module"in recent versions of Node. - Breaking change: Drop support for Node 8. Now requires Node 10+.
v6.0.0
-
Breaking change: The package now has named exports. See examples below.
-
Breaking change: Separate async and sync APIs, accessible from different named exports. If you used
explorer.searchSync()orexplorer.loadSync(), you'll now create a sync explorer withcosmiconfigSync(), then useexplorerSync.search()andexplorerSync.load().// OLD: cosmiconfig v5 import cosmiconfig from 'cosmiconfig'; const explorer = cosmiconfig('example'); const searchAsyncResult = await explorer.search(); const loadAsyncResult = await explorer.load('./file/to/load'); const searchSyncResult = explorer.searchSync(); const loadSyncResult = explorer.loadSync('./file/to/load'); // NEW: cosmiconfig v6 import { cosmiconfig, cosmiconfigSync } from 'cosmiconfig'; const explorer = cosmiconfig('example'); const searchAsyncResult = await explorer.search(); const loadAsyncResult = await explorer.load('./file/to/load'); const explorerSync = cosmiconfigSync('example'); const searchSyncResult = explorerSync.search(); const loadSyncResult = explorerSync.load('./file/to/load'); -
Breaking change: Remove support for Node 4 and 6. Requires Node 8+.
-
Breaking change: Use npm package yaml to parse YAML instead of npm package js-yaml.
-
Breaking change: Remove
cosmiconfig.loadersand add named exportdefaultLoadersthat exports the default loaders used for each extension.import { defaultLoaders } from 'cosmiconfig'; console.log(Object.entries(defaultLoaders)) // [ // [ '.js', [Function: loadJs] ], // [ '.json', [Function: loadJson] ], // [ '.yaml', [Function: loadYaml] ], // [ '.yml', [Function: loadYaml] ], // [ 'noExt', [Function: loadYaml] ] // ] -
Migrate from Flowtype to Typescript.
-
Lazy load all default loaders.
v5.2.1
- Chore: Upgrade
js-yamlto avoid npm audit warning.
v5.2.0
- Added:
packagePropvalues can be arrays of strings, to allow for property names that include periods. (This was possible before, but not documented or deliberately supported.) - Chore: Replaced the
lodash.getdependency with a locally defined function. - Chore: Upgrade
js-yamlto avoid npm audit warning.
v5.1.0
- Added:
packagePropvalues can include periods to describe paths to nested objects withinpackage.json.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
:warning: Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
:recycle: Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you check the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: package-lock.json