1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-03-30 17:36:29 +02:00
bitwarden-browser/libs/common/src/enums
Matt Gibson 3340af8084
PM-3585 Improve state migrations ()
* WIP: safer state migrations

Co-authored-by: Justin Baur <justindbaur@users.noreply.github.com>

* Add min version check and remove old migrations

Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>

* Add rollback and version checking

* Add state version move migration

* Expand tests and improve typing for Migrations

* Remove StateMigration Service

* Rewrite version 5 and 6 migrations

* Add all but initial migration to supported migrations

* Handle stateVersion location in migrator update versions

* Move to unique migrations directory

* Disallow imports outside of state-migrations

* Lint and test fixes

* Do not run migrations if we cannot determine state

* Fix desktop background StateService build

* Document Migration builder class

* Add debug logging to migrations

* Comment on migrator overrides

* Use specific property names

* `npm run prettier` 🤖

* Insert new migration

* Set stateVersion when creating new globals object

* PR comments

* Fix migrate imports

* Move migration building into `migrate` function

* Export current version from migration definitions

* Move file version concerns to migrator

* Update migrate spec to reflect new version requirements

* Fix import paths

* Prefer unique state data

* Remove unnecessary async

* Prefer to not use `any`

---------

Co-authored-by: Justin Baur <justindbaur@users.noreply.github.com>
Co-authored-by: Oscar Hinton <Hinton@users.noreply.github.com>
2023-08-30 17:57:20 +00:00
..
client-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
device-type.enum.ts Trusted Device Encryption feature () 2023-08-18 14:05:08 -04:00
encrypted-export-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
encryption-type.enum.ts Rework Desktop Biometrics () 2023-04-18 09:09:47 -04:00
event-system-user.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
event-type.enum.ts Trusted Device Encryption feature () 2023-08-18 14:05:08 -04:00
feature-flag.enum.ts [AC-1486] Feature: SM Billing Round 1 () 2023-07-24 18:07:21 -05:00
field-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
file-upload-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
hash-purpose.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
html-storage-location.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
http-status-code.enum.ts Remove all TypeScript region use as it is now against the Bitwarden code style guide. () 2023-05-04 10:48:01 -04:00
index.ts PM-3585 Improve state migrations () 2023-08-30 17:57:20 +00:00
kdf-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
key-suffix-options.enum.ts Trusted Device Encryption feature () 2023-08-18 14:05:08 -04:00
linked-id-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
log-level-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
native-messaging-version.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
notification-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
product-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
provider-type.enum.ts [AC-1081] Merge feature/billing-obfuscation () 2023-04-14 11:14:18 +01:00
secure-note-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
storage-location.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
theme-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
uri-match-type.enum.ts [AC-1266] Enums filename conventions () 2023-04-04 22:42:21 -05:00
vault-timeout-action.enum.ts [AC-1045] add action to vault timeout policy () 2023-04-15 00:11:33 +01:00