mhz-helpers 1.2.21 → 1.2.22

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.
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { RuleItem } from 'async-validator';
3
3
  import { TLocale } from '../locales/types';
4
- export declare function useValidator<T>(formData: Ref<T>, rules: Partial<{
4
+ export declare function useValidate<T>(formData: Ref<T>, rules: Partial<{
5
5
  [fieldName in keyof T]: (RuleItem | ((locale: TLocale) => RuleItem))[];
6
6
  }>, locale?: TLocale): {
7
7
  error: (field: string) => string | undefined;
package/dist/index.js CHANGED
@@ -5976,7 +5976,7 @@ export {
5976
5976
  fr as useQueryClient,
5977
5977
  Ja as useRouteId,
5978
5978
  su as useTimer,
5979
- Ga as useValidator,
5979
+ Ga as useValidate,
5980
5980
  Na as vueQueryOptions,
5981
5981
  La as wait,
5982
5982
  Qa as withSetup
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mhz-helpers",
3
3
  "description": "Mhz helpers and composables",
4
- "version": "1.2.21",
4
+ "version": "1.2.22",
5
5
  "author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@eslint/js": "9.37.0",
37
- "@types/node": "24.6.2",
37
+ "@types/node": "24.7.1",
38
38
  "@vitejs/plugin-vue": "6.0.1",
39
39
  "@vitest/coverage-istanbul": "3.2.4",
40
40
  "eslint": "9.37.0",
@@ -46,7 +46,7 @@
46
46
  "eslint-plugin-unicorn": "61.0.2",
47
47
  "eslint-plugin-vue": "10.5.0",
48
48
  "globals": "16.4.0",
49
- "happy-dom": "19.0.2",
49
+ "happy-dom": "20.0.0",
50
50
  "postcss-html": "1.8.0",
51
51
  "prettier": "3.6.2",
52
52
  "stylelint": "16.25.0",
@@ -56,20 +56,20 @@
56
56
  "stylelint-order": "7.0.0",
57
57
  "stylelint-prettier": "5.0.3",
58
58
  "typescript": "5.9.3",
59
- "typescript-eslint": "8.45.0",
59
+ "typescript-eslint": "8.46.0",
60
60
  "vite": "7.1.9",
61
61
  "vite-plugin-dts": "4.5.4",
62
62
  "vitest": "3.2.4",
63
63
  "vue-eslint-parser": "10.2.0",
64
64
  "vue-linters-config": "0.5.4",
65
- "vue-tsc": "3.1.0"
65
+ "vue-tsc": "3.1.1"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "vue": "3.5.22",
69
69
  "vue-router": "4.5.1"
70
70
  },
71
71
  "engines": {
72
- "npm": ">=11.5.1",
73
- "node": ">=24.6.0"
72
+ "npm": ">=11.6.1",
73
+ "node": ">=24.10.0"
74
74
  }
75
75
  }