Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

# What's ZenStack

> Read full documentation at 👉🏻 https://zenstack.dev/v3.

ZenStack is a TypeScript database toolkit for developing full-stack or backend Node.js/Bun applications. It provides a unified data modeling and access solution with the following features:

- A modern schema-first ORM that's compatible with [Prisma](https://github.com/prisma/prisma)'s schema and API
Expand Down
4 changes: 2 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
- [x] Unique fields
- [x] Scalar fields
- [x] Relation fields
- [ ] JSON filtering
- [x] JSON filtering
- [ ] Full-text search
- [x] Sort
- [x] Scalar fields
Expand Down Expand Up @@ -86,7 +86,7 @@
- [x] Custom table name
- [x] Custom field name
- [x] Global omit
- [ ] DbNull vs JsonNull
- [x] DbNull vs JsonNull
- [ ] Migrate to tsdown
- [x] @default validation
- [x] Benchmark
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zenstack-v3",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"description": "ZenStack",
"packageManager": "[email protected]",
"type": "module",
Expand All @@ -24,7 +24,7 @@
"@eslint/js": "^9.29.0",
"@types/node": "catalog:",
"eslint": "~9.29.0",
"glob": "^11.0.2",
"glob": "^11.1.0",
"prettier": "^3.5.3",
"prisma": "catalog:",
"tsup": "^8.5.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/auth-adapters/better-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/better-auth",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"description": "ZenStack Better Auth Adapter. This adapter is modified from better-auth's Prisma adapter.",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publisher": "zenstack",
"displayName": "ZenStack CLI",
"description": "FullStack database toolkit with built-in access control and automatic API generation.",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"type": "module",
"author": {
"name": "ZenStack Team"
Expand Down
4 changes: 2 additions & 2 deletions packages/clients/tanstack-query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/tanstack-query",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"description": "TanStack Query Client for consuming ZenStack v3's CRUD service",
"main": "index.js",
"type": "module",
Expand All @@ -10,7 +10,7 @@
"lint": "eslint src --ext ts",
"test": "vitest run",
"pack": "pnpm pack",
"test:generate": "tsx scripts/generate.ts",
"test:generate": "tsx ../../../scripts/test-generate.ts tests",
"test:typecheck": "tsc --noEmit --project tsconfig.test.json"
},
"keywords": [
Expand Down
27 changes: 0 additions & 27 deletions packages/clients/tanstack-query/scripts/generate.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/common-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/common-helpers",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"description": "ZenStack Common Helpers",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/common-helpers/src/zip.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Zips two arrays into an array of tuples.
*/
export function zip<T, U>(arr1: T[], arr2: U[]): Array<[T, U]> {
export function zip<T, U>(arr1: readonly T[], arr2: readonly U[]): Array<[T, U]> {
const length = Math.min(arr1.length, arr2.length);
const result: Array<[T, U]> = [];
for (let i = 0; i < length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion packages/config/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/eslint-config",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"type": "module",
"private": true,
"license": "MIT"
Expand Down
2 changes: 1 addition & 1 deletion packages/config/typescript-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/typescript-config",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"private": true,
"license": "MIT"
}
2 changes: 1 addition & 1 deletion packages/config/vitest-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zenstackhq/vitest-config",
"type": "module",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"private": true,
"license": "MIT",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-zenstack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-zenstack",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"description": "Create a new ZenStack project",
"type": "module",
"scripts": {
Expand Down
8 changes: 2 additions & 6 deletions packages/language/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zenstackhq/language",
"description": "ZenStack ZModel language specification",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"license": "MIT",
"author": "ZenStack Team",
"files": [
Expand Down Expand Up @@ -67,12 +67,8 @@
"@zenstackhq/eslint-config": "workspace:*",
"@zenstackhq/typescript-config": "workspace:*",
"@zenstackhq/vitest-config": "workspace:*",
"glob": "^11.0.2",
"glob": "^11.1.0",
"langium-cli": "catalog:",
"tmp": "catalog:"
},
"volta": {
"node": "18.19.1",
"npm": "10.2.4"
}
}
2 changes: 1 addition & 1 deletion packages/orm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zenstackhq/orm",
"version": "3.0.0-beta.27",
"version": "3.0.0-beta.28",
"description": "ZenStack ORM",
"type": "module",
"scripts": {
Expand Down
Loading