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

Adds extensionless url support #5931

Merged
merged 3 commits into from
Nov 3, 2023
Merged

Adds extensionless url support #5931

merged 3 commits into from
Nov 3, 2023

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Nov 3, 2023

What's the problem this PR addresses?

The v2 never supported referencing packages exposed as extensionless tgz tarballs, despite other clients being fine with them. Us being stricter here doesn't provide any value, and just hurts compatibility.

Fixes #5929

How did you fix it?

Adds support for extensionless urls, which are now interpreted as regular tarballs.

Checklist

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

Comment on lines +2 to +3
"@yarnpkg/cli": patch
"@yarnpkg/plugin-http": patch
Copy link
Member

@merceyz merceyz Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"@yarnpkg/cli": patch
"@yarnpkg/plugin-http": patch
"@yarnpkg/cli": minor
"@yarnpkg/plugin-http": minor

This is a new feature, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a reasonable case that it's a compatibility bugfix. It could be seen as a feature as well, but I don't think it's matches the typical threshold for what's worth waiting for a minor release vs a patch one.

Copy link
Member

@merceyz merceyz Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting for a minor release

Don't wait, we should make releases whenever we feel like it.

@arcanis arcanis merged commit 29fa245 into master Nov 3, 2023
@arcanis arcanis deleted the mael/http-extensionless branch November 3, 2023 16:17
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.

[Bug]: HTTP urls do not support query parameters and do not support extensionless URLs
3 participants