Skip to content

pantoken-root / plugins/pantoken/deprecations/src / deprecationShims

Funktion: deprecationShims() ​

deprecationShims(ledger): PantokenPlugin

Beta

Erstellt das deprecation-shim-Plugin aus einem Ledger.

Parameter ​

ledger ​

DeprecationLedger

Das DeprecationLedger (z. B. formats/tokens/deprecations.json).

Rückgabe ​

PantokenPlugin

Ein PantokenPlugin, dessen tokens-Hook pro Eintrag einen Shim anhängt.