Back to Explore

jridgewell/resolve-uri

GitHub
1 watchersOpen source

Last release: 2/14/2024

Resolves a URI string relative to an optional base URI, handling combinations of absolute URIs, protocol-relative URIs, absolute paths, and relative paths. Useful when you need consistent URL resolution and joining in JavaScript or TypeScript code.

Project status

  • Active maintenance is suggested by an upstream push on 2026-03-05, but the last documented code-focused update in the provided history is from 2024-02-14 (v3.1.2).
  • Update cadence appears relatively slow, with updates released on 2022-07-05 (v3.1.0), 2023-04-07 (v3.1.1), and 2024-02-14 (v3.1.2), followed by no further update entries shown in the supplied summaries.

AI summary generated Today

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

Recent updates

  • v3.1.2

    2/14/2024

    Release v3.1.2 makes a single implementation change focused on output size optimization by converting `UrlType` from a regular `enum` to a `const enum`. The release notes claim this reduces file size by about 18%, and the code diff shows that is the only functional modification. Package and lockfile version strings were also updated to 3.1.2.

  • v3.1.1

    4/7/2023

    Release v3.1.1 includes only minimal metadata changes. The diff shows version bumps and a packaging metadata update in package.json, with no functional code changes visible.

  • v3.1.0

    7/5/2022

    v3.1.0 updates @jridgewell/resolve-uri to properly parse and resolve query strings and hash fragments when resolving URIs. The change introduces explicit handling of ?, # for both absolute and file URL formats, and adjusts path normalization logic based on the new URL classification.

    Features
  • v3.0.8

    6/26/2022

    Release v3.0.8 is a packaging metadata update for @jridgewell/resolve-uri, intended to fix how built assets are referenced and how the package exports resolve on older Node versions. The code diff shows changes to the package.json exports structure and published file list, plus a tsconfig output directory tweak that can affect build artifact locations.

  • v3.0.7

    5/5/2022

    v3.0.7 updates the package metadata for @jridgewell/resolve-uri. The only functional change in the diff is adding a `types` condition to the `exports` map so TypeScript can resolve the type declarations correctly.

    Features
  • v3.0.6

    4/22/2022

    v3.0.6 primarily addresses incorrect parsing of file: URLs. The code changes add dedicated file: URL parsing and adjust some path resolution edge cases. The release notes only mention the file: URL fix, but the diff also includes other behavioral tweaks and a substantial test/tooling rework.

  • v3.0.0

    1/23/2022

    Version v3.0.0 is described as switching to a loose URL parser so that invalid URLs are resolved more reliably. The code diff shows a much larger internal change, moving away from using the platform URL parser toward custom regex-based parsing and path normalization logic.

    Features
  • v2.0.0

    3/23/2021

    v2.0.0 focuses on upgrading the runtime requirements and improving performance. The release notes call out a new minimum Node.js version and additional internal speedups, with no other user-facing changes documented.

    Breaking