Skip to content

Releases

v3.0.1

Choose a tag to compare

@blakeembrey blakeembrey released this 12 Nov 00:07
206ab22

Fixed

  • Fix encoding of % next to a valid sequence or at the end by @yxshee in #40

Full Changelog: v3.0.0...v3.0.1

v2.0.3

Choose a tag to compare

@blakeembrey blakeembrey released this 12 Nov 18:16
a613823

Fixed

  • Re-release with back ported workflow for trusted publishing #45

Full Changelog: v2.0.2...v2.0.3

v2.0.2

Choose a tag to compare

@blakeembrey blakeembrey released this 12 Nov 00:08
f805c3e

Fixed

  • [Backport] Fix encoding of % next to a valid sequence or at the end by @yxshee in #40

Full Changelog: v2.0.1...v2.0.2

v1.0.4

Choose a tag to compare

@blakeembrey blakeembrey released this 12 Nov 18:18
dc297eb

Fixed

  • Re-release with back ported workflow for trusted publishing

Full Changelog: v1.0.3...v1.0.4

v1.0.3

Choose a tag to compare

@blakeembrey blakeembrey released this 12 Nov 00:10
c669d95

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

Choose a tag to compare

@blakeembrey blakeembrey released this 29 Oct 18:04
0dc3870

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

Improved

Full Changelog: v2.0.1...v3.0.0

v2.0.1

Choose a tag to compare

@blakeembrey blakeembrey released this 28 Oct 23:32
0bac92e

Fixed

  • Replace consecutive unpaired surrogates (#34) 119ba5f

v2.0.0...v2.0.1

v2.0.0

Choose a tag to compare

@blakeembrey blakeembrey released this 29 Mar 00:04
5f2205e

Changed

  • Align encoding with WHATWG URL spec (#8) be0f77b
    • Stops encoding \, ^, and |.

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.

v1.0.2...v2.0.0

1.0.2

Choose a tag to compare

@dougwilson dougwilson released this 22 Jan 03:12
  • Fix encoding % as last character

1.0.1

Choose a tag to compare

@dougwilson dougwilson released this 10 Jun 00:52
  • Fix encoding unpaired surrogates at start/end of string