Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
47a8f1d
chore: enable build and test in CI (#101)
ymc9 Nov 17, 2022
1e5f4e4
feat: implement field-level validation (#100)
ymc9 Nov 17, 2022
0b92433
docs: field constraint documentation (#103)
ymc9 Nov 17, 2022
40bfdf3
chore: disable prisma generator test for now since it's failing on gi…
ymc9 Nov 18, 2022
f7b046d
feat: implement CLI telemetry (#105)
ymc9 Nov 18, 2022
579bee5
feat: add options for disabling data fetching in hooks (#106)
ymc9 Nov 20, 2022
739662d
fix: change 'get' hook's id parameter to allow 'undefined' (#107)
ymc9 Nov 21, 2022
db78780
feat: add docsify website (#108)
ymc9 Nov 24, 2022
a0ece42
feat: add "init" command to CLI (#110)
ymc9 Nov 24, 2022
12a92a3
feat: add "zenstack init" command, merge "internal" package into "run…
ymc9 Nov 25, 2022
e21f589
fix: incremental fixes about CLI (#114)
ymc9 Nov 25, 2022
6fd2c1c
docs: adding more documentation to docsify (#115)
ymc9 Nov 25, 2022
e9e8e17
feat: add post-install tracking to CLI (#116)
ymc9 Nov 26, 2022
2c099df
feat: add prism syntax definition for zmodel and update docs (#119)
ymc9 Nov 26, 2022
8f6cc38
feat: refined signin/signup for todo sample, add GitHub signin (#120)
ymc9 Nov 27, 2022
c1a310b
chore: bump version (#121)
ymc9 Nov 28, 2022
517203d
docs: add more content to authentication integration doc (#122)
ymc9 Nov 28, 2022
8c2cef4
fix: schema type-checking improvement
ymc9 Nov 29, 2022
7723b70
docs: simplify README (#124)
ymc9 Nov 29, 2022
8f473c2
feat: add server CRUD api for SSR (#125)
ymc9 Nov 30, 2022
dc554a0
chore: upgrade to Prisma 4.7 (#127)
ymc9 Dec 1, 2022
39ef69e
chore: prepare for v0.4.0 release (#128)
ymc9 Dec 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.2.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
38 changes: 38 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: CI

env:
TELEMETRY_TRACKING_TOKEN: ${{ secrets.TELEMETRY_TRACKING_TOKEN }}
DO_NOT_TRACK: '1'

on:
push:
branches: ['dev', 'main']
pull_request:
branches: ['dev', 'main']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: ^7.15.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm run test
71 changes: 71 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 0.4.0 (2022-12-01)

### Features

- `zenstack init` command for initializing a project, [#109](https://github.com/zenstackhq/zenstack/issues/109), [doc](https://zenstack.dev/#/quick-start?id=adding-to-an-existing-project).

- Field constraint suport, [#94](https://github.com/zenstackhq/zenstack/issues/94), [doc](https://zenstack.dev/#/zmodel-field-constraint).

- Support for server-side CRUD with access policy check (SSR), [#126](https://github.com/zenstackhq/zenstack/issues/126), [doc](https://zenstack.dev/#/server-side-rendering).

- Options for disabling fetching in hooks (useful when arguments are not ready), [#57](https://github.com/zenstackhq/zenstack/issues/57), [doc](https://zenstack.dev/#/runtime-api?id=requestoptions).

- Telemetry in CLI, [#102](https://github.com/zenstackhq/zenstack/issues/102), [doc](https://zenstack.dev/#/telemetry).

- Iron-session based starter, [#95](https://github.com/zenstackhq/zenstack/issues/95), [link](https://github.com/zenstackhq/nextjs-iron-session-starter).

- Barebone starter (without authentication), [link](https://github.com/zenstackhq/nextjs-barebone-starter).

- [Website](https://zenstack.dev) is live!

### Fixes and improvements

- Merge `@zenstackhq/internal` into `@zenstackhq/runtime` so as to have a single runtime dependency, [#70](https://github.com/zenstackhq/zenstack/issues/70).

- More accurate log for access policy violation, [#71](https://github.com/zenstackhq/zenstack/issues/71).

- `auth()` function's return type is now resolved to `User` model in ZModel, instead of `Any`, [#65](https://github.com/zenstackhq/zenstack/issues/65).

- Improved ZModel type checking, [#67](https://github.com/zenstackhq/zenstack/issues/67), [#46](https://github.com/zenstackhq/zenstack/issues/46), [#99](https://github.com/zenstackhq/zenstack/issues/99).

- Upgraded to Prisma 4.7.

### Breaking changes

- @zenstackhq/runtime doesn't export anything now.

Use @zenstackhq/runtime/types for type definitions shared between client and server, @zenstackhq/runtime/client for client-specific libaries (like React hooks), and @zenstackhq/runtime/server for server-specific libraries.

# 0.3.0 (2022-11-08)

### Features

- `@password` and `@omit` attribute support

- Configurable logging (to stdout and emitting as events)

### Fixes and improvements

- More robust policy checks

- Properly handles complex types like BigInt, Date, Decimal, etc.

- Makes sure Prisma schema is regenerated for related CLI commands

- Lower VSCode engine version requirement for the extension

- Better overall documentation

# 0.2.0 (2022-10-29)

### Features

- `ZModel` data modeling schema (an extension to [Prisma Schema](https://www.prisma.io/docs/concepts/components/prisma-schema))

- `zenstack` cli for generating RESTful services, auth adapters and React hooks from `ZModel`

- Policy engine that transforms policy rules into Prisma query conditions

- Runtime packages

- An initial set of tests
Loading