---
url: /api/plugins/pantoken/deprecations/src/functions/deprecationShims.md
---
[pantoken-root](../../../../../index.md) / [plugins/pantoken/deprecations/src](../index.md) / deprecationShims

# Function: deprecationShims()

> **deprecationShims**(`ledger`): [`PantokenPlugin`](../../../../../packages/core/src/interfaces/PantokenPlugin.md)

Beta

Create the deprecation-shim plugin from a ledger.

## Parameters

### ledger

`DeprecationLedger`

The `DeprecationLedger` (e.g. `formats/tokens/deprecations.json`).

## Returns

[`PantokenPlugin`](../../../../../packages/core/src/interfaces/PantokenPlugin.md)

A [PantokenPlugin](../../../../../packages/core/src/interfaces/PantokenPlugin.md) whose `tokens` hook appends one shim per entry.
