Repository navigation
Releases
Releases · pillarjs/encodeurl
v3.0.1
Fixed
Full Changelog: v3.0.0...v3.0.1
v2.0.3
Fixed
- Re-release with back ported workflow for trusted publishing #45
Full Changelog: v2.0.2...v2.0.3
v2.0.2
Fixed
Full Changelog: v2.0.1...v2.0.2
v1.0.4
v1.0.3
Fixed
- [Backport] Fix encoding of
%next to a valid sequence or at the end by @yxshee in #40 - [Backport] Fix replace of consecutive unpaired surrogates by @awais-ur-rehman in #34
Full Changelog: v1.0.2...v1.0.3
v3.0.0
Important: This version switches the package to ESM and node >= 22.
Changed
- Use TypeScript and ESM by @blakeembrey in #36
- Input is no longer coerced to a string, use
encodeUrl(String(x))if required
- Input is no longer coerced to a string, use
Improved
- Better perf and smaller package size by @blakeembrey in #37
Full Changelog: v2.0.1...v3.0.0
v2.0.1
v2.0.0
Changed
Important: If you are using this to encode user entered and validated URLs, upgrade to v2 immediately. It is possible to exploit \ encoding in v1. A URL can be formed that looks like http://foo.com\@bar.com, which parses as foo.com for the host, but when encodeUrl(url) will parse as bar.com for the host.
1.0.2
1.0.1
- Fix encoding unpaired surrogates at start/end of string