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(pnp): ensure URL is imported on Node.js < 20 #6060

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

merceyz
Copy link
Member

@merceyz merceyz commented Jan 4, 2024

What's the problem this PR addresses?

Before nodejs/node#46904 using a custom global URL class wasn't supported by fileURLToPath.

Closes #6030
Fixes #5915

How did you fix it?

  • Created a rollup plugin to ensure that the builtin URL class is always used on Node.js < v20.
  • Removed all imports of URL since it's a global and to avoid mixing custom and builtin URL class instances.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@merceyz merceyz force-pushed the merceyz/fix/pnp-custom-global-url-class branch from bb88359 to 99b8c34 Compare January 4, 2024 17:37
@arcanis arcanis merged commit c111ea7 into master Jan 15, 2024
24 checks passed
@arcanis arcanis deleted the merceyz/fix/pnp-custom-global-url-class branch January 15, 2024 18:42
@baeharam
Copy link

@merceyz

Is there a way to install this version? I need this job to fix yarn test. Thanks for your work!

@merceyz
Copy link
Member Author

merceyz commented Jan 23, 2024

A new release will be created soon but until then you can run

yarn set version from sources

https://yarnpkg.com/cli/set/version/from/sources

@baeharam
Copy link

@merceyz

This job was released in 4.1.0, but I need 3.x.x version of berry. Is there any plan to release this job in 3.x.x version?

@pay-mazino-urek
Copy link

@merceyz

Can I install this commit in 3.x.x version? When I install master version, 4.x.x is installed which I don't want.

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.

4 participants