8.0.0
parse-url 8.0.0
Breaking Changes
- The
resource
property will not contain the port, but thehost
one will. - Throw an error if the input is invalid. Hence, file paths like
/home/path/to/dir
will only be valid if thefile://
protocol is added (file://home/path/to/dir
) - Throw an error if the input length exceeds the maximum length (parse.MAX_URL_LENGTH), by default 2048.
Fixes
- fix file protocol spoofing #48, thanks @vovikhangcdv!
- fix: support hyphens in git@ URLs (#50) #51, thanks @crenshaw-dev!
- fix: support dot in git@ URLS #52, thanks @GalHalupSeaLights!
Other changes
- build: add CommonJS distribution thanks to @privatenumber! /cc #54 🍰