Zero 0.18
Custom Mutators
Install
npm install @rocicorp/zero@0.18
Upgrading
To try out custom mutators, see the changes to hello-zero-solid.
Features
- Custom Mutators! Finally! Define arbitrary write operations in code (doc).
- Added inspector API for debugging sync, queries, and client storage (doc).
- Added
analyze-query
tool to debug query performance (doc). - Added
transform-query
tool to debug permissions (doc). - Added
ast-to-zql
script to prettify Zero's internal AST format (doc).
Fixes
- Added backpressure to
replication-manager
to protect against Postgres moving faster than we can push to clients (PR). @rocicorp/zero/advanced
has been deprecated.AdvancedQuery
got folded intoQuery
andZeroAdvancedOptions
got folded intoZeroOptions
(PR).- Support
ALTER SCHEMA
DDL changes (PR) - Allow
replication-manager
to continue running while a new one re-replicates. (PR). - Improve replication performance for some schema changes (PR).
- Make the log level of
zero-deploy-permissions
configurable (PR) - Bind
exists
to the expression builder (PR) - Fix
single output already exists
error (PR) - Fix
getBrowserGlobal('window')?.addEventListener not a function
in Expo (thanks@andrewcoelho
!) (PR). - Fix Vue bindings ref counting bug. Bindings no longer need to pass
RefCountMap
(PR). - Fix CVR ownership takeover race conditions (PR).
- Support
REPLICA IDENTITY FULL
in degraded-mode pg providers (PR). - Handle corrupt sqlite db by re-replicating (PR).
- Don't send useless pokes to clients that are unchanged (PR).
- Add
limit(1)
to queries using a relation that is markedone()
(PR). - Export
UseQueryOptions
Breaking Changes
None.