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

Breaking: Drop legacy url.parse() NodeJS API #178

Merged
merged 2 commits into from
Sep 12, 2021

Conversation

about-code
Copy link
Owner

No description provided.

BREAKING CHANGE: Unfortunately, there is no replacement for
the old API that is fully compatible. As a consequence this
change affects the way paths are being URL-encoded. Previously
all paths (relative or absolute) have been passed through
`url.parse(path).format()` and thereby got URL-encoded. With
this change encoded URLs are only created for option
`paths: "absolute"` in combination with a `baseUrl` other
than "/". The encoding may changed. Values for `baseUrl`
(if present) now *must* be "/" or *must* be URLs which
conform to WHATWG URL specification and which can be passed
as a 'base' parameter to Node's URL implemenation
(see https://docs.nodejs.org/api/url.html).
@about-code about-code added the maintenance Maintenance tasks label Sep 12, 2021
@about-code about-code added this to the v6.0.0 milestone Sep 12, 2021
@about-code about-code merged commit ed8ffc8 into master Sep 12, 2021
@about-code about-code deleted the drop-legacy-url-parse branch September 12, 2021 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant