migrations
Popii / migrations
Variable: migrations
Section titled “Variable: migrations”
constmigrations:PopiiMigration[]
Defined in: migrations.ts:198
All registered config migrations, in ascending version order.
Add entries here (or push to this array in your own code) when a new popii version
introduces breaking changes to plugin options. Migrations run automatically on the
next client.start() after the package is updated.
Example
Section titled “Example”import { migrations, removeOption } from "popii-framework";
migrations.push({ version: "0.9.0", description: "voicePlugin: removed deprecated 'crossfade' option", transform: (content) => removeOption(content, "voicePlugin", "crossfade"),});