From f255749accad1c2854e2bd966910f5ba844cf0f8 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 13 Jun 2024 13:59:44 +0200 Subject: [PATCH] [FIX] valibot upgrade --- CHANGELOG.md | 3 +++ package-lock.json | 24 ++++++++++++------------ package.json | 6 +++--- src/composables/use-form.ts | 2 +- 4 files changed, 19 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f876707..2ebdd5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ miru.ink / Changelog ==================== +## Version 0.0.20 - Experimental +- Fix: Missing `valibot` upgrade and typing issue. + ## Version 0.0.19 - Experimental - Update: package.json dependencies. diff --git a/package-lock.json b/package-lock.json index 478889d..a95463b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "miru.ink", - "version": "0.0.18", + "version": "0.0.19", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "miru.ink", - "version": "0.0.18", + "version": "0.0.19", "funding": [ "https://www.buymeacoffee.com/ratmd" ], @@ -14,15 +14,15 @@ "dependencies": { "@floating-ui/vue": "^1.0.6", "polyfill-crypto-methods": "^0.2.0", - "valibot": "^0.30.0" + "valibot": "^0.31.1" }, "devDependencies": { "@histoire/plugin-vue": "^0.17.17", "@rushstack/eslint-patch": "^1.10.3", "@tailwindcss/typography": "^0.5.13", "@tsconfig/node20": "^20.1.4", - "@types/node": "^20.12.12", - "@vitejs/plugin-vue": "^5.0.4", + "@types/node": "^20.14.2", + "@vitejs/plugin-vue": "^5.0.5", "@vue/eslint-config-typescript": "^13.0.0", "@vue/tsconfig": "^0.5.1", "autoprefixer": "^10.4.19", @@ -33,13 +33,13 @@ "postcss": "^8.4.38", "postcss-import": "^16.1.0", "rollup": "^4.18.0", - "tailwindcss": "^3.4.3", + "tailwindcss": "^3.4.4", "typescript": "~5.4.5", - "vite": "^5.2.11", + "vite": "^5.2.13", "vite-plugin-dts": "^3.9.1", - "vitepress": "^1.2.2", + "vitepress": "^1.2.3", "vue": "^3.4.27", - "vue-tsc": "^2.0.19" + "vue-tsc": "^2.0.21" }, "engines": { "node": "^20" @@ -6256,9 +6256,9 @@ } }, "node_modules/valibot": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.30.0.tgz", - "integrity": "sha512-5POBdbSkM+3nvJ6ZlyQHsggisfRtyT4tVTo1EIIShs6qCdXJnyWU5TJ68vr8iTg5zpOLjXLRiBqNx+9zwZz/rA==" + "version": "0.31.1", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-0.31.1.tgz", + "integrity": "sha512-2YYIhPrnVSz/gfT2/iXVTrSj92HwchCt9Cga/6hX4B26iCz9zkIsGTS0HjDYTZfTi1Un0X6aRvhBi1cfqs/i0Q==" }, "node_modules/validator": { "version": "13.12.0", diff --git a/package.json b/package.json index 3214b38..72df1a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "miru.ink", - "version": "0.0.19", + "version": "0.0.20", "description": "A Open-Source Vue3 / Tailwind CSS component framework and function library.", "keywords": [ "ui", @@ -45,7 +45,7 @@ "dependencies": { "@floating-ui/vue": "^1.0.6", "polyfill-crypto-methods": "^0.2.0", - "valibot": "^0.30.0" + "valibot": "^0.31.1" }, "devDependencies": { "@histoire/plugin-vue": "^0.17.17", @@ -78,4 +78,4 @@ "tailwindcss": "^3.3.0", "vue": "^3.4.0" } -} \ No newline at end of file +} diff --git a/src/composables/use-form.ts b/src/composables/use-form.ts index 7a83a82..6443c9f 100644 --- a/src/composables/use-form.ts +++ b/src/composables/use-form.ts @@ -24,7 +24,7 @@ export type ValidationResult = { }; export type ValidationRules = { - [Property in keyof T]: BaseSchema; + [Property in keyof T]: BaseSchema; } export type ValidationCallback = (rules: ValidationRules, values: Nullable) => boolean | SafeParseResult;