Zero 0.5
JSON Columns
Install
npm install @rocicorp/zero@0.5
Breaking changes
createTableSchemaandcreateSchemamoved to@rocicorp/zero/schemasubpackage. This is in preparation to moving authorization into the schema file.SchemaToRowhelper type was renamedTableSchemaToRowand moved into@rocicorp/zero/schema.
Basically:
- import { createSchema, createTableSchema, SchemaToRow } from "@rocicorp/zero";
+ import { createSchema, createTableSchema, TableSchemaToRow } from "@rocicorp/zero/schema";
Features
- Added support for JSON columns in Postgres (documentation).
- Zero pacakage now includes
zero-sqlite3, which can be used to explore our sqlite files (documentation).
Fixes
- We were not correctly replicating the
char(n)type, despite documenting that we were.
Docs
nothing notable
zbugs
nothing notable