clients/libs/state-internal
Andreas Coroiu 5281da8fad
Some checks failed
Chromatic / Check PR run (push) Has been cancelled
Scan / Check PR run (push) Has been cancelled
Testing / Run tests (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (macos-14) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (ubuntu-22.04) (push) Has been cancelled
Testing / Run Rust tests on ${{ matrix.os }} (windows-2022) (push) Has been cancelled
Testing / Rust Coverage (push) Has been cancelled
Chromatic / Chromatic (push) Has been cancelled
Scan / Checkmarx (push) Has been cancelled
Scan / Sonar (push) Has been cancelled
Testing / Upload to Codecov (push) Has been cancelled
[PM-25660] UserKeyDefinition.clearOn doesn't clear data in some cases (#16799)
* fix: always try to register clearOn events

`registerEvents` already checks for existing registered events so there is no
need to have a pre-check in `doStorageSave`. It causes issues because the
`newState` and `oldState` parameters come from the custom deserializer which
might never return `null` (e.g. transforming `null` to some default value).
Better to just use the list of registered events as a source of truth.

A performance check shows that most calls would only save a couple of
milliseconds (ranges from 0.8 ms to 18 ms) and the total amount of time
saved from application startup, to unlock, to showing the vault is about 100 ms.
I haven't been able to perceive the change.

* Revert "feat: add folder.clear warning (#16376)"

This reverts commit a2e36c4489.
2025-10-17 09:25:49 +02:00
..
src [PM-25660] UserKeyDefinition.clearOn doesn't clear data in some cases (#16799) 2025-10-17 09:25:49 +02:00
eslint.config.mjs Resolve state <-> state-test-utils circular dependency (#16093) 2025-08-25 12:38:28 -04:00
jest.config.js Resolve state <-> state-test-utils circular dependency (#16093) 2025-08-25 12:38:28 -04:00
package.json fix(basic-lib generator): Ensure all project.json files have a rootDir value (#16384) 2025-09-22 12:32:23 -04:00
project.json fix(basic-lib generator): Ensure all project.json files have a rootDir value (#16384) 2025-09-22 12:32:23 -04:00
README.md Resolve state <-> state-test-utils circular dependency (#16093) 2025-08-25 12:38:28 -04:00
tsconfig.eslint.json Resolve state <-> state-test-utils circular dependency (#16093) 2025-08-25 12:38:28 -04:00
tsconfig.json Resolve state <-> state-test-utils circular dependency (#16093) 2025-08-25 12:38:28 -04:00
tsconfig.lib.json Resolve state <-> state-test-utils circular dependency (#16093) 2025-08-25 12:38:28 -04:00
tsconfig.spec.json Resolve state <-> state-test-utils circular dependency (#16093) 2025-08-25 12:38:28 -04:00

state-internal

Owned by: platform

The internal parts of @bitwarden/state that should not be used by other teams.