Zero 1.9

Query Correctness and Reliability

Installation

npm install @rocicorp/zero@1.9

You can use zero-cache from Docker Hub or GHCR:

docker pull rocicorp/zero:1.9.0
# or
docker pull ghcr.io/rocicorp/zero:1.9.0

Overview

Zero 1.9 improves query correctness and zero-cache reliability.

Performance

Deferred.

Fixes

Breaking Changes

PostgreSQL Socket Inactivity Timeout

zero-cache now monitors wire activity on its PostgreSQL connections. By default, it checks every two minutes and resets a connection after one to two inactive intervals. This recovers half-open connections, but can interrupt a long-running statement that legitimately produces no network traffic.

If legitimate Postgres operations can remain silent for this long, set ZERO_PG_SOCKET_INACTIVITY_TIMEOUT on zero-cache to a longer interval in milliseconds. Set it to 0 to disable the watchdog.