@regle/schemas 1.11.0-beta.2 → 1.11.0-beta.3
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/regle-schemas.js +2 -4
- package/package.json +7 -7
package/dist/regle-schemas.js
CHANGED
|
@@ -27,8 +27,6 @@ function isEmpty(value, considerEmptyArrayInvalid = true) {
|
|
|
27
27
|
return !String(value).length;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
const RegleRuleSymbol = Symbol("regle-rule");
|
|
31
|
-
|
|
32
30
|
function getRegExpFlags(regExp) {
|
|
33
31
|
if (typeof regExp.source.flags == "string") return regExp.source.flags;
|
|
34
32
|
else {
|
|
@@ -133,7 +131,7 @@ function createUseRegleSchemaComposable(options, shortcuts) {
|
|
|
133
131
|
const { syncState = {
|
|
134
132
|
onUpdate: false,
|
|
135
133
|
onValidate: false
|
|
136
|
-
}
|
|
134
|
+
}, ...defaultOptions } = options$1 ?? {};
|
|
137
135
|
const { onUpdate: syncOnUpdate = false, onValidate: syncOnValidate = false } = syncState;
|
|
138
136
|
const resolvedOptions = {
|
|
139
137
|
...globalOptions,
|
|
@@ -162,7 +160,7 @@ function createUseRegleSchemaComposable(options, shortcuts) {
|
|
|
162
160
|
$rule: "schema",
|
|
163
161
|
$message: issue.message
|
|
164
162
|
};
|
|
165
|
-
}).forEach(({ isArray, $path
|
|
163
|
+
}).forEach(({ isArray, $path, ...issue }) => {
|
|
166
164
|
setObjectError(output, $path, [issue], isArray);
|
|
167
165
|
});
|
|
168
166
|
return output;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regle/schemas",
|
|
3
|
-
"version": "1.11.0-beta.
|
|
3
|
+
"version": "1.11.0-beta.3",
|
|
4
4
|
"description": "Schemas adapter for Regle",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@standard-schema/spec": "1.0.0",
|
|
7
|
-
"@regle/core": "1.11.0-beta.
|
|
8
|
-
"@regle/rules": "1.11.0-beta.
|
|
7
|
+
"@regle/core": "1.11.0-beta.3",
|
|
8
|
+
"@regle/rules": "1.11.0-beta.3"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
11
|
"valibot": "^1.0.0",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@total-typescript/ts-reset": "0.6.1",
|
|
28
|
-
"@types/node": "22.19.
|
|
28
|
+
"@types/node": "22.19.1",
|
|
29
29
|
"@vue/test-utils": "2.4.6",
|
|
30
30
|
"prettier": "3.6.2",
|
|
31
|
-
"tsdown": "0.16.
|
|
31
|
+
"tsdown": "0.16.6",
|
|
32
32
|
"type-fest": "5.2.0",
|
|
33
33
|
"typescript": "5.9.3",
|
|
34
34
|
"valibot": "1.1.0",
|
|
35
35
|
"vitest": "4.0.13",
|
|
36
|
-
"vue": "3.5.
|
|
37
|
-
"vue-tsc": "3.1.
|
|
36
|
+
"vue": "3.5.24",
|
|
37
|
+
"vue-tsc": "3.1.5",
|
|
38
38
|
"zod": "4.1.12"
|
|
39
39
|
},
|
|
40
40
|
"type": "module",
|