mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
* Create MigrationRunner - Create MigrationRunner Service for running migrations in StateService - Create web override so that migrations also run against `localStorage` * Fix Web StateService * Fix WebMigrationRunner * Fix CLI * Fix ElectronStateService * Update Comment * More Common Scenarios
11 lines
322 B
TypeScript
11 lines
322 B
TypeScript
import { createMigrationBuilder } from "../../state-migrations";
|
|
import { MigrationBuilder } from "../../state-migrations/migration-builder";
|
|
|
|
export class MigrationBuilderService {
|
|
private migrationBuilderCache: MigrationBuilder;
|
|
|
|
build() {
|
|
return (this.migrationBuilderCache ??= createMigrationBuilder());
|
|
}
|
|
}
|