@regle/schemas 1.17.0 → 1.17.2
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/README.md +4 -6
- package/dist/regle-schemas.d.ts +1 -1
- package/dist/regle-schemas.js +1 -1
- package/dist/regle-schemas.min.js +1 -1
- package/package.json +50 -51
package/README.md
CHANGED
|
@@ -6,20 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
# Regle
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
Regle \ʁɛɡl\ (French word for 'rule') is a Typescript-first model-based validation library for Vue 3.
|
|
11
10
|
It's heavily inspired by Vuelidate.
|
|
12
11
|
|
|
13
|
-
|
|
14
12
|
## 📚 Documentation
|
|
15
13
|
|
|
16
14
|
[](https://reglejs.dev/)
|
|
17
15
|
|
|
18
16
|
## 🎮 Play with it
|
|
19
17
|
|
|
20
|
-
| Playground
|
|
21
|
-
|
|
|
22
|
-
| <a target='_blank' href="https://play.reglejs.dev"><img width="180" src="https://raw.githubusercontent.com/victorgarciaesgi/regle/refs/heads/main/.github/images/regle-playground-button.svg" /></a> |
|
|
18
|
+
| Playground | Simple demo | Advanced Demo |
|
|
19
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
20
|
+
| <a target='_blank' href="https://play.reglejs.dev"><img width="180" src="https://raw.githubusercontent.com/victorgarciaesgi/regle/refs/heads/main/.github/images/regle-playground-button.svg" /></a> | [](https://stackblitz.com/~/github.com/victorgarciaesgi/regle-examples/tree/main/examples/simple-example?file=examples/simple-example/src/App.vue&configPath=examples/simple-example) | [](https://stackblitz.com/~/github.com/victorgarciaesgi/regle-examples/tree/main/examples/advanced-example?file=examples/advanced-example/src/App.vue&configPath=examples/advanced-example) |
|
|
23
21
|
|
|
24
22
|
## ✨ Features
|
|
25
23
|
|
|
@@ -35,4 +33,4 @@ It's heavily inspired by Vuelidate.
|
|
|
35
33
|
- ✅ **Alternative validation**: [Standard Schema](https://standardschema.dev/) spec validation support.
|
|
36
34
|
- 🦸♂️ [Zod](https://zod.dev/)
|
|
37
35
|
- 🤖 [Valibot](https://valibot.dev/)
|
|
38
|
-
- 🚢 [ArkType](https://arktype.io)
|
|
36
|
+
- 🚢 [ArkType](https://arktype.io)
|
package/dist/regle-schemas.d.ts
CHANGED
package/dist/regle-schemas.js
CHANGED
package/package.json
CHANGED
|
@@ -1,44 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regle/schemas",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.2",
|
|
4
4
|
"description": "Schemas adapter for Regle",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
},
|
|
11
|
-
"peerDependencies": {
|
|
12
|
-
"valibot": "^1.0.0",
|
|
13
|
-
"zod": "^3.24.0 || ^4.0.0",
|
|
14
|
-
"arktype": "^2.1.0"
|
|
15
|
-
},
|
|
16
|
-
"peerDependenciesMeta": {
|
|
17
|
-
"valibot": {
|
|
18
|
-
"optional": true
|
|
19
|
-
},
|
|
20
|
-
"zod": {
|
|
21
|
-
"optional": true
|
|
22
|
-
},
|
|
23
|
-
"arktype": {
|
|
24
|
-
"optional": true
|
|
25
|
-
}
|
|
5
|
+
"homepage": "https://reglejs.dev/",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Victor Garcia",
|
|
9
|
+
"url": "https://github.com/victorgarciaesgi"
|
|
26
10
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"@vue/test-utils": "2.4.6",
|
|
31
|
-
"prettier": "3.7.4",
|
|
32
|
-
"tsdown": "0.18.3",
|
|
33
|
-
"type-fest": "5.3.1",
|
|
34
|
-
"typescript": "5.9.3",
|
|
35
|
-
"valibot": "1.2.0",
|
|
36
|
-
"vitest": "4.0.16",
|
|
37
|
-
"vue": "3.5.26",
|
|
38
|
-
"vue-tsc": "3.2.1",
|
|
39
|
-
"zod": "4.2.1"
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/victorgarciaesgi/regle.git"
|
|
40
14
|
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"LICENSE",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
41
20
|
"type": "module",
|
|
21
|
+
"main": "./dist/regle-schemas.js",
|
|
22
|
+
"module": "./dist/regle-schemas.js",
|
|
23
|
+
"types": "./dist/regle-schemas.d.ts",
|
|
42
24
|
"exports": {
|
|
43
25
|
".": {
|
|
44
26
|
"types": "./dist/regle-schemas.d.ts",
|
|
@@ -49,27 +31,44 @@
|
|
|
49
31
|
"./package.json": "./package.json",
|
|
50
32
|
"./dist/*": "./dist/*"
|
|
51
33
|
},
|
|
52
|
-
"main": "./dist/regle-schemas.js",
|
|
53
|
-
"module": "./dist/regle-schemas.js",
|
|
54
|
-
"types": "./dist/regle-schemas.d.ts",
|
|
55
|
-
"files": [
|
|
56
|
-
"dist",
|
|
57
|
-
"LICENSE",
|
|
58
|
-
"README.md"
|
|
59
|
-
],
|
|
60
34
|
"publishConfig": {
|
|
61
35
|
"access": "public"
|
|
62
36
|
},
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@standard-schema/spec": "1.1.0",
|
|
39
|
+
"type-fest": "5.4.1",
|
|
40
|
+
"@regle/core": "1.17.2",
|
|
41
|
+
"@regle/rules": "1.17.2"
|
|
66
42
|
},
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
"
|
|
70
|
-
"
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@total-typescript/ts-reset": "0.6.1",
|
|
45
|
+
"@types/node": "22.19.7",
|
|
46
|
+
"@vue/test-utils": "2.4.6",
|
|
47
|
+
"tsdown": "0.18.4",
|
|
48
|
+
"type-fest": "5.4.1",
|
|
49
|
+
"typescript": "5.9.3",
|
|
50
|
+
"valibot": "1.2.0",
|
|
51
|
+
"vitest": "4.0.17",
|
|
52
|
+
"vue": "3.5.27",
|
|
53
|
+
"vue-tsc": "3.2.2",
|
|
54
|
+
"zod": "4.3.5"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"arktype": "^2.1.0",
|
|
58
|
+
"valibot": "^1.0.0",
|
|
59
|
+
"zod": "^3.24.0 || ^4.0.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependenciesMeta": {
|
|
62
|
+
"valibot": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"zod": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"arktype": {
|
|
69
|
+
"optional": true
|
|
70
|
+
}
|
|
71
71
|
},
|
|
72
|
-
"license": "MIT",
|
|
73
72
|
"scripts": {
|
|
74
73
|
"typecheck": "tsc --noEmit",
|
|
75
74
|
"build": "tsdown",
|