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

fix: update dependency cosmiconfig to v8.3.6 - autoclosed #3654

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 21, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
cosmiconfig 8.1.3 -> 8.3.6 age adoption passing confidence

Release Notes

cosmiconfig/cosmiconfig (cosmiconfig)

v8.3.6

Compare Source

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

v8.3.5

Compare Source

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

v8.3.4

Compare Source

Bug Fixes

v8.3.3

Compare Source

Bug Fixes

v8.3.2

Compare Source

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

v8.3.1

Compare Source

Bug Fixes

v8.3.0

Compare Source

Features
  • add support for TypeScript configuration files (d88b1b4)
  • add support for TypeScript configuration files (d88b1b4)
  • add support for TypeScript configuration files (a9c7ada)

v8.2.0

Compare Source

  • Add support for ECMAScript modules (ESM) to the asynchronous API. End users running Node versions that support ESM can provide .mjs files, or .js files whose nearest parent package.json file contains "type": "module".
    • ${moduleName}rc.mjs and ${moduleName}.config.mjs are included in the default searchPlaces of the asynchronous API.
    • The synchronous API does not support ECMAScript modules, so does not look for .mjs files.
    • To learn more, read "Loading JS modules".

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, check this box

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

@renovate renovate bot changed the title fix: update dependency cosmiconfig to v8.2.0 fix: update dependency cosmiconfig to v8.3.0 Sep 2, 2023
@renovate renovate bot force-pushed the renovate/cosmiconfig-8.x-lockfile branch from e4525d4 to e032bec Compare September 2, 2023 17:17
@renovate renovate bot changed the title fix: update dependency cosmiconfig to v8.3.0 fix: update dependency cosmiconfig to v8.3.2 Sep 2, 2023
@renovate renovate bot force-pushed the renovate/cosmiconfig-8.x-lockfile branch 2 times, most recently from f35dcd2 to 3d5eb3f Compare September 3, 2023 22:06
@renovate renovate bot changed the title fix: update dependency cosmiconfig to v8.3.2 fix: update dependency cosmiconfig to v8.3.3 Sep 3, 2023
@renovate renovate bot changed the title fix: update dependency cosmiconfig to v8.3.3 fix: update dependency cosmiconfig to v8.3.4 Sep 4, 2023
@renovate renovate bot force-pushed the renovate/cosmiconfig-8.x-lockfile branch from 3d5eb3f to d309fdf Compare September 4, 2023 21:53
@renovate renovate bot changed the title fix: update dependency cosmiconfig to v8.3.4 fix: update dependency cosmiconfig to v8.3.5 Sep 9, 2023
@renovate renovate bot force-pushed the renovate/cosmiconfig-8.x-lockfile branch 2 times, most recently from c5d24e9 to 9d0ad41 Compare September 13, 2023 16:48
@renovate renovate bot changed the title fix: update dependency cosmiconfig to v8.3.5 fix: update dependency cosmiconfig to v8.3.6 Sep 13, 2023
@renovate renovate bot force-pushed the renovate/cosmiconfig-8.x-lockfile branch from 9d0ad41 to 23487b2 Compare October 20, 2023 13:36
@escapedcat
Copy link
Member

Tried something before here: #3623

@renovate renovate bot force-pushed the renovate/cosmiconfig-8.x-lockfile branch from 23487b2 to c59b297 Compare October 20, 2023 13:44
@joberstein
Copy link
Contributor

joberstein commented Oct 29, 2023

@escapedcat I think I figured this out:

There's an issue with node < 20.8.0 where async/await imports cause a segmentation fault for some reason (got exit code 139 after running the test locally): nodejs/node#40058 (resolved in: nodejs/node#48510 ). It looks like the node 20 check is using node 20.5.x which is why it's failing.

If you look in src/loader.js (https://github.com/cosmiconfig/cosmiconfig/compare/v8.1.3...v8.2.0?short_path=06572a9#diff-e06cc0643d5d32542b35abf16a4c938570ddd0a6d2fb52cc1703b45635e2cb8bR20) you'll notice that the async version of 'loadJs' uses the dynamic import syntax starting in v8.2.0, which aligns with the node issue above. The fix for this was either to instead use the cosmiconfigSync method, or replace all of the js loaders with the sync versions (the js one is the only one actually impacting the tests though since mjs/cjs aren't tested):

const loadJsSync =  defaultLoadersSync['.js'];
...
loaders: {
  '.mjs': loadJsSync,
  '.cjs': loadJsSync,
  '.js': loadJsSync,
  ...
}

Also, the skipped test in load.test.js is failing because the extends in @commitlint/load/fixtures/recursive-extends-ts need to be suffixed with '/index.ts'; require isn't automatically resolving the index.ts as the default path when given the directory. I tried seeing if I could address this with some changes to the commitlint/load tsconfig but didn't have any luck.

@escapedcat
Copy link
Member

Wow, nice digging! Thanks @joberstein

It looks like the node 20 check is using node 20.5.x which is why it's failing.

I guess eventually the actions will use 20.8.0 and tests might turn green. That would be great. We can postpone cosmicconfig update till then.

@joberstein
Copy link
Contributor

joberstein commented Oct 29, 2023

@escapedcat do you want me to update the JS loaders? It's supposed to be the same functionality, and it would allow support for mjs too in the meantime.

@escapedcat
Copy link
Member

@escapedcat do you want me to update the JS loaders? It's supposed to be the same functionality, and it would allow support for mjs too in the meantime.

Sure, happy if you want to give this a try

@renovate renovate bot changed the title fix: update dependency cosmiconfig to v8.3.6 fix: update dependency cosmiconfig to v8.3.6 - autoclosed Nov 10, 2023
@renovate renovate bot closed this Nov 10, 2023
@renovate renovate bot deleted the renovate/cosmiconfig-8.x-lockfile branch November 10, 2023 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants