@regle/nuxt 0.6.1 → 0.7.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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "regle",
3
3
  "configKey": "regle",
4
- "version": "0.6.1",
4
+ "version": "0.7.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "3.2.0"
package/dist/module.mjs CHANGED
@@ -18,21 +18,11 @@ const module = defineNuxtModule({
18
18
  imports: ["withAsync", "withMessage", "withParams", "withTooltip"]
19
19
  });
20
20
  try {
21
- const regleZod = await import('@regle/zod');
22
- if (regleZod) {
21
+ const regleSchema = await import('@regle/schemas');
22
+ if (regleSchema) {
23
23
  addImportsSources({
24
- from: "@regle/zod",
25
- imports: ["useZodRegle"]
26
- });
27
- }
28
- } catch (e) {
29
- }
30
- try {
31
- const regleZod = await import('@regle/valibot');
32
- if (regleZod) {
33
- addImportsSources({
34
- from: "@regle/valibot",
35
- imports: ["useValibotRegle"]
24
+ from: "@regle/schemas",
25
+ imports: ["useRegleSchema", "inferSchema", "withDeps"]
36
26
  });
37
27
  }
38
28
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regle/nuxt",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "Regle nuxt module",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,12 +19,11 @@
19
19
  "dependencies": {
20
20
  "@nuxt/kit": "3.15.1",
21
21
  "@nuxt/schema": "3.15.1",
22
- "@regle/core": "0.6.1",
23
- "@regle/rules": "0.6.1"
22
+ "@regle/core": "0.7.0",
23
+ "@regle/rules": "0.7.0"
24
24
  },
25
25
  "optionalDependencies": {
26
- "@regle/zod": "0.6.1",
27
- "@regle/valibot": "0.6.1"
26
+ "@regle/schemas": "0.7.0"
28
27
  },
29
28
  "devDependencies": {
30
29
  "@nuxt/devtools": "1.7.0",