Skip to content

8.0.0

Compare
Choose a tag to compare
@aboodman aboodman released this 09 Nov 00:22
· 3 commits to main since this release

🎁 Features

  • Our internal map data structure is now implemented using a B+ Tree, which improves performance throughout, but especially on the core write/sub/read loop which improves 13x (πŸ˜‚) in this release at 4MB cache size. Populate takes a hit, but we plan to fix that before the real 8.0. #596
  • We also now track the core write/sub/read perf at p50 and p95, along with several other important metrics, here: https://rocicorp.github.io/replicache/perf-v2/
  • Expose clientID on ReadTransaction and WriteTransaction. This is convenient for multiplayer applications. #541.
  • We now expose the PushRequest, PushResponse, PullRequest, and PullResponse TypeScript types for convenience when implementing servers. #459.

πŸ”¨ Fixes

  • There was a significant perf issues during pull where indexes were incorrectly recomputed. This has been resolved. #601.

🚨 Breaking Changes

  • Replicache no longer implements ReadTransaction. This is very minor and you'd be unlikely to notice it, but it is technically a breaking change. If you were assigning an instance of Replicache to a variable of type ReadTransaction, this no longer works. The actual API exposed by Replicache is unchanged. See: ba39583.
  • Removed keyPrefix from createIndex(). It was deprecated four months ago in favor of prefix, which should be used instead. See: 883c864.
  • The register method was removed from Replicache. It was deprecated 7 months ago in favor of the mutators parameter to the Replicache constructor. See 9825000.