Skip to content

migrations

Popii


Popii / migrations

const migrations: 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.

import { migrations, removeOption } from "popii-framework";
migrations.push({
version: "0.9.0",
description: "voicePlugin: removed deprecated 'crossfade' option",
transform: (content) => removeOption(content, "voicePlugin", "crossfade"),
});