Url Toolkit Versions Save

Build an absolute URL from a base URL and a relative URL (RFC 1808).

v2.2.5

2 years ago

What's Changed

Full Changelog: https://github.com/tjenkinson/url-toolkit/compare/v2.2.4...v2.2.5

v2.2.4

2 years ago

What's Changed

Full Changelog: https://github.com/tjenkinson/url-toolkit/compare/v2.2.3...v2.2.4

v2.2.3

2 years ago

This release contains no functional changes.

  • Add security disclosure policy
  • document differences to JS URL() (thanks @JamieSlome for flagging this)

Differences to JS URL()

The JS URL() function also lets you calculate a new URL from a base and relative one.

That uses the URL Living Standard which is slightly different to RFC 1808 that this library implements.

One of the key differences is that the URL Living Standard has the concept of a 'special url' and 'special scheme'. For these special URL's, such as a URL with the http scheme, they normalise them in a way that results in http:///example.com/something becoming http://example.com/something. This library does not do that and parseURL() would give you // as the netLoc and /example.com as the path.

v2.2.2

2 years ago

v2.2.1

2 years ago

v2.2.0

3 years ago

Optimize regex to increase performance (https://github.com/tjenkinson/url-toolkit/pull/26)

v2.1.6

5 years ago

v2.1.5

5 years ago

; is now allowed in fragments (https://github.com/tjenkinson/url-toolkit/pull/13)

Previously http://a.com/expiretime=111;dirmatch=true/master.m3u8 + ./a:b would not be handled correctly.

v2.1.4

6 years ago

v2.1.3

6 years ago