Zero 0.1
First Release
Breaking changes
- The name of some config keys in
zero.config.jsonchanged:upstreamUri→upstreamDBConnStrcvrDbUri→cvrDBConnStrchangeDbUri→changeDBConnStrreplicaDbFile→replicaDBFile
- Changed default port of
zero-cacheto4848. So your app startup should look likeVITE_PUBLIC_SERVER="http://localhost:4848".
Features
- Print a warning to js console when Zero constructor
serverparam isnullorundefined - zero-cache should now correctly bind to both ipv4 and ipv6 loopback addresses. This should fix the issue where using
localhostto connect to zero-cache on some systems did not work. - Check for presence of
WebSocketearly in startup ofZero. Print a clear error to catch people accidentally running Zero under SSR. - Fix annoying error in js console in React strict mode from constructing and closing Replicache in quick succession.
Source tree fixes
These only apply if you were working in the Rocicorp monorepo.
- Fixed issue where zbugs didn’t rebuild when zero dependency changed - generally zbugs build normally again
- The zero binary has the right permissions bit so you don’t have to chmod u+x after build
- Remove overloaded name
snapshotin use-query.tsx (thanks Scott 🙃)