Skip to content
Evergreen Evergreen
Documentation

sntp is deprecated

Deprecated. The source gives no day. Replacement: @hapi/sntp. Source: sntp package deprecation notice.

Check a version:

evergreen check pkg:npm/sntp

npm states that sntp moved to @hapi/sntp and that the old distribution is no longer supported.

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

   
Status Deprecated
Severity high
Ecosystem npm
Component pkg:npm/sntp
Affected versions vers:npm/*
Date from the source The source gives no day
Replacement @hapi/sntp
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.sntp.deprecated

Sources

Migration

Constraints

  • Preserve server selection, timeout behavior, clock-offset calculations, error handling, and any security-sensitive time checks.

Steps

  1. Replace sntp. Move the dependency and imports from sntp to @hapi/sntp and adapt changed APIs.
  2. Verify network-time behavior. Test successful queries, timeouts, invalid responses, and clock-offset handling with controlled fixtures.

Verification

  • npm run test --if-present: Run time synchronization and repository tests when defined.

Detected by

The npm detector. See Detectors and Compatibility.

Same ecosystem

Data

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