pi-utils-settings: v0.17.0
Minor Changes
-
a9e9152: Add optional
messagefield toMigrationinterface for user-facing migration notificationsMigrations can now declare a
messagethat is queued when the migration runs successfully. Extensions drain messages viaConfigLoader.drainMessages()and display them however they want (typically viactx.ui.notifyinsession_start).Migration.message:string | ((before, after, filePath) => string | undefined)- Static strings are used as-is
- Factory functions receive both pre-migration and post-migration config
- Returning
undefinedfrom a factory skips the message
drainMessages()returnsstring[], queue is cleared on drain- Failed migrations do not queue messages
- Message factory errors are caught gracefully (logged, not queued)