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
- Maintenance status: The package is broadly mature, but the most recent published updates appear to be v3.1.2 (2024-02-14), while the upstream GitHub repo shows a more recent push on 2026-03-05, suggesting continued development but not frequent packaging updates.
- Update cadence: After v3.1.2 in 2024, there are no newer version tags in the provided history, indicating an infrequent release/update cadence over the last couple of years; earlier updates were also sporadic (2023, then 2024).
AI summary generated
Recent updates
v3.1.2
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
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
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.
Featuresv3.0.8
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
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.
Featuresv3.0.6
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
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.
Featuresv2.0.0
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