# @twilio/deprecation-decorator

> @twilio/deprecation-decorator

Latest version **1.0.0** (published 2026-03-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install @twilio/deprecation-decorator
pnpm add @twilio/deprecation-decorator
yarn add @twilio/deprecation-decorator
bun add @twilio/deprecation-decorator
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2026-03-18 |
| First published | 2022-07-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=20 |
| Dependencies | 3 |
| Unpacked size | 77.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sveta Leonovets |
| Maintainers | twilio-messaging |

## Links

- npm: https://www.npmjs.com/package/@twilio/deprecation-decorator
- npm.io page: https://npm.io/package/@twilio/deprecation-decorator

## Dependencies (3)

- [core-js](https://npm.io/package/core-js.md) ^3.17.3
- [loglevel](https://npm.io/package/loglevel.md) ^1.8.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.17.0

## Recent versions

- 1.0.0 (latest) — 2026-03-18
- 1.0.0-rc.11 (alpha) — 2026-03-04
- 0.3.0 — 2026-02-19
- 0.3.0-rc.2 — 2026-02-19
- 0.3.0-rc.0 — 2026-02-19
- 0.2.12-rc.1 — 2026-02-19
- 0.2.12-rc.0 — 2026-02-17
- 0.2.11 — 2025-11-18
- 0.2.11-rc.0 — 2025-11-18
- 0.2.10 — 2025-09-29
- 0.2.10-rc.3 — 2025-09-16
- 0.2.10-rc.0 — 2025-08-01
- 0.2.9 — 2025-07-29
- 0.2.9-rc.19 — 2025-07-11
- 0.2.9-rc.18 — 2025-07-11
- … 45 more at https://npm.io/package/@twilio/deprecation-decorator/versions

## README

# Deprecation Decorator

Annotation for deprecated class methods, logs warning with information about method usage

## Usage

```
import { deprecated } from "@twilio/deprecation-decorator";

class SomeClass {
  @deprecated("oldMethod", "newMethod", "http://docs.link")
  oldMethod() {
    // some deprecated method 
  }

  newMethod() {
    // method to use instead
  }
}
```

---
_Source: https://npm.io/package/@twilio/deprecation-decorator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
