From 79d42dd97b3ff39b314a817bb9a9626e07a90445 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 20 Aug 2024 12:41:17 +0200 Subject: [PATCH] chore(deps): update `@vueuse/*` and `fuse.js` --- docs/content/2.components/command-palette.md | 2 +- docs/package.json | 2 +- package.json | 8 +- pnpm-lock.yaml | 123 ++++++++++++++----- src/runtime/types/command-palette.d.ts | 4 +- 5 files changed, 101 insertions(+), 38 deletions(-) diff --git a/docs/content/2.components/command-palette.md b/docs/content/2.components/command-palette.md index fe2981a7..934b5941 100644 --- a/docs/content/2.components/command-palette.md +++ b/docs/content/2.components/command-palette.md @@ -246,7 +246,7 @@ When accessing the component via a template ref, you can use the following: ::field{name="updateQuery (query)"} Updates the current query. :: - ::field{name="results" type="ComputedRef[]>"} + ::field{name="results" type="ComputedRef[]>"} The results exposed by [useFuse](https://vueuse.org/integrations/useFuse/#usefuse). :: ::field{name="comboboxApi"} diff --git a/docs/package.json b/docs/package.json index c7177740..fd62bfbe 100644 --- a/docs/package.json +++ b/docs/package.json @@ -14,7 +14,7 @@ "@nuxt/ui-pro": "npm:@nuxt/ui-pro-edge@1.3.1-28698404.4d54eb2", "@nuxtjs/plausible": "^1.0.2", "@octokit/rest": "^21.0.2", - "@vueuse/nuxt": "^10.11.1", + "@vueuse/nuxt": "^11.0.1", "date-fns": "^3.6.0", "eslint": "^8.57.0", "joi": "^17.13.3", diff --git a/package.json b/package.json index e110ddf1..4e37ba4f 100644 --- a/package.json +++ b/package.json @@ -46,11 +46,11 @@ "@tailwindcss/container-queries": "^0.1.1", "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.14", - "@vueuse/core": "^10.11.1", - "@vueuse/integrations": "^10.11.1", - "@vueuse/math": "^10.11.1", + "@vueuse/core": "^11.0.1", + "@vueuse/integrations": "^11.0.1", + "@vueuse/math": "^11.0.1", "defu": "^6.1.4", - "fuse.js": "^6.6.2", + "fuse.js": "^7.0.0", "ohash": "^1.1.3", "pathe": "^1.1.2", "scule": "^1.3.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d818a204..01ab42ab 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,20 +49,20 @@ importers: specifier: ^0.5.14 version: 0.5.14(tailwindcss@3.4.10) '@vueuse/core': - specifier: ^10.11.1 - version: 10.11.1(vue@3.4.34(typescript@5.5.4)) + specifier: ^11.0.1 + version: 11.0.1(vue@3.4.34(typescript@5.5.4)) '@vueuse/integrations': - specifier: ^10.11.1 - version: 10.11.1(fuse.js@6.6.2)(vue@3.4.34(typescript@5.5.4)) + specifier: ^11.0.1 + version: 11.0.1(fuse.js@7.0.0)(vue@3.4.34(typescript@5.5.4)) '@vueuse/math': - specifier: ^10.11.1 - version: 10.11.1(vue@3.4.34(typescript@5.5.4)) + specifier: ^11.0.1 + version: 11.0.1(vue@3.4.34(typescript@5.5.4)) defu: specifier: ^6.1.4 version: 6.1.4 fuse.js: - specifier: ^6.6.2 - version: 6.6.2 + specifier: ^7.0.0 + version: 7.0.0 ohash: specifier: ^1.1.3 version: 1.1.3 @@ -173,8 +173,8 @@ importers: specifier: ^21.0.2 version: 21.0.2 '@vueuse/nuxt': - specifier: ^10.11.1 - version: 10.11.1(magicast@0.3.4)(nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@20.14.12)(eslint@8.57.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.19.0)(terser@5.31.3)(typescript@5.5.4)(vite@5.3.5(@types/node@20.14.12)(terser@5.31.3))(vue-tsc@2.0.29(typescript@5.5.4)))(rollup@4.19.0)(vue@3.4.34(typescript@5.5.4)) + specifier: ^11.0.1 + version: 11.0.1(magicast@0.3.4)(nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@20.14.12)(eslint@8.57.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.19.0)(terser@5.31.3)(typescript@5.5.4)(vite@5.3.5(@types/node@20.14.12)(terser@5.31.3))(vue-tsc@2.0.29(typescript@5.5.4)))(rollup@4.19.0)(vue@3.4.34(typescript@5.5.4)) date-fns: specifier: ^3.6.0 version: 3.6.0 @@ -2146,26 +2146,29 @@ packages: '@vueuse/core@10.11.1': resolution: {integrity: sha512-guoy26JQktXPcz+0n3GukWIy/JDNKti9v6VEMu6kV2sYBsWuGiTU8OWdg+ADfUbHg3/3DlqySDe7JmdHrktiww==} + '@vueuse/core@11.0.1': + resolution: {integrity: sha512-YTrekI18WwEyP3h168Fir94G/HNC27wvXJI21Alm0sPOwvhihfkrvHIe+5PNJq+MpgWdRcsjvE/38JaoKrgZhQ==} + '@vueuse/head@2.0.0': resolution: {integrity: sha512-ykdOxTGs95xjD4WXE4na/umxZea2Itl0GWBILas+O4oqS7eXIods38INvk3XkJKjqMdWPcpCyLX/DioLQxU1KA==} peerDependencies: vue: '>=2.7 || >=3' - '@vueuse/integrations@10.11.1': - resolution: {integrity: sha512-Y5hCGBguN+vuVYTZmdd/IMXLOdfS60zAmDmFYc4BKBcMUPZH1n4tdyDECCPjXm0bNT3ZRUy1xzTLGaUje8Xyaw==} + '@vueuse/integrations@11.0.1': + resolution: {integrity: sha512-V/FQTS/aiV6RTFXOj8cXgqhtNJBvxvbHeLElOUR7N7F3Kr0btS+dkymLB54mFd0Or6uEGpgwwb41cs/q2/rdOg==} peerDependencies: async-validator: ^4 axios: ^1 - change-case: ^4 - drauu: ^0.3 + change-case: ^5 + drauu: ^0.4 focus-trap: ^7 - fuse.js: ^6 + fuse.js: ^7 idb-keyval: ^6 - jwt-decode: ^3 + jwt-decode: ^4 nprogress: ^0.2 qrcode: ^1.5 sortablejs: ^1 - universal-cookie: ^6 + universal-cookie: ^7 peerDependenciesMeta: async-validator: optional: true @@ -2192,8 +2195,8 @@ packages: universal-cookie: optional: true - '@vueuse/math@10.11.1': - resolution: {integrity: sha512-fkdaNEOn22Vjz/A3vNWO2+eysunlK74ODmJRosweKMEA07oi5WH/CYQ8oGxu2Fa641fhs4hXS7XxdALsGVYlpw==} + '@vueuse/math@11.0.1': + resolution: {integrity: sha512-D4pWeRR/xH9vF+YZjHAjF7GOR7kp7D7pj1CGWaVmvx4zk1RPt/DPpPqV0fdR7R81XMZDvj6lISqcU79m3kraVg==} '@vueuse/metadata@10.11.0': resolution: {integrity: sha512-kQX7l6l8dVWNqlqyN3ePW3KmjCQO3ZMgXuBMddIu83CmucrsBfXlH+JoviYyRBws/yLTQO8g3Pbw+bdIoVm4oQ==} @@ -2201,17 +2204,28 @@ packages: '@vueuse/metadata@10.11.1': resolution: {integrity: sha512-IGa5FXd003Ug1qAZmyE8wF3sJ81xGLSqTqtQ6jaVfkeZ4i5kS2mwQF61yhVqojRnenVew5PldLyRgvdl4YYuSw==} + '@vueuse/metadata@11.0.1': + resolution: {integrity: sha512-dTFvuHFAjLYOiSd+t9Sk7xUiuL6jbfay/eX+g+jaipXXlwKur2VCqBCZX+jfu+2vROUGcUsdn3fJR9KkpadIOg==} + '@vueuse/nuxt@10.11.1': resolution: {integrity: sha512-UiaYSIwOkmUVn8Gl1AqtLWYR12flO+8sEu9X0Y1fNjSR7EWy9jMuiCvOGqwtoeTsqfHrivl0d5HfMzr11GFnMA==} peerDependencies: nuxt: ^3.0.0 + '@vueuse/nuxt@11.0.1': + resolution: {integrity: sha512-2utGiRItdFV6/ED39YMyVl/mWFg/Hfx21sVTpo/uv+ZVwg38bLP79Ziqy21WXow18t1E9NEOirU9KhB655ERug==} + peerDependencies: + nuxt: ^3.0.0 + '@vueuse/shared@10.11.0': resolution: {integrity: sha512-fyNoIXEq3PfX1L3NkNhtVQUSRtqYwJtJg+Bp9rIzculIZWHTkKSysujrOk2J+NrRulLTQH9+3gGSfYLWSEWU1A==} '@vueuse/shared@10.11.1': resolution: {integrity: sha512-LHpC8711VFZlDaYUXEBbFBCQ7GS3dVU9mjOhhMhXP6txTV4EhYQg/KGnQuvt/sPAtoUKq7VVUnL6mVtFoL42sA==} + '@vueuse/shared@11.0.1': + resolution: {integrity: sha512-eAPf5CQB3HR0S76HqrhjBqFYstZfiHWZq8xF9EQmobGBkrhPfErJEhr8aMNQMqd6MkENIx2pblIEfJGlHpClug==} + JSONStream@1.3.5: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==} hasBin: true @@ -3557,8 +3571,8 @@ packages: function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} - fuse.js@6.6.2: - resolution: {integrity: sha512-cJaJkxCCxC8qIIcPBF9yGxY0W/tVZS3uEISDxhYIdtk8OL93pe+6Zj7LjCqVV4dzbqcriOZ+kQ/NE4RXZHsIGA==} + fuse.js@7.0.0: + resolution: {integrity: sha512-14F4hBIxqKvD4Zz/XjDc3y94mNZN6pRv3U13Udo0lNLCWRBUsrMv2xwcF/y/Z5sV6+FQW+/ow68cHpm4sunt8Q==} engines: {node: '>=10'} gauge@3.0.2: @@ -6561,6 +6575,17 @@ packages: vue-component-type-helpers@2.0.29: resolution: {integrity: sha512-58i+ZhUAUpwQ+9h5Hck0D+jr1qbYl4voRt5KffBx8qzELViQ4XdT/Tuo+mzq8u63teAG8K0lLaOiL5ofqW38rg==} + vue-demi@0.14.10: + resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==} + engines: {node: '>=12'} + hasBin: true + peerDependencies: + '@vue/composition-api': ^1.0.0-rc.1 + vue: ^3.0.0-0 || ^2.6.0 + peerDependenciesMeta: + '@vue/composition-api': + optional: true + vue-demi@0.14.9: resolution: {integrity: sha512-dC1TJMODGM8lxhP6wLToncaDPPNB3biVxxRDuNCYpuXwi70ou7NsGd97KVTJ2omepGId429JZt8oaZKeXbqxwg==} engines: {node: '>=12'} @@ -9293,6 +9318,16 @@ snapshots: - '@vue/composition-api' - vue + '@vueuse/core@11.0.1(vue@3.4.34(typescript@5.5.4))': + dependencies: + '@types/web-bluetooth': 0.0.20 + '@vueuse/metadata': 11.0.1 + '@vueuse/shared': 11.0.1(vue@3.4.34(typescript@5.5.4)) + vue-demi: 0.14.10(vue@3.4.34(typescript@5.5.4)) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + '@vueuse/head@2.0.0(vue@3.4.34(typescript@5.5.4))': dependencies: '@unhead/dom': 1.9.16 @@ -9301,21 +9336,21 @@ snapshots: '@unhead/vue': 1.9.16(vue@3.4.34(typescript@5.5.4)) vue: 3.4.34(typescript@5.5.4) - '@vueuse/integrations@10.11.1(fuse.js@6.6.2)(vue@3.4.34(typescript@5.5.4))': + '@vueuse/integrations@11.0.1(fuse.js@7.0.0)(vue@3.4.34(typescript@5.5.4))': dependencies: - '@vueuse/core': 10.11.1(vue@3.4.34(typescript@5.5.4)) - '@vueuse/shared': 10.11.1(vue@3.4.34(typescript@5.5.4)) - vue-demi: 0.14.9(vue@3.4.34(typescript@5.5.4)) + '@vueuse/core': 11.0.1(vue@3.4.34(typescript@5.5.4)) + '@vueuse/shared': 11.0.1(vue@3.4.34(typescript@5.5.4)) + vue-demi: 0.14.10(vue@3.4.34(typescript@5.5.4)) optionalDependencies: - fuse.js: 6.6.2 + fuse.js: 7.0.0 transitivePeerDependencies: - '@vue/composition-api' - vue - '@vueuse/math@10.11.1(vue@3.4.34(typescript@5.5.4))': + '@vueuse/math@11.0.1(vue@3.4.34(typescript@5.5.4))': dependencies: - '@vueuse/shared': 10.11.1(vue@3.4.34(typescript@5.5.4)) - vue-demi: 0.14.9(vue@3.4.34(typescript@5.5.4)) + '@vueuse/shared': 11.0.1(vue@3.4.34(typescript@5.5.4)) + vue-demi: 0.14.10(vue@3.4.34(typescript@5.5.4)) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -9324,6 +9359,8 @@ snapshots: '@vueuse/metadata@10.11.1': {} + '@vueuse/metadata@11.0.1': {} + '@vueuse/nuxt@10.11.1(magicast@0.3.4)(nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@20.14.12)(eslint@8.57.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.19.0)(terser@5.31.3)(typescript@5.5.4)(vite@5.3.5(@types/node@20.14.12)(terser@5.31.3))(vue-tsc@2.0.29(typescript@5.5.4)))(rollup@4.19.0)(vue@3.4.34(typescript@5.5.4))': dependencies: '@nuxt/kit': 3.12.4(magicast@0.3.4)(rollup@4.19.0) @@ -9339,6 +9376,21 @@ snapshots: - supports-color - vue + '@vueuse/nuxt@11.0.1(magicast@0.3.4)(nuxt@3.12.4(@parcel/watcher@2.4.1)(@types/node@20.14.12)(eslint@8.57.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.19.0)(terser@5.31.3)(typescript@5.5.4)(vite@5.3.5(@types/node@20.14.12)(terser@5.31.3))(vue-tsc@2.0.29(typescript@5.5.4)))(rollup@4.19.0)(vue@3.4.34(typescript@5.5.4))': + dependencies: + '@nuxt/kit': 3.12.4(magicast@0.3.4)(rollup@4.19.0) + '@vueuse/core': 11.0.1(vue@3.4.34(typescript@5.5.4)) + '@vueuse/metadata': 11.0.1 + local-pkg: 0.5.0 + nuxt: 3.12.4(@parcel/watcher@2.4.1)(@types/node@20.14.12)(eslint@8.57.0)(ioredis@5.4.1)(magicast@0.3.4)(optionator@0.9.4)(rollup@4.19.0)(terser@5.31.3)(typescript@5.5.4)(vite@5.3.5(@types/node@20.14.12)(terser@5.31.3))(vue-tsc@2.0.29(typescript@5.5.4)) + vue-demi: 0.14.10(vue@3.4.34(typescript@5.5.4)) + transitivePeerDependencies: + - '@vue/composition-api' + - magicast + - rollup + - supports-color + - vue + '@vueuse/shared@10.11.0(vue@3.4.34(typescript@5.5.4))': dependencies: vue-demi: 0.14.9(vue@3.4.34(typescript@5.5.4)) @@ -9353,6 +9405,13 @@ snapshots: - '@vue/composition-api' - vue + '@vueuse/shared@11.0.1(vue@3.4.34(typescript@5.5.4))': + dependencies: + vue-demi: 0.14.10(vue@3.4.34(typescript@5.5.4)) + transitivePeerDependencies: + - '@vue/composition-api' + - vue + JSONStream@1.3.5: dependencies: jsonparse: 1.3.1 @@ -10858,7 +10917,7 @@ snapshots: function-bind@1.1.2: {} - fuse.js@6.6.2: {} + fuse.js@7.0.0: {} gauge@3.0.2: dependencies: @@ -14786,6 +14845,10 @@ snapshots: vue-component-type-helpers@2.0.29: {} + vue-demi@0.14.10(vue@3.4.34(typescript@5.5.4)): + dependencies: + vue: 3.4.34(typescript@5.5.4) + vue-demi@0.14.9(vue@3.4.34(typescript@5.5.4)): dependencies: vue: 3.4.34(typescript@5.5.4) diff --git a/src/runtime/types/command-palette.d.ts b/src/runtime/types/command-palette.d.ts index b573cd67..4088ad84 100644 --- a/src/runtime/types/command-palette.d.ts +++ b/src/runtime/types/command-palette.d.ts @@ -1,4 +1,4 @@ -import Fuse from 'fuse.js' +import { FuseResultMatch } from 'fuse.js' import type { Avatar } from './avatar' export interface Command { @@ -13,7 +13,7 @@ export interface Command { shortcuts?: string[] group?: string score?: number - matches?: Fuse.FuseResultMatch[] + matches?: FuseResultMatch[] [key: string]: any }