{
  "schemaVersion": "ebb.rule.v1",
  "id": "npm.package.request-promise-native.deprecated",
  "ecosystem": "npm",
  "purl": "pkg:npm/request-promise-native",
  "affectedVersions": "vers:npm/*",
  "event": "deprecated",
  "severity": "high",
  "title": "request-promise-native is deprecated",
  "summary": "npm states that request-promise-native is deprecated because it extends the deprecated request package.",
  "replacement": "Native fetch or a maintained promise-based HTTP client",
  "sources": [
    {
      "title": "request-promise-native package deprecation notice",
      "url": "https://www.npmjs.com/package/request-promise-native",
      "accessedAt": "2026-10-16"
    },
    {
      "title": "request-promise-native registry metadata",
      "url": "https://registry.npmjs.org/request-promise-native/latest",
      "accessedAt": "2026-10-16"
    },
    {
      "title": "Node.js 18 release announcement: global fetch",
      "url": "https://nodejs.org/en/blog/announcements/v18-release-announce",
      "accessedAt": "2026-10-16"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-16",
    "reviewedAt": "2026-10-16",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Preserve request options, authentication, redirects, timeouts, transforms, full-response mode, and native-Promise rejection behavior."
    ],
    "steps": [
      {
        "id": "select-native-promise-http-client",
        "title": "Select the target HTTP client",
        "instructions": "Choose native fetch or one maintained promise-based client that covers the affected request-promise-native behavior.",
        "targets": "all"
      },
      {
        "id": "replace-request-promise-native",
        "title": "Replace request-promise-native",
        "instructions": "Rewrite requests, response handling, and errors for the selected client, then remove request-promise-native.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "npm run test --if-present",
        "purpose": "Run HTTP behavior and repository tests when defined."
      }
    ]
  }
}
