Zero 0.12

Circular Relationships

Install

npm install @rocicorp/zero@0.12

Features

  • Schemas now support circular relationships (docs).
  • Added one() and many() 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-cache was spawning emptying terminals and leaving listeners connected on exit.
  • Incorrect warning in zero-cache about enums not being supported.
  • Failure to handle the primary key of Postgres tables changing.
  • Incorrect results when whereExists() is before where() 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 ResultType when 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 null with the = operator (bug).
  • SolidJS: Only call setState once per transaction.

Breaking Changes

  • The schema definition syntax has changed to support circular relationships. See the changes to hello-zero and hello-zero-solid for upgrade examples.