-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(compatibility): Drop deprecated
url.parse()
NodeJS-API. (#178)
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). * test: New baseline.
- Loading branch information
1 parent
064986f
commit ed8ffc8
Showing
2 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters