Skip to content
Evergreen Evergreen
Documentation

url.parse is deprecated

Deprecated. The source gives no day. Replacement: The WHATWG URL API, new URL(). Source: Node.js deprecations: DEP0169 url.parse.

Check a version:

evergreen check pkg:generic/nodejs

Node.js deprecates url.parse() because its behavior is not standardized and error-prone with security implications (DEP0169): documentation-only since v19.0.0 and v18.13.0, application runtime warning since v24.0.0.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Deprecated
Severity medium
Ecosystem nodejs
Component pkg:generic/nodejs
Affected versions vers:semver/>=18.13.0
Date from the source The source gives no day
Replacement The WHATWG URL API, new URL()
Evidence last seen 2026-10-21
Reviewed 2026-10-21 by arminazimi
Review due 2027-10-21 (365 days after the last review)
Rule ID nodejs.symbol.url.parse

Sources

Migration

Constraints

  • Keep the behavior of the call unchanged; check the replacement’s argument and error handling differences.

Steps

  1. Replace url.parse. Parse with new URL(input, base) and read its properties instead of the legacy url object; review inputs that are not absolute URLs.

Verification

  • npm run test --if-present: Run the repository tests when defined.

Detected by

The npm detector. See Detectors and Compatibility.

Other versions of this product

Same ecosystem

Data

This page is generated from registry/nodejs.json, rule nodejs.symbol.url.parse, 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