mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[PM-6172] Run localStorage migrations for web (#7900)
* 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
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { createMigrationBuilder } from "../../state-migrations";
|
||||
import { MigrationBuilder } from "../../state-migrations/migration-builder";
|
||||
|
||||
export class MigrationBuilderService {
|
||||
private migrationBuilderCache: MigrationBuilder;
|
||||
|
||||
build() {
|
||||
return (this.migrationBuilderCache ??= createMigrationBuilder());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user