Skip to content
Evergreen Evergreen
Documentation

request is deprecated

Deprecated as of 2020-02-11. Replacement: Native fetch or a maintained HTTP client. Source: request package deprecation notice.

Check a version:

evergreen check pkg:npm/request

The package is fully deprecated and no new changes are expected.

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

   
Status Deprecated
Severity high
Ecosystem npm
Component pkg:npm/request
Affected versions vers:npm/*
Date from the source 2020-02-11
Replacement Native fetch or a maintained HTTP client
Evidence last seen 2026-10-13
Reviewed 2026-10-14 by arminazimi
Review due 2027-10-14 (365 days after the last review)
Rule ID npm.package.request.deprecated

Sources

Migration

Constraints

  • Preserve request method, headers, authentication, redirects, timeouts, retries, proxy behavior, streaming, and response/error semantics used by each call site.

Steps

  1. Choose the target HTTP client. Select native fetch or one maintained client whose behavior covers the affected request usages.
  2. Rewrite request usages. Translate callbacks, options, response handling, errors, and streams at every reported import and call.
  3. Replace the dependency. Remove request from package metadata and add the selected maintained client only if native fetch is insufficient.

Verification

  • npm run test --if-present: Run HTTP behavior and repository tests when defined.
  • npm run build --if-present: Verify imports, types, and the build remain valid.

Detected by

The npm detector. See Detectors and Compatibility.

Same ecosystem

Data

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