Skip to content

Add custom equality comparison for update method#12

Merged
atldays merged 3 commits intomainfrom
develop
May 4, 2026
Merged

Add custom equality comparison for update method#12
atldays merged 3 commits intomainfrom
develop

Conversation

@atldays
Copy link
Copy Markdown
Member

@atldays atldays commented May 4, 2026

No description provided.

github-actions Bot and others added 3 commits April 9, 2026 18:17
- Introduce `compare` option for `update()` to skip writes based on custom equality logic.
- Extend `StorageUpdateOptions` with `compare` field for precise control over update logic.
- Ensure no-op writes do not trigger unnecessary updates or storage writes.
- Add comprehensive test coverage for `compare` usage.
- Update documentation with examples to demonstrate custom `compare` usage.
- Expand explanation of atomic updates for browser extensions.
- Provide examples for extension state shared across multiple contexts.
- Clarify use cases such as counters, retries, toggles, and queue metadata.
@atldays atldays merged commit 190a4e8 into main May 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant