Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps) Update dependency cosmiconfig to v7 #149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 6, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
cosmiconfig 5.2.1 -> 7.1.0 age adoption passing confidence

Release Notes

cosmiconfig/cosmiconfig (cosmiconfig)

v7.1.0

Compare Source

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

v7.0.1

Compare Source

  • 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

Compare Source

  • Breaking change: Add ${moduleName}rc.cjs and ${moduleName}.config.cjs to the default searchPlaces, 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

Compare Source

  • 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().

    // 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.loaders and add named export defaultLoaders that 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.


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 is behind base branch, 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, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added maintenance dependency updates, etc. renovate Renovate-generated PRs labels Jun 6, 2021
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 9 times, most recently from 2688fe2 to 3445357 Compare November 30, 2021 10:17
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 2 times, most recently from bcf8c73 to 146d530 Compare December 10, 2021 19:51
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 2 times, most recently from 858a9f2 to 650ebf4 Compare January 23, 2022 00:46
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 2 times, most recently from 84f83b6 to f87ca66 Compare January 29, 2022 16:11
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch from f87ca66 to ff92f0b Compare March 26, 2022 11:41
@renovate renovate bot changed the title chore(deps): update dependency cosmiconfig to v7 chore(deps) Update dependency cosmiconfig to v7 Sep 20, 2022
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 2 times, most recently from 112fb24 to 6ca9a69 Compare September 20, 2022 16:07
@dmwelch dmwelch self-assigned this Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance dependency updates, etc. renovate Renovate-generated PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant