Zero 0.9
JWK Support
Install
npm install @rocicorp/zero@0.9
See the changes to hello-zero or hello-zero-solid for example updates.
Features
- JWK Support. For auth, you can now specify a JWK containing a public key, or a JWKS url to support autodiscovery of keys. (docs)
- UUID column. Zero now supports the
uuidPostgres column type. (docs)
Fixes
- Readonly Values. Type of values returned from Zero queries are marked
readonly. The system always considered them readonly, but now the types reflect that. (docs)
Breaking Changes
- The
zero-cacheconfigZERO_JWT_SECREThas been renamed toZERO_AUTH_SECRETfor consistency with the new JWK-related keys. If you were using the old name, you'll need to update your.envfile. - All values returned by Zero are now
readonly. You'll probably have to add this TS modifier various places. If you find yourself casting awayreadonlyyou probably should be cloing the value instead.