Back to Explore

jsdom/whatwg-url

GitHub
1 watchersOpen source

Last release: 3 months ago

whatwg-url is a JavaScript implementation of the WHATWG URL Standard. It provides a `URL` and `URLSearchParams` API that follows the spec, and it also exposes lower-level parsing and serialization functions that are useful for projects like jsdom that need to integrate URL parsing into their own code.

Project status

  • Actively maintained, with recent GitHub activity (last upstream push 2026-03-21) and multiple versioned updates in 2026 (v16.0.0 on 2026-02-02, v16.0.1 on 2026-02-18).
  • Update cadence appears steady but not uniform, with at least two updates close together in February 2026, and the prior known update in September 2025 (v15.1.0 on 2025-09-18).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v16.0.1

    3 months ago

    Release 16.0.1 focuses on fixing `URL.parse()` so it returns a real `URL` instance rather than an internal implementation object. The diff also includes small live-viewer UI/console tweaks and adds a regression test covering the instance behavior.

  • v16.0.0

    4 months ago

    Release v16.0.0 updates the supported Node.js versions and adds support for non-UTF-8 encodings when parsing the URL query string. The implementation routes query percent-encoding through @exodus/bytes, while the URL API itself continues to assume UTF-8 for the fragment.

    BreakingFeatures
  • v15.1.0

    8 months ago

    Release v15.1.0 updates the tr46 dependency, aligning internationalized domain name handling with Unicode 17.0.0. In addition, several non-runtime repository and tooling changes landed (demo HTML, test tooling config, and lockfile dependency bumps).

  • v15.0.0

    8 months ago

    whatwg-url v15.0.0 raises the minimum supported Node.js version to 20. It also updates URL state override parsing behavior for host/hostname and port to align with URL Standard changes. Beyond the documented notes, the release includes dependency bumps that were not called out in the release notes.

    Breaking
  • v14.2.0

    3/15/2025

    whatwg-url 14.2.0 updates its tr46 dependency to Unicode 16.0.0 (and includes related URL Standard changes) and adjusts percent-encoding behavior. It also changes opaque-path handling to better preserve roundtripping behavior when parsing and serializing URLs.

    Breaking
  • v14.1.1

    2/11/2025

    Release 14.1.1 is described as a performance improvement for very long inputs. The code changes focus on optimizing how control characters are trimmed and include a small tooling/config update plus a benchmark harness enhancement.

  • v14.1.0

    12/4/2024

    Release 14.1.0 adds support for the WHATWG URL Standard static method `URL.parse()`. The implementation adds a nullable `parse` API to the URL WebIDL and a corresponding `URLImpl.parse` method, plus includes additional internal/refactor changes and tooling updates.

    Features
  • v14.0.0

    11/5/2023

    Release v14.0.0 primarily modernizes the project to require newer Node.js runtimes, switching CI and package engine requirements accordingly. The codebase also changes several development and tooling behaviors (test runner, coverage tooling, and the live viewer deployment workflow) and bumps key dependencies like tr46.

    Breaking
  • v13.0.0

    5/28/2023

    Release v13.0.0 updates URL/URLSearchParams to match newer WHATWG URL spec features, including URL.canParse(), URLSearchParams.size, and optional value parameters for has() and delete(). It also changes how blob URL origins are serialized when the embedded URL is not http or https, returning "null" instead. The release drops Node.js v14 support and updates tooling/test infrastructure accordingly.

    BreakingFeatures
  • v12.0.1

    3/8/2023

    Release v12.0.1 updates the whatwg-url dependency on tr46 to pick up IDNA related URL parsing fixes, including better handling of edge-case international domain name labels and Unicode 15.0.0 support. The project also updates its web-platform-tests test data and expands the test suite to include newly introduced IDNAv2-derived cases.