Zero 0.2
Skip Mode and Compound PKs
Breaking changes
- None
Features
- “Skip mode”: zero-cache now skips columns with unsupported datatypes. A warning is printed out when this happens: This makes it easy to use zero-cache with existing schemas that have columns Zero can’t handle. You can pair this with Postgres triggers to easily translate unsupported types into something Zero can sync.
- Zero now supports compound primary keys. You no longer need to include an extraneous
id
column on the junction tables.
Fixes
- Change the way Zero detects unsupported environments to work in One (and any other supported env). Before, Zero was looking for WebSocket and indexedDB early on, but indexedDB won’t be present on RN as SQLite will be used. Instead look for indexedDB only at use.
- Require Node v20 explicitly in package.json to prevent accidentally compiling better-sqlite3 with different Node version than running with.
- Ensure error messages early in startup get printed out before shutting down in multiprocess mode.
Docs
- Factored out the sample app from the docs into its own Github repo so you can just download it and poke around if you prefer that.
Source tree fixes
- Run zero-cache from source. You no longer have to build
zero
before runningzbugs
, it picks up the changes automatically.
zbugs
- Numerous polish/styling fixes
- Change default to ‘open’ bugs
- Add ‘assignee’ field