Skip to content

Commit 0dfc81f

Browse files
authored
merge dev to main (v1.10.0) (#1069)
2 parents d0eaf25 + b60627c commit 0dfc81f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1315
-601
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ jobs:
9797
run: pnpm install --frozen-lockfile
9898

9999
- name: Test
100-
run: pnpm run test-ci
100+
run: pnpm run test-scaffold && pnpm run test-ci

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ dist
77
.npmcache
88
coverage
99
.build
10+
.test

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ I want to think you first for considering contributing to ZenStack 🙏🏻. It'
3535
pnpm build
3636
```
3737

38+
1. Scaffold the project used for testing
39+
40+
```bash
41+
pnpm test-scaffold
42+
```
43+
44+
You only need to run this command once.
45+
3846
1. Run tests
3947

4048
```bash

jest.config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33
* https://jestjs.io/docs/configuration
44
*/
55

6+
import path from 'path';
7+
68
export default {
79
// Automatically clear mock calls, instances, contexts and results before every test
810
clearMocks: true,
911

12+
globalSetup: path.join(__dirname, './script/test-global-setup.ts'),
13+
14+
setupFiles: [path.join(__dirname, './script/set-test-env.ts')],
15+
1016
// Indicates whether the coverage information should be collected while executing the test
1117
collectCoverage: true,
1218

1319
// The directory where Jest should output its coverage files
14-
coverageDirectory: 'tests/coverage',
20+
coverageDirectory: path.join(__dirname, '.test/coverage'),
1521

1622
// An array of regexp pattern strings used to skip coverage collection
1723
coveragePathIgnorePatterns: ['/node_modules/', '/tests/'],

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "zenstack-monorepo",
3-
"version": "1.9.0",
3+
"version": "1.10.0",
44
"description": "",
55
"scripts": {
66
"build": "pnpm -r build",
77
"lint": "pnpm -r lint",
8-
"test": "ZENSTACK_TEST=1 pnpm -r run test --silent --forceExit",
9-
"test-ci": "ZENSTACK_TEST=1 pnpm -r run test --silent --forceExit",
8+
"test": "pnpm -r --parallel run test --silent --forceExit",
9+
"test-ci": "pnpm -r --parallel run test --silent --forceExit",
10+
"test-scaffold": "tsx script/test-scaffold.ts",
1011
"publish-all": "pnpm --filter \"./packages/**\" -r publish --access public",
1112
"publish-preview": "pnpm --filter \"./packages/**\" -r publish --force --registry https://preview.registry.zenstack.dev/",
1213
"unpublish-preview": "pnpm --recursive --shell-mode exec -- npm unpublish -f --registry https://preview.registry.zenstack.dev/ \"\\$PNPM_PACKAGE_NAME\""
@@ -30,6 +31,7 @@
3031
"ts-jest": "^29.1.1",
3132
"ts-node": "^10.9.1",
3233
"tsup": "^8.0.1",
34+
"tsx": "^4.7.1",
3335
"typescript": "^5.3.2"
3436
}
3537
}

packages/README.md

Lines changed: 0 additions & 122 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22

33
## [Unreleased]
4+
### Added
5+
- Added support to complex usage of `@@index` attribute like `@@index([content(ops: raw("gin_trgm_ops"))], type: Gin)`.
6+
### Fixed
7+
- Fixed several ZModel validation issues related to model inheritance.
48

9+
## 1.7.0
510
### Added
611
- Auto-completion is now supported inside attributes.

packages/ide/jetbrains/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99
}
1010

1111
group = "dev.zenstack"
12-
version = "1.9.0"
12+
version = "1.10.0"
1313

1414
repositories {
1515
mavenCentral()

packages/ide/jetbrains/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jetbrains",
3-
"version": "1.9.0",
3+
"version": "1.10.0",
44
"displayName": "ZenStack JetBrains IDE Plugin",
55
"description": "ZenStack JetBrains IDE plugin",
66
"homepage": "https://zenstack.dev",

packages/language/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zenstackhq/language",
3-
"version": "1.9.0",
3+
"version": "1.10.0",
44
"displayName": "ZenStack modeling language compiler",
55
"description": "ZenStack modeling language compiler",
66
"homepage": "https://zenstack.dev",

0 commit comments

Comments
 (0)