Justin Baur
3caa6cb635
[PM-7766] Add clientType
to MigrationHelper ( #8945 )
...
* Add `clientType` to MigrationHelper
* PM-7766 - Fix migration builder tests to take new clientType into account.
Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
* PM-7766 - Add client type to migration builder tests.
* PM-7766 - Fix migration-helper.spec tests.
* PM-7766 - Fix migrator.spec.ts
---------
Co-authored-by: Jared Snider <jsnider@bitwarden.com>
2024-04-29 07:28:58 -04:00
Justin Baur
908d3d165e
[PM-6965] Add type
Property to MigrationHelper
( #8411 )
...
* Add `type` Property to `MigrationHelper`
* Fix Tests
* Make `type` parameter required
* Fix mockHelper.type
* Remove `readonly` from `type`
2024-03-25 14:28:42 +00:00
Oscar Hinton
e767295c86
[PM-5979] Refactor EnvironmentService ( #8040 )
...
Refactor environment service to emit a single observable. This required significant changes to how the environment service behaves and tackles much of the tech debt planned for it.
2024-03-21 09:09:44 -07:00
Justin Baur
c3eba7f2c8
[PM-6404] Fully Integrate clearOn
Events ( #8134 )
...
* Add New KeyDefinitionOption
* Add New Services
* Add WebStorageServiceProvider Tests
* Update Error Message
* Add `UserKeyDefinition`
* Fix Deserialization Helpers
* Fix KeyDefinition
* Add `UserKeyDefinition`
* Fix Deserialization Helpers
* Fix KeyDefinition
* Move `ClearEvent`
* Cleanup
* Fix Imports
* Integrate onClear Events
* Remove Accidental Addition
* Fix Test
* Add VaultTimeoutService Tests
* Only Register When Current State is Null
* Address Feedback
2024-03-04 20:33:25 +00:00
Justin Baur
87c75e5ac8
[PM-6404] Initial Clear Events Code ( #8029 )
...
* Add New KeyDefinitionOption
* Add New Services
* Add WebStorageServiceProvider Tests
* Update Error Message
* Add `UserKeyDefinition`
* Fix Deserialization Helpers
* Fix KeyDefinition
* Add `UserKeyDefinition`
* Fix Deserialization Helpers
* Fix KeyDefinition
* Move `ClearEvent`
* Cleanup
* Fix Imports
* Remove `updateMock`
* Call Super in Web Implementation
* Use Better Type to Avoid Casting
* Better Error Docs
* Move StorageKey Creation to Function
* Throw Aggregated Error for Failures
2024-02-27 21:58:31 +00:00
Justin Baur
632598d804
[PM-6404] Add UserKeyDefinition
( #8052 )
...
* Add `UserKeyDefinition`
* Fix Deserialization Helpers
* Fix KeyDefinition
* Move `ClearEvent`
* Address PR Feedback
* Feedback
2024-02-26 11:28:40 -05:00
Justin Baur
1ff7bdd014
[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
2024-02-14 08:52:13 -05:00
Justin Baur
45c0c09b71
[PM-5829] Add disk-local
option for web
( #7669 )
...
* Add `disk-local` option for web
* Fix `web` DI
* Update libs/common/src/platform/state/state-definition.ts
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
* Rely On Default Implementation for Most of Cache Key
---------
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2024-01-25 12:48:51 -05:00