@regle/nuxt 0.4.9 → 0.5.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/README.md CHANGED
@@ -22,5 +22,23 @@ Install the module to your Nuxt application with one command:
22
22
  npx nuxi module add regle
23
23
  ```
24
24
 
25
+ ## 📚 Documentation
25
26
 
27
+ [![Documentation](https://raw.githubusercontent.com/victorgarciaesgi/regle/refs/heads/main/.github/images/redirectDoc.svg)](https://regle.vercel.app/)
28
+
29
+ ## ðŸŽŪ Play with it
30
+
31
+ | Simple demo | Advanced Demo |
32
+ | ------------- | ------------- |
33
+ | [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/~/github.com/victorgarciaesgi/regle-examples/tree/main/examples/simple-example?file=examples/simple-example/src/App.vue&configPath=examples/simple-example) | [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/~/github.com/victorgarciaesgi/regle-examples/tree/main/examples/advanced-example?file=examples/advanced-example/src/App.vue&configPath=examples/advanced-example) |
34
+
35
+ ## 🧰 Features
36
+ - ✅ Typescript first
37
+ - ðŸĪ– 100% type inference
38
+ - 📖 Model based validation
39
+ - 🊗 Extensible
40
+ - ðŸĶļ‍♂ïļ [Zod](https://zod.dev/) support
41
+ - ðŸĪ– [Valibot](https://valibot.dev/) support
42
+ - ðŸŠķ Light(~7kb gzip) and 0 dependencies
43
+ - 🛒 Collection validation
26
44
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "regle",
3
3
  "configKey": "regle",
4
- "version": "0.4.9",
4
+ "version": "0.5.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "3.0.1"
package/dist/module.mjs CHANGED
@@ -27,6 +27,16 @@ const module = defineNuxtModule({
27
27
  }
28
28
  } catch (e) {
29
29
  }
30
+ try {
31
+ const regleZod = await import('@regle/valibot');
32
+ if (regleZod) {
33
+ addImportsSources({
34
+ from: "@regle/valibot",
35
+ imports: ["useValibotRegle"]
36
+ });
37
+ }
38
+ } catch (e) {
39
+ }
30
40
  }
31
41
  });
32
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regle/nuxt",
3
- "version": "0.4.9",
3
+ "version": "0.5.0",
4
4
  "description": "Regle nuxt module",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,19 +19,20 @@
19
19
  "dependencies": {
20
20
  "@nuxt/kit": "3.14.1592",
21
21
  "@nuxt/schema": "3.14.1592",
22
- "@regle/core": "0.4.9",
23
- "@regle/rules": "0.4.9"
22
+ "@regle/core": "0.5.0",
23
+ "@regle/rules": "0.5.0"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@regle/zod": "0.4.9"
26
+ "@regle/valibot": "0.5.0",
27
+ "@regle/zod": "0.5.0"
27
28
  },
28
29
  "devDependencies": {
29
- "@nuxt/devtools": "1.6.3",
30
- "@nuxt/eslint-config": "0.7.2",
30
+ "@nuxt/devtools": "1.6.4",
31
+ "@nuxt/eslint-config": "0.7.4",
31
32
  "@nuxt/module-builder": "0.8.4",
32
33
  "@nuxt/schema": "3.14.1592",
33
34
  "@nuxt/test-utils": "3.15.1",
34
- "@types/node": "22.9.3",
35
+ "@types/node": "22.10.2",
35
36
  "c12": "2.0.1",
36
37
  "changelogen": "0.5.7",
37
38
  "eslint": "9.15.0",
@@ -40,13 +41,13 @@
40
41
  "nuxt": "3.14.1592",
41
42
  "prettier": "3.3.3",
42
43
  "tsup": "8.3.5",
43
- "type-fest": "4.30.0",
44
+ "type-fest": "4.30.2",
44
45
  "typescript": "5.6.3",
46
+ "unbuild": "3.0.1",
45
47
  "vitest": "2.1.8",
46
48
  "vue": "3.5.13",
47
49
  "vue-eslint-parser": "9.4.3",
48
- "vue-tsc": "2.1.10",
49
- "unbuild": "3.0.1"
50
+ "vue-tsc": "2.1.10"
50
51
  },
51
52
  "publishConfig": {
52
53
  "access": "public"