resolve-url is deprecated
Deprecated. The source gives no day. Replacement: URL. Source: resolve-url maintainer deprecation notice.
Check a version:
evergreen check pkg:npm/resolve-url
The maintainer deprecated resolve-url and recommends the platform URL API for resolving URLs in browsers.
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | Deprecated |
| Severity | medium |
| Ecosystem | npm |
| Component | pkg:npm/resolve-url |
| Affected versions | vers:npm/* |
| Date from the source | The source gives no day |
| Replacement | URL |
| Evidence last seen | 2026-10-16 |
| Reviewed | 2026-10-16 by arminazimi, drafted by the npm-deprecated importer |
| Review due | 2027-10-16 (365 days after the last review) |
| Rule ID | npm.package.resolve-url.deprecated |
Sources
- resolve-url maintainer deprecation notice (accessed 2026-10-16)
- resolve-url registry metadata (accessed 2026-10-16)
Migration
Constraints
- Preserve base URL selection, sequential resolution, protocol-relative URLs, absolute URLs, encoding, and browser compatibility.
Steps
- Use the URL API. Replace resolve-url calls with URL construction, applying each base explicitly and returning the same string form expected by callers.
Verification
npm run test --if-present: Run relative, absolute, protocol-relative, encoded, multi-base, and repository tests.
Detected by
The npm detector. See Detectors and Compatibility.
Related
Same ecosystem
- abab is deprecated
- @angular/core v18 and older are no longer supported
- @angular/core v19 is no longer supported
- @angular/core v20 reaches end of life on 2026-11-28
- @angular/core v21 reaches end of life on 2027-06-30
- @angular/core v22 reaches end of life on 2028-06-30
- are-we-there-yet is no longer supported
- babel-eslint is deprecated
Data
This page is generated from registry/npm.json, rule npm.package.resolve-url.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated