1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-22 02:21:34 +01:00
bitwarden-browser/libs
Matt Gibson 24c240d0d4
Ps/pm 2910/add browser storage services (#6849)
* Allow for update logic in state update callbacks

* Prefer reading updates to sending in stream

* Inform state providers when they must deserialize

* Update DefaultGlobalState to act more like DefaultUserState

* Fully Implement AbstractStorageService

* Add KeyDefinitionOptions

* Address PR feedback

* Prefer testing interactions for ports

* Synced memory storage for browser

* Fix port handling

* Do not stringify port message data

* Use messaging storage

* Initialize new foreground memory storage services

This will need to be rethought for short-lived background pages, but for
now the background is the source of truth for memory storage

* Use global state for account service

* Use BrowserApi listener to avoid safari memory leaks

* Fix build errors: debugging and missed impls

* Prefer bound arrow functions

* JSON Stringify Messages

* Prefer `useClass`

* Use noop services

* extract storage observable to new interface

This also reverts changes for the existing services to use
foreground/background services. Those are now used only in state
providers

* Fix web DI

* Prefer initializing observable in constructor

* Do not use jsonify as equality operator

* Remove port listener to avoid memory leaks

* Fix logic and type issues

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2023-11-21 16:35:37 -05:00
..
.vscode Multi root workspace tweaks (#2858) 2022-06-13 21:39:36 -05:00
angular Ps/pm 2910/add browser storage services (#6849) 2023-11-21 16:35:37 -05:00
auth [PM-2241] Add PRF attestation flow during passkey registration (#6525) 2023-11-08 14:35:36 +01:00
common Ps/pm 2910/add browser storage services (#6849) 2023-11-21 16:35:37 -05:00
components [PM-2195] Adjust radio groups margin (#5410) 2023-11-20 22:59:03 -05:00
exporter [ADR-0006][AC-319] Migrate all tests to use jest mock instead of substitute (#6520) 2023-10-17 17:02:33 +00:00
importer json extension prop is an array (#6866) 2023-11-17 19:34:08 +00:00
node Add State Provider Framework (#6640) 2023-11-09 17:06:42 -05:00
shared Add State Provider Framework (#6640) 2023-11-09 17:06:42 -05:00
tools [PM-4266] Create folder for tools owned features (#6761) 2023-11-02 14:10:28 +01:00
vault [PM-2169] Update Password Reprompt Modal to use Component Library (#5720) 2023-10-04 22:56:27 -04:00