infinitered / gluegun

A delightful toolkit for building TypeScript-powered command-line apps.
MIT License
2.97k stars 147 forks source link

fix(deps): update dependency cosmiconfig to v6 - autoclosed #657

Closed renovate[bot] closed 4 years ago

renovate[bot] commented 5 years ago

This PR contains the following updates:

Package Type Update Change
cosmiconfig dependencies major 5.2.1 -> 6.0.0

Release Notes

davidtheclark/cosmiconfig ### [`v6.0.0`](https://togithub.com/davidtheclark/cosmiconfig/blob/master/CHANGELOG.md#​600) [Compare Source](https://togithub.com/davidtheclark/cosmiconfig/compare/5.2.1...6.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()` or `explorer.loadSync()`, you'll now create a sync explorer with `cosmiconfigSync()`, then use `explorerSync.search()` and `explorerSync.load()`. ```js // 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](https://www.npmjs.com/package/yaml) to parse YAML instead of npm package [js-yaml](https://www.npmjs.com/package/js-yaml). - **Breaking change:** Remove `cosmiconfig.loaders` and add named export `defaultLoaders` that exports the default loaders used for each extension. ```js 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.

Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.

:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

:no_bell: Ignore: Close this PR and you won't be reminded about this update again.



Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.