Skip to content
Evergreen Evergreen
Documentation

w3c-hr-time is deprecated

Deprecated. The source gives no day. Replacement: Native performance.now() and performance.timeOrigin. Source: w3c-hr-time package deprecation notice.

Check a version:

evergreen check pkg:npm/w3c-hr-time

npm directs users of w3c-hr-time to native performance.now() and performance.timeOrigin.

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

   
Status Deprecated
Severity medium
Ecosystem npm
Component pkg:npm/w3c-hr-time
Affected versions vers:npm/*
Date from the source The source gives no day
Replacement Native performance.now() and performance.timeOrigin
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.w3c-hr-time.deprecated

Sources

Migration

Constraints

  • Preserve monotonic timing, time-origin assumptions, units, precision expectations, and minimum-runtime support.

Steps

  1. Use native high-resolution time. Replace w3c-hr-time imports and clock reads with native performance.now() and performance.timeOrigin, then remove the dependency.

Verification

  • npm run test --if-present: Run timing behavior and repository tests without relying on exact wall-clock values.

Detected by

The npm detector. See Detectors and Compatibility.

Same ecosystem

Data

This page is generated from registry/npm.json, rule npm.package.w3c-hr-time.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