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-querytool to debug query performance (doc). - Added
transform-querytool to debug permissions (doc). - Added
ast-to-zqlscript to prettify Zero's internal AST format (doc).
Fixes
- Added backpressure to
replication-managerto protect against Postgres moving faster than we can push to clients (PR). @rocicorp/zero/advancedhas been deprecated.AdvancedQuerygot folded intoQueryandZeroAdvancedOptionsgot folded intoZeroOptions(PR).- Support
ALTER SCHEMADDL changes (PR) - Allow
replication-managerto continue running while a new one re-replicates. (PR). - Improve replication performance for some schema changes (PR).
- Make the log level of
zero-deploy-permissionsconfigurable (PR) - Bind
existsto the expression builder (PR) - Fix
single output already existserror (PR) - Fix
getBrowserGlobal('window')?.addEventListener not a functionin 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 FULLin 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.