Skip to content

BREAKING CHANGE: Update dependency cosmiconfig to v7 - autoclosed #510

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

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 29, 2020

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

davidtheclark/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 - "after 10pm every weekday,before 5am every weekday,every weekend" (UTC), 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, check this box

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

@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 6 times, most recently from 66956f1 to fa4fdd8 Compare October 5, 2020 00:40
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch from fa4fdd8 to eb20a43 Compare October 8, 2020 01:08
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 8 times, most recently from 34b9f6e to 24ac869 Compare October 16, 2020 01:01
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 5 times, most recently from 51351fb to 13ec377 Compare October 21, 2020 01:52
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 6 times, most recently from 1f61ce4 to f29c258 Compare October 30, 2020 00:11
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 3 times, most recently from 48de731 to 8b52587 Compare November 4, 2020 01:14
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 11 times, most recently from 6a050ce to 000dcd8 Compare November 25, 2020 01:33
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 5 times, most recently from da55fe7 to 402acae Compare December 1, 2020 23:42
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch 7 times, most recently from eddbdb8 to dae7a8a Compare December 11, 2020 05:20
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch from dae7a8a to 574024a Compare May 15, 2021 21:28
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch from 574024a to 33c8635 Compare October 18, 2021 18:28
@renovate renovate bot force-pushed the renovate/cosmiconfig-7.x branch from 33c8635 to 6398459 Compare November 20, 2022 13:59
@renovate renovate bot changed the title BREAKING CHANGE: Update dependency cosmiconfig to v7 BREAKING CHANGE: Update dependency cosmiconfig to v7 - autoclosed Nov 21, 2022
@renovate renovate bot closed this Nov 21, 2022
@renovate renovate bot deleted the renovate/cosmiconfig-7.x branch November 21, 2022 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants