@zenstackhq/language 3.7.0 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +52 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +52 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/res/stdlib.zmodel +7 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@zenstackhq/language",
|
|
3
3
|
"displayName": "ZenStack Language Tooling",
|
|
4
4
|
"description": "ZenStack ZModel language specification",
|
|
5
|
-
"version": "3.7.
|
|
5
|
+
"version": "3.7.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "ZenStack Team",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"pluralize": "^8.0.0",
|
|
70
70
|
"ts-pattern": "^5.7.1",
|
|
71
71
|
"vscode-languageserver": "^9.0.1",
|
|
72
|
-
"@zenstackhq/common-helpers": "3.7.
|
|
72
|
+
"@zenstackhq/common-helpers": "3.7.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/pluralize": "^0.0.33",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"glob": "^11.1.0",
|
|
78
78
|
"langium-cli": "3.5.0",
|
|
79
79
|
"tmp": "^0.2.4",
|
|
80
|
-
"@zenstackhq/eslint-config": "3.7.
|
|
81
|
-
"@zenstackhq/tsdown-config": "3.7.
|
|
82
|
-
"@zenstackhq/vitest-config": "3.7.
|
|
83
|
-
"@zenstackhq/typescript-config": "3.7.
|
|
80
|
+
"@zenstackhq/eslint-config": "3.7.1",
|
|
81
|
+
"@zenstackhq/tsdown-config": "3.7.1",
|
|
82
|
+
"@zenstackhq/vitest-config": "3.7.1",
|
|
83
|
+
"@zenstackhq/typescript-config": "3.7.1"
|
|
84
84
|
},
|
|
85
85
|
"funding": "https://github.com/sponsors/zenstackhq",
|
|
86
86
|
"scripts": {
|
package/res/stdlib.zmodel
CHANGED
|
@@ -641,6 +641,13 @@ attribute @@prisma.passthrough(_ text: String)
|
|
|
641
641
|
*/
|
|
642
642
|
attribute @@delegate(_ discriminator: FieldReference)
|
|
643
643
|
|
|
644
|
+
/**
|
|
645
|
+
* Maps a delegate sub-model to a specific discriminator value. If not set the sub-model name is used as the discriminator value by default.
|
|
646
|
+
*
|
|
647
|
+
* @param value: A string literal or enum member used as the discriminator.
|
|
648
|
+
*/
|
|
649
|
+
attribute @@delegateMap(_ value: Any)
|
|
650
|
+
|
|
644
651
|
/**
|
|
645
652
|
* Used for specifying operator classes for GIN index.
|
|
646
653
|
*/
|