Zero 0.12
Circular Relationships
Install
npm install @rocicorp/zero@0.12
Features
- Schemas now support circular relationships (docs).
- Added one()andmany()schema helpers to default relationship type (docs).
- Support for syncing tables without a primary key as long as there is a unique index. This enables Prisma's implicit many-to-many relations (docs).
- Zero has been confirmed to work with Aurora and Google Cloud SQL (docs)
- Client bundle size reduced from 55kb to 47kb (-15%).
Fixes
- Windows: zero-cachewas spawning emptying terminals and leaving listeners connected on exit.
- Incorrect warning in zero-cacheabout enums not being supported.
- Failure to handle the primary key of Postgres tables changing.
- Incorrect results when whereExists()is beforewhere()in query (bug).
- Error: The inferred type of '...' cannot be named without a reference to ....
- Error: insufficient upstream connections.
- Several causes of flicker in React.
- Incorrect values for ResultTypewhen unloading and loading a query quickly (bug).
- Error: Postgres is missing the column '...' but that column was part of a row.
- Pointless initial empty render in React when data is already available in memory.
- Error: Expected string at ... Got array during auth.
- where()incorrectly allows comparing to- nullwith the- =operator (bug).
- SolidJS: Only call setStateonce per transaction.
Breaking Changes
- The schema definition syntax has changed to support circular relationships. See the changes to hello-zeroandhello-zero-solidfor upgrade examples.