1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-20 16:07:45 +01:00
bitwarden-browser/libs
Matt Gibson 3340af8084
PM-3585 Improve state migrations (#5009)
* 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
..
.vscode Multi root workspace tweaks (#2858) 2022-06-13 21:39:36 -05:00
angular PM-3585 Improve state migrations (#5009) 2023-08-30 17:57:20 +00:00
auth [PM-3172] create @bitwarden/auth lib (#5906) 2023-08-08 09:37:25 -04:00
common PM-3585 Improve state migrations (#5009) 2023-08-30 17:57:20 +00:00
components [PM-2866] - Update color variables for better contrast (#6078) 2023-08-29 13:42:56 -07:00
exporter Trusted Device Encryption feature (#5950) 2023-08-18 14:05:08 -04:00
importer [PM-3100] Fixes imports of "reduced" psono data (#5859) 2023-08-25 21:16:53 +02:00
node Fix failing crypto tests (#5948) 2023-08-04 02:13:33 +00:00
shared [PM-3587] create @bitwarden/vault lib (#6083) 2023-08-22 10:02:48 -04:00
vault [PM-3587] create @bitwarden/vault lib (#6083) 2023-08-22 10:02:48 -04:00