@zenstackhq/language 3.0.0 → 3.1.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zenstackhq/language",
3
3
  "description": "ZenStack ZModel language specification",
4
- "version": "3.0.0",
4
+ "version": "3.1.0",
5
5
  "license": "MIT",
6
6
  "author": "ZenStack Team",
7
7
  "files": [
@@ -50,7 +50,7 @@
50
50
  "pluralize": "^8.0.0",
51
51
  "ts-pattern": "^5.7.1",
52
52
  "vscode-languageserver": "^9.0.1",
53
- "@zenstackhq/common-helpers": "3.0.0"
53
+ "@zenstackhq/common-helpers": "3.1.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/pluralize": "^0.0.33",
@@ -58,9 +58,9 @@
58
58
  "glob": "^11.1.0",
59
59
  "langium-cli": "3.5.0",
60
60
  "tmp": "^0.2.3",
61
- "@zenstackhq/typescript-config": "3.0.0",
62
- "@zenstackhq/eslint-config": "3.0.0",
63
- "@zenstackhq/vitest-config": "3.0.0"
61
+ "@zenstackhq/typescript-config": "3.1.0",
62
+ "@zenstackhq/eslint-config": "3.1.0",
63
+ "@zenstackhq/vitest-config": "3.1.0"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "pnpm langium:generate && tsc --noEmit && tsup-node",
package/res/stdlib.zmodel CHANGED
@@ -83,25 +83,25 @@ function now(): DateTime {
83
83
  /**
84
84
  * Generates a globally unique identifier based on the UUID specs.
85
85
  */
86
- function uuid(version: Int?): String {
86
+ function uuid(version: Int?, format: String?): String {
87
87
  } @@@expressionContext([DefaultValue])
88
88
 
89
89
  /**
90
90
  * Generates a globally unique identifier based on the CUID spec.
91
91
  */
92
- function cuid(version: Int?): String {
92
+ function cuid(version: Int?, format: String?): String {
93
93
  } @@@expressionContext([DefaultValue])
94
94
 
95
95
  /**
96
96
  * Generates an identifier based on the nanoid spec.
97
97
  */
98
- function nanoid(length: Int?): String {
98
+ function nanoid(length: Int?, format: String?): String {
99
99
  } @@@expressionContext([DefaultValue])
100
100
 
101
101
  /**
102
102
  * Generates an identifier based on the ulid spec.
103
103
  */
104
- function ulid(): String {
104
+ function ulid(format: String?): String {
105
105
  } @@@expressionContext([DefaultValue])
106
106
 
107
107
  /**