From c38fa0dbae5629509bc7d1ffc999b5aedfc3d3b7 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 26 Jun 2024 12:02:48 +0200 Subject: [PATCH] fix(types): require unwrapped state in patch --- package.json | 6 +- packages/docs/typedoc-markdown.mjs | 4 +- packages/nuxt/package.json | 4 +- packages/pinia/package.json | 2 +- packages/pinia/src/mapHelpers.ts | 16 +- packages/pinia/src/store.ts | 10 +- packages/pinia/src/types.ts | 2 +- pnpm-lock.yaml | 331 ++++++----------------------- 8 files changed, 93 insertions(+), 282 deletions(-) diff --git a/package.json b/package.json index dabce96f..f999bfca 100644 --- a/package.json +++ b/package.json @@ -54,9 +54,9 @@ "rollup-plugin-typescript2": "^0.36.0", "semver": "^7.6.2", "simple-git-hooks": "^2.11.1", - "typedoc": "^0.25.13", - "typedoc-plugin-markdown": "^3.17.1", - "typescript": "~5.3.3", + "typedoc": "^0.26.2", + "typedoc-plugin-markdown": "^4.1.0", + "typescript": "~5.5.2", "vitest": "^1.6.0", "vue": "^3.4.30" }, diff --git a/packages/docs/typedoc-markdown.mjs b/packages/docs/typedoc-markdown.mjs index a59897b1..6fb219a7 100644 --- a/packages/docs/typedoc-markdown.mjs +++ b/packages/docs/typedoc-markdown.mjs @@ -11,9 +11,9 @@ const DEFAULT_OPTIONS = { excludeInternal: true, readme: 'none', out: path.resolve(__dirname, './api'), - entryDocument: 'index.md', + entryFileName: 'index.md', hideBreadcrumbs: false, - hideInPageTOC: true, + // hideInPageTOC: true, preserveAnchorCasing: true, } diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 2db8c8ff..5a8be730 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -46,12 +46,12 @@ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path . -l @pinia/nuxt -r 1" }, "dependencies": { - "@nuxt/kit": "^3.12.2", + "@nuxt/kit": "^3.9.0", "pinia": "^2.1.7" }, "devDependencies": { "@nuxt/module-builder": "^0.8.0", - "@nuxt/schema": "^3.12.2", + "@nuxt/schema": "^3.9.0", "@nuxt/test-utils": "^3.13.1", "nuxt": "^3.12.2", "typescript": "^5.5.2", diff --git a/packages/pinia/package.json b/packages/pinia/package.json index f3f17702..8dd41b0b 100644 --- a/packages/pinia/package.json +++ b/packages/pinia/package.json @@ -69,7 +69,7 @@ ], "license": "MIT", "devDependencies": { - "@microsoft/api-extractor": "7.43.1", + "@microsoft/api-extractor": "7.47.0", "@vue/test-utils": "^2.4.6" }, "dependencies": { diff --git a/packages/pinia/src/mapHelpers.ts b/packages/pinia/src/mapHelpers.ts index e20b966a..5b6ecd9a 100644 --- a/packages/pinia/src/mapHelpers.ts +++ b/packages/pinia/src/mapHelpers.ts @@ -136,7 +136,9 @@ export type _MapStateReturn< // : key extends keyof G // ? G[key] // : never - [key in Keys]: () => Store[key] + [key in Keys]: key extends keyof Store + ? () => Store[key] + : never } /** @@ -403,6 +405,7 @@ export function mapActions< this: ComponentPublicInstance, ...args: any[] ) { + // @ts-expect-error: FIXME: should work? return useStore(this.$pinia)[key](...args) } return reduced @@ -414,6 +417,7 @@ export function mapActions< this: ComponentPublicInstance, ...args: any[] ) { + // @ts-expect-error: FIXME: should work? return useStore(this.$pinia)[keysOrMapper[key]](...args) } return reduced @@ -509,11 +513,12 @@ export function mapWritableState< // @ts-ignore reduced[key] = { get(this: ComponentPublicInstance) { + // @ts-expect-error: FIXME: should work? return useStore(this.$pinia)[key] }, set(this: ComponentPublicInstance, value) { - // it's easier to type it here as any - return (useStore(this.$pinia)[key] = value as any) + // @ts-expect-error: FIXME: should work? + return (useStore(this.$pinia)[key] = value) }, } return reduced @@ -523,11 +528,12 @@ export function mapWritableState< // @ts-ignore reduced[key] = { get(this: ComponentPublicInstance) { + // @ts-expect-error: FIXME: should work? return useStore(this.$pinia)[keysOrMapper[key]] }, set(this: ComponentPublicInstance, value) { - // it's easier to type it here as any - return (useStore(this.$pinia)[keysOrMapper[key]] = value as any) + // @ts-expect-error: FIXME: should work? + return (useStore(this.$pinia)[keysOrMapper[key]] = value) }, } return reduced diff --git a/packages/pinia/src/store.ts b/packages/pinia/src/store.ts index a4ba4cc4..afe5b202 100644 --- a/packages/pinia/src/store.ts +++ b/packages/pinia/src/store.ts @@ -327,9 +327,10 @@ function createSetupStore< const $reset = isOptionsStore ? function $reset(this: _StoreWithState) { const { state } = options as DefineStoreOptions - const newState = state ? state() : {} + const newState: _DeepPartial> = state ? state() : {} // we use a patch to group all changes into one single subscription this.$patch(($state) => { + // @ts-expect-error: FIXME: shouldn't error? assign($state, newState) }) } @@ -490,14 +491,14 @@ function createSetupStore< if ((isRef(prop) && !isComputed(prop)) || isReactive(prop)) { // mark it as a piece of state to be serialized if (__DEV__ && hot) { - set(hotState.value, key, toRef(setupStore as any, key)) + set(hotState.value, key, toRef(setupStore, key)) // createOptionStore directly sets the state in pinia.state.value so we // can just skip that } else if (!isOptionsStore) { // in setup stores we must hydrate the state and sync pinia state tree with the refs the user just created if (initialState && shouldHydrate(prop)) { if (isRef(prop)) { - prop.value = initialState[key] + prop.value = initialState[key as keyof UnwrapRef] } else { // probably a reactive object, lets recursively assign // @ts-expect-error: prop is unknown @@ -581,6 +582,7 @@ function createSetupStore< throw new Error('cannot set hotState') } $patch(($state) => { + // @ts-expect-error: FIXME: shouldn't error? assign($state, state) }) }, @@ -594,7 +596,7 @@ function createSetupStore< newStore._hmrPayload.state.forEach((stateKey) => { if (stateKey in store.$state) { const newStateTarget = newStore.$state[stateKey] - const oldStateSource = store.$state[stateKey] + const oldStateSource = store.$state[stateKey as keyof UnwrapRef] if ( typeof newStateTarget === 'object' && isPlainObject(newStateTarget) && diff --git a/packages/pinia/src/types.ts b/packages/pinia/src/types.ts index 0c3359cd..d4e40897 100644 --- a/packages/pinia/src/types.ts +++ b/packages/pinia/src/types.ts @@ -113,7 +113,7 @@ export interface SubscriptionCallbackMutationPatchObject /** * Object passed to `store.$patch()`. */ - payload: _DeepPartial + payload: _DeepPartial> } /** diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 720a9f06..b0d11da3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,7 +41,7 @@ importers: version: 3.4.30 '@vue/server-renderer': specifier: ^3.4.30 - version: 3.4.30(vue@3.4.30(typescript@5.3.3)) + version: 3.4.30(vue@3.4.30(typescript@5.5.2)) chalk: specifier: ^5.3.0 version: 5.3.0 @@ -86,7 +86,7 @@ importers: version: 4.18.0 rollup-plugin-typescript2: specifier: ^0.36.0 - version: 0.36.0(rollup@4.18.0)(typescript@5.3.3) + version: 0.36.0(rollup@4.18.0)(typescript@5.5.2) semver: specifier: ^7.6.2 version: 7.6.2 @@ -94,20 +94,20 @@ importers: specifier: ^2.11.1 version: 2.11.1 typedoc: - specifier: ^0.25.13 - version: 0.25.13(typescript@5.3.3) + specifier: ^0.26.2 + version: 0.26.2(typescript@5.5.2) typedoc-plugin-markdown: - specifier: ^3.17.1 - version: 3.17.1(typedoc@0.25.13(typescript@5.3.3)) + specifier: ^4.1.0 + version: 4.1.0(typedoc@0.26.2(typescript@5.5.2)) typescript: - specifier: ~5.3.3 - version: 5.3.3 + specifier: ~5.5.2 + version: 5.5.2 vitest: specifier: ^1.6.0 version: 1.6.0(@types/node@20.14.9)(happy-dom@14.12.3)(terser@5.31.1) vue: specifier: ^3.4.30 - version: 3.4.30(typescript@5.3.3) + version: 3.4.30(typescript@5.5.2) packages/docs: dependencies: @@ -130,7 +130,7 @@ importers: packages/nuxt: dependencies: '@nuxt/kit': - specifier: ^3.12.2 + specifier: ^3.9.0 version: 3.12.2(magicast@0.3.4)(rollup@4.18.0) pinia: specifier: ^2.1.7 @@ -140,7 +140,7 @@ importers: specifier: ^0.8.0 version: 0.8.0(@nuxt/kit@3.12.2(magicast@0.3.4)(rollup@4.18.0))(nuxi@3.12.0)(typescript@5.5.2)(vue-tsc@2.0.22(typescript@5.5.2)) '@nuxt/schema': - specifier: ^3.12.2 + specifier: ^3.9.0 version: 3.12.2(rollup@4.18.0) '@nuxt/test-utils': specifier: ^3.13.1 @@ -202,8 +202,8 @@ importers: version: 0.14.8(@vue/composition-api@1.7.2(vue@3.4.30(typescript@5.5.2)))(vue@3.4.30(typescript@5.5.2)) devDependencies: '@microsoft/api-extractor': - specifier: 7.43.1 - version: 7.43.1(@types/node@20.14.9) + specifier: 7.47.0 + version: 7.47.0(@types/node@20.14.9) '@vue/test-utils': specifier: ^2.4.6 version: 2.4.6 @@ -1048,29 +1048,16 @@ packages: resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==} hasBin: true - '@microsoft/api-extractor-model@7.28.14': - resolution: {integrity: sha512-Bery/c8A8SsKPSvA82cTTuy/+OcxZbLRmKhPkk91/AJOQzxZsShcrmHFAGeiEqSIrv1nPZ3tKq9kfMLdCHmsqg==} - '@microsoft/api-extractor-model@7.29.2': resolution: {integrity: sha512-hAYajOjQan3uslhKJRwvvHIdLJ+ZByKqdSsJ/dgHFxPtEbdKpzMDO8zuW4K5gkSMYl5D0LbNwxkhxr51P2zsmw==} - '@microsoft/api-extractor@7.43.1': - resolution: {integrity: sha512-ohg40SsvFFgzHFAtYq5wKJc8ZDyY46bphjtnSvhSSlXpPTG7GHwyyXkn48UZiUCBwr2WC7TRC1Jfwz7nreuiyQ==} - hasBin: true - '@microsoft/api-extractor@7.47.0': resolution: {integrity: sha512-LT8yvcWNf76EpDC+8/ArTVSYePvuDQ+YbAUrsTcpg3ptiZ93HIcMCozP/JOxDt+rrsFfFHcpfoselKfPyRI0GQ==} hasBin: true - '@microsoft/tsdoc-config@0.16.2': - resolution: {integrity: sha512-OGiIzzoBLgWWR0UdRJX98oYO+XKGf7tiK4Zk6tQ/E4IJqGCe7dvkTvgDZV5cFJUzLGDOjeAXrnZoA6QkVySuxw==} - '@microsoft/tsdoc-config@0.17.0': resolution: {integrity: sha512-v/EYRXnCAIHxOHW+Plb6OWuUoMotxTN0GLatnpOb1xq0KuTNw/WI3pamJx/UbsoJP5k9MCw1QxvvhPcF9pH3Zg==} - '@microsoft/tsdoc@0.14.2': - resolution: {integrity: sha512-9b8mPpKrfeGRuhFH5iO1iwCLeIIsV6+H1sRfxbkoGXIyQE2BTsPd9zqSqQJ+pv5sJ/hT5M1zvOFL02MnEezFug==} - '@microsoft/tsdoc@0.15.0': resolution: {integrity: sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==} @@ -1635,14 +1622,6 @@ packages: cpu: [x64] os: [win32] - '@rushstack/node-core-library@4.1.0': - resolution: {integrity: sha512-qz4JFBZJCf1YN5cAXa1dP6Mki/HrsQxc/oYGAGx29dF2cwF2YMxHoly0FBhMw3IEnxo5fMj0boVfoHVBkpkx/w==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - '@rushstack/node-core-library@5.4.1': resolution: {integrity: sha512-WNnwdS8r9NZ/2K3u29tNoSRldscFa7SxU0RT+82B6Dy2I4Hl2MeCSKm4EXLXPKeNzLGvJ1cqbUhTLviSF8E6iA==} peerDependencies: @@ -1654,14 +1633,6 @@ packages: '@rushstack/rig-package@0.5.2': resolution: {integrity: sha512-mUDecIJeH3yYGZs2a48k+pbhM6JYwWlgjs2Ca5f2n1G2/kgdgP9D/07oglEGf6mRyXEnazhEENeYTSNDRCwdqA==} - '@rushstack/terminal@0.10.1': - resolution: {integrity: sha512-C6Vi/m/84IYJTkfzmXr1+W8Wi3MmBjVF/q3za91Gb3VYjKbpALHVxY6FgH625AnDe5Z0Kh4MHKWA3Z7bqgAezA==} - peerDependencies: - '@types/node': '*' - peerDependenciesMeta: - '@types/node': - optional: true - '@rushstack/terminal@0.13.0': resolution: {integrity: sha512-Ou44Q2s81BqJu3dpYedAX54am9vn245F0HzqVrfJCMQk5pGgoKKOBOjkbfZC9QKcGNaECh6pwH2s5noJt7X6ew==} peerDependencies: @@ -1670,9 +1641,6 @@ packages: '@types/node': optional: true - '@rushstack/ts-command-line@4.19.2': - resolution: {integrity: sha512-cqmXXmBEBlzo9WtyUrHtF9e6kl0LvBY7aTSVX4jfnBfXWZQWnPq9JTFPlQZ+L/ZwjZ4HrNwQsOVvhe9oOucZkw==} - '@rushstack/ts-command-line@4.22.0': resolution: {integrity: sha512-Qj28t6MO3HRgAZ72FDeFsrpdE6wBWxF3VENgvrXh7JF2qIT+CrXiOJIesW80VFZB9QwObSpkB1ilx794fGQg6g==} @@ -2053,9 +2021,6 @@ packages: ajv: optional: true - ajv@6.12.6: - resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} - ajv@8.12.0: resolution: {integrity: sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==} @@ -2085,9 +2050,6 @@ packages: resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==} engines: {node: '>=12'} - ansi-sequence-parser@1.1.1: - resolution: {integrity: sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg==} - ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -2390,10 +2352,6 @@ packages: resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==} engines: {node: '>= 12'} - commander@9.5.0: - resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==} - engines: {node: ^12.20.0 || >=14} - commondir@1.0.1: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} @@ -2886,9 +2844,6 @@ packages: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} - fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} - fastq@1.17.1: resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} @@ -3450,9 +3405,6 @@ packages: resolution: {integrity: sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} - json-schema-traverse@1.0.0: resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} @@ -3515,6 +3467,9 @@ packages: lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + linkify-it@5.0.0: + resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==} + lint-staged@15.2.7: resolution: {integrity: sha512-+FdVbbCZ+yoh7E/RosSdqKJyUM2OEjTciH0TFNkawKgvFp1zbGlEC39RADg+xKBG1R4mhoH2j85myBQZ5wR+lw==} engines: {node: '>=18.12.0'} @@ -3558,15 +3513,9 @@ packages: lodash.defaults@4.2.0: resolution: {integrity: sha512-qjxPLHd3r5DnsdGacqOMU6pb/avJzdh9tFX2ymgoZE27BmjXrNy/y4LoaiTeAb+O3gL8AfpJGtqfX/ae2leYYQ==} - lodash.get@4.4.2: - resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} - lodash.isarguments@3.1.0: resolution: {integrity: sha512-chi4NHZlZqZD18a0imDHnZPrDeBbTtVN7GXMwuGdRH9qotxAjYs3aVLKc7zNOG9eddR5Ksd8rvFEBc9SsggPpg==} - lodash.isequal@4.5.0: - resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} - lodash.ismatch@4.4.0: resolution: {integrity: sha512-fPMfXjGQEV9Xsq/8MTSgUf255gawYRbjwMyDbcvDhXgV7enSZA0hynz6vMPnpAb5iONEzBHBPsT+0zes5Z301g==} @@ -3651,9 +3600,8 @@ packages: mark.js@8.11.1: resolution: {integrity: sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==} - marked@4.3.0: - resolution: {integrity: sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==} - engines: {node: '>= 12'} + markdown-it@14.1.0: + resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==} hasBin: true mdn-data@2.0.28: @@ -3662,6 +3610,9 @@ packages: mdn-data@2.0.30: resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} + mdurl@2.0.0: + resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==} + meow@8.1.2: resolution: {integrity: sha512-r85E3NdZ+mpYk1C6RjPFEMSE+s1iZMuHtsHAqY0DT3jZczl0diWUZ8g6oU7h0M9cD2EL+PzaYghhCLzR0ZNn5Q==} engines: {node: '>=10'} @@ -3722,10 +3673,6 @@ packages: resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==} engines: {node: '>=16 || 14 >=14.17'} - minimatch@9.0.4: - resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==} - engines: {node: '>=16 || 14 >=14.17'} - minimatch@9.0.5: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} @@ -4456,6 +4403,10 @@ packages: protocols@2.0.1: resolution: {integrity: sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==} + punycode.js@2.3.1: + resolution: {integrity: sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==} + engines: {node: '>=6'} + punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -4556,9 +4507,6 @@ packages: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} - resolve@1.19.0: - resolution: {integrity: sha512-rArEXAgsBG4UgRGcynxWIWKFvh/XZCcS8UJdHhwy91zwAvCZIbcs+vAbflgBnNjYMs/i/i+/Ux6IZhML1yPvxg==} - resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true @@ -4695,9 +4643,6 @@ packages: shell-quote@1.8.1: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} - shiki@0.14.7: - resolution: {integrity: sha512-dNPAPrxSc87ua2sKJ3H5dQ/6ZaY8RNnaAqK+t0eG7p0Soi2ydiqbGOTaZCqaYvA/uZYfS1LJnemt3Q+mSfcPCg==} - shiki@1.9.1: resolution: {integrity: sha512-8PDkgb5ja3nfujTjvC4VytL6wGOGCtFAClUb2r3QROevYXxcq+/shVJK5s6gy0HZnjaJgFxd6BpPqpRfqne5rA==} @@ -5115,22 +5060,18 @@ packages: type-level-regexp@0.1.17: resolution: {integrity: sha512-wTk4DH3cxwk196uGLK/E9pE45aLfeKJacKmcEgEOA/q5dnPGNxXt0cfYdFxb57L+sEpf1oJH4Dnx/pnRcku9jg==} - typedoc-plugin-markdown@3.17.1: - resolution: {integrity: sha512-QzdU3fj0Kzw2XSdoL15ExLASt2WPqD7FbLeaqwT70+XjKyTshBnUlQA5nNREO1C2P8Uen0CDjsBLMsCQ+zd0lw==} + typedoc-plugin-markdown@4.1.0: + resolution: {integrity: sha512-sUiEJVaa6+MOFShRy14j1OP/VXC5OLyHNecJ2nKeGuBy2M3YiMatSLoIiddFAqVptSuILJTZiJzCBIY6yzAVyg==} + engines: {node: '>= 18'} peerDependencies: - typedoc: '>=0.24.0' + typedoc: 0.26.x - typedoc@0.25.13: - resolution: {integrity: sha512-pQqiwiJ+Z4pigfOnnysObszLiU3mVLWAExSPf+Mu06G/qsc3wzbuM56SZQvONhHLncLUhYzOVkjFFpFfL5AzhQ==} - engines: {node: '>= 16'} + typedoc@0.26.2: + resolution: {integrity: sha512-q/t+M+PZqhN9gPWLBZ3CCvP+KT8O1tyYkSzEYbcQ6mo89avdIrMlBEl3vfo5BgSzwC6Lbmq0W64E8RkY+eVsLA==} + engines: {node: '>= 18'} hasBin: true peerDependencies: - typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x - - typescript@5.3.3: - resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==} - engines: {node: '>=14.17'} - hasBin: true + typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x typescript@5.4.2: resolution: {integrity: sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==} @@ -5142,6 +5083,9 @@ packages: engines: {node: '>=14.17'} hasBin: true + uc.micro@2.1.0: + resolution: {integrity: sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==} + ufo@1.5.3: resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} @@ -5305,10 +5249,6 @@ packages: resolution: {integrity: sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - validator@13.11.0: - resolution: {integrity: sha512-Ii+sehpSfZy+At5nPdnyMhx78fEoPDkR2XW/zimHEL3MyGJQOCQ7WeP20jPYRz7ZCpcKLB21NxuXHF3bxjStBQ==} - engines: {node: '>= 0.10'} - vite-hot-client@0.2.3: resolution: {integrity: sha512-rOGAV7rUlUHX89fP2p2v0A2WWvV3QMX2UYq0fRqsWSvFvev4atHWqjwGoKaZT1VTKyLGk533ecu3eyd0o59CAg==} peerDependencies: @@ -5461,12 +5401,6 @@ packages: resolution: {integrity: sha512-60HTx5ID+fLRcgdHfmz0LDZAXYEV68fzwG0JWwEPBode9NuMYTIxuYXPg4ngO8i8+Ou0lM7y6GzaYWbiDL0drw==} hasBin: true - vscode-oniguruma@1.7.0: - resolution: {integrity: sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==} - - vscode-textmate@8.0.0: - resolution: {integrity: sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg==} - vscode-uri@3.0.8: resolution: {integrity: sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==} @@ -5644,11 +5578,6 @@ packages: resolution: {integrity: sha512-Ct97huExsu7cWeEjmrXlofevF8CvzUglJ4iGUet5B8xn1oumtAZBpHU4GzYuoE6PVqcZ5hghtBrSlhwHuR1Jmw==} engines: {node: '>=18'} - z-schema@5.0.5: - resolution: {integrity: sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==} - engines: {node: '>=8.0.0'} - hasBin: true - zhead@2.2.4: resolution: {integrity: sha512-8F0OI5dpWIA5IGG5NHUg9staDwz/ZPxZtvGVf01j7vHqSyZ0raHY+78atOVxRqb73AotX22uV1pXt3gYSstGag==} @@ -6363,14 +6292,6 @@ snapshots: - encoding - supports-color - '@microsoft/api-extractor-model@7.28.14(@types/node@20.14.9)': - dependencies: - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.1.0(@types/node@20.14.9) - transitivePeerDependencies: - - '@types/node' - '@microsoft/api-extractor-model@7.29.2(@types/node@20.14.9)': dependencies: '@microsoft/tsdoc': 0.15.0 @@ -6378,25 +6299,6 @@ snapshots: '@rushstack/node-core-library': 5.4.1(@types/node@20.14.9) transitivePeerDependencies: - '@types/node' - optional: true - - '@microsoft/api-extractor@7.43.1(@types/node@20.14.9)': - dependencies: - '@microsoft/api-extractor-model': 7.28.14(@types/node@20.14.9) - '@microsoft/tsdoc': 0.14.2 - '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.1.0(@types/node@20.14.9) - '@rushstack/rig-package': 0.5.2 - '@rushstack/terminal': 0.10.1(@types/node@20.14.9) - '@rushstack/ts-command-line': 4.19.2(@types/node@20.14.9) - lodash: 4.17.21 - minimatch: 3.0.8 - resolve: 1.22.8 - semver: 7.5.4 - source-map: 0.6.1 - typescript: 5.4.2 - transitivePeerDependencies: - - '@types/node' '@microsoft/api-extractor@7.47.0(@types/node@20.14.9)': dependencies: @@ -6415,14 +6317,6 @@ snapshots: typescript: 5.4.2 transitivePeerDependencies: - '@types/node' - optional: true - - '@microsoft/tsdoc-config@0.16.2': - dependencies: - '@microsoft/tsdoc': 0.14.2 - ajv: 6.12.6 - jju: 1.4.0 - resolve: 1.19.0 '@microsoft/tsdoc-config@0.17.0': dependencies: @@ -6430,12 +6324,8 @@ snapshots: ajv: 8.12.0 jju: 1.4.0 resolve: 1.22.8 - optional: true - '@microsoft/tsdoc@0.14.2': {} - - '@microsoft/tsdoc@0.15.0': - optional: true + '@microsoft/tsdoc@0.15.0': {} '@netlify/functions@2.8.0(@opentelemetry/api@1.9.0)': dependencies: @@ -7234,17 +7124,6 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.18.0': optional: true - '@rushstack/node-core-library@4.1.0(@types/node@20.14.9)': - dependencies: - fs-extra: 7.0.1 - import-lazy: 4.0.0 - jju: 1.4.0 - resolve: 1.22.8 - semver: 7.5.4 - z-schema: 5.0.5 - optionalDependencies: - '@types/node': 20.14.9 - '@rushstack/node-core-library@5.4.1(@types/node@20.14.9)': dependencies: ajv: 8.13.0 @@ -7257,36 +7136,18 @@ snapshots: semver: 7.5.4 optionalDependencies: '@types/node': 20.14.9 - optional: true '@rushstack/rig-package@0.5.2': dependencies: resolve: 1.22.8 strip-json-comments: 3.1.1 - '@rushstack/terminal@0.10.1(@types/node@20.14.9)': - dependencies: - '@rushstack/node-core-library': 4.1.0(@types/node@20.14.9) - supports-color: 8.1.1 - optionalDependencies: - '@types/node': 20.14.9 - '@rushstack/terminal@0.13.0(@types/node@20.14.9)': dependencies: '@rushstack/node-core-library': 5.4.1(@types/node@20.14.9) supports-color: 8.1.1 optionalDependencies: '@types/node': 20.14.9 - optional: true - - '@rushstack/ts-command-line@4.19.2(@types/node@20.14.9)': - dependencies: - '@rushstack/terminal': 0.10.1(@types/node@20.14.9) - '@types/argparse': 1.0.38 - argparse: 1.0.10 - string-argv: 0.3.2 - transitivePeerDependencies: - - '@types/node' '@rushstack/ts-command-line@4.22.0(@types/node@20.14.9)': dependencies: @@ -7296,7 +7157,6 @@ snapshots: string-argv: 0.3.2 transitivePeerDependencies: - '@types/node' - optional: true '@sec-ant/readable-stream@0.4.1': {} @@ -7660,12 +7520,6 @@ snapshots: '@vue/shared': 3.4.30 csstype: 3.1.3 - '@vue/server-renderer@3.4.30(vue@3.4.30(typescript@5.3.3))': - dependencies: - '@vue/compiler-ssr': 3.4.30 - '@vue/shared': 3.4.30 - vue: 3.4.30(typescript@5.3.3) - '@vue/server-renderer@3.4.30(vue@3.4.30(typescript@5.5.2))': dependencies: '@vue/compiler-ssr': 3.4.30 @@ -7758,19 +7612,10 @@ snapshots: ajv-draft-04@1.0.0(ajv@8.13.0): optionalDependencies: ajv: 8.13.0 - optional: true ajv-formats@3.0.1(ajv@8.13.0): optionalDependencies: ajv: 8.13.0 - optional: true - - ajv@6.12.6: - dependencies: - fast-deep-equal: 3.1.3 - fast-json-stable-stringify: 2.1.0 - json-schema-traverse: 0.4.1 - uri-js: 4.4.1 ajv@8.12.0: dependencies: @@ -7778,7 +7623,6 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 uri-js: 4.4.1 - optional: true ajv@8.13.0: dependencies: @@ -7786,7 +7630,6 @@ snapshots: json-schema-traverse: 1.0.0 require-from-string: 2.0.2 uri-js: 4.4.1 - optional: true algoliasearch@4.24.0: dependencies: @@ -7818,8 +7661,6 @@ snapshots: ansi-regex@6.0.1: {} - ansi-sequence-parser@1.1.1: {} - ansi-styles@3.2.1: dependencies: color-convert: 1.9.3 @@ -8144,9 +7985,6 @@ snapshots: commander@8.3.0: {} - commander@9.5.0: - optional: true - commondir@1.0.1: {} compare-func@2.0.0: @@ -8715,8 +8553,6 @@ snapshots: merge2: 1.4.1 micromatch: 4.0.5 - fast-json-stable-stringify@2.1.0: {} - fastq@1.17.1: dependencies: reusify: 1.0.4 @@ -9275,10 +9111,7 @@ snapshots: json-parse-even-better-errors@3.0.2: {} - json-schema-traverse@0.4.1: {} - - json-schema-traverse@1.0.0: - optional: true + json-schema-traverse@1.0.0: {} json-stringify-safe@5.0.1: {} @@ -9332,6 +9165,10 @@ snapshots: lines-and-columns@1.2.4: {} + linkify-it@5.0.0: + dependencies: + uc.micro: 2.1.0 + lint-staged@15.2.7: dependencies: chalk: 5.3.0 @@ -9408,12 +9245,8 @@ snapshots: lodash.defaults@4.2.0: {} - lodash.get@4.4.2: {} - lodash.isarguments@3.1.0: {} - lodash.isequal@4.5.0: {} - lodash.ismatch@4.4.0: {} lodash.kebabcase@4.1.1: {} @@ -9511,12 +9344,21 @@ snapshots: mark.js@8.11.1: {} - marked@4.3.0: {} + markdown-it@14.1.0: + dependencies: + argparse: 2.0.1 + entities: 4.5.0 + linkify-it: 5.0.0 + mdurl: 2.0.0 + punycode.js: 2.3.1 + uc.micro: 2.1.0 mdn-data@2.0.28: {} mdn-data@2.0.30: {} + mdurl@2.0.0: {} + meow@8.1.2: dependencies: '@types/minimist': 1.2.5 @@ -9573,10 +9415,6 @@ snapshots: dependencies: brace-expansion: 2.0.1 - minimatch@9.0.4: - dependencies: - brace-expansion: 2.0.1 - minimatch@9.0.5: dependencies: brace-expansion: 2.0.1 @@ -10469,6 +10307,8 @@ snapshots: protocols@2.0.1: {} + punycode.js@2.3.1: {} + punycode@2.3.1: {} q@1.5.1: {} @@ -10565,8 +10405,7 @@ snapshots: require-directory@2.1.1: {} - require-from-string@2.0.2: - optional: true + require-from-string@2.0.2: {} require-in-the-middle@7.3.0: dependencies: @@ -10578,11 +10417,6 @@ snapshots: resolve-from@5.0.0: {} - resolve@1.19.0: - dependencies: - is-core-module: 2.13.1 - path-parse: 1.0.7 - resolve@1.22.8: dependencies: is-core-module: 2.13.1 @@ -10616,7 +10450,7 @@ snapshots: optionalDependencies: '@babel/code-frame': 7.24.7 - rollup-plugin-typescript2@0.36.0(rollup@4.18.0)(typescript@5.3.3): + rollup-plugin-typescript2@0.36.0(rollup@4.18.0)(typescript@5.5.2): dependencies: '@rollup/pluginutils': 4.2.1 find-cache-dir: 3.3.2 @@ -10624,7 +10458,7 @@ snapshots: rollup: 4.18.0 semver: 7.6.2 tslib: 2.6.2 - typescript: 5.3.3 + typescript: 5.5.2 rollup-plugin-visualizer@5.12.0(rollup@4.18.0): dependencies: @@ -10737,13 +10571,6 @@ snapshots: shell-quote@1.8.1: {} - shiki@0.14.7: - dependencies: - ansi-sequence-parser: 1.1.1 - jsonc-parser: 3.2.1 - vscode-oniguruma: 1.7.0 - vscode-textmate: 8.0.0 - shiki@1.9.1: dependencies: '@shikijs/core': 1.9.1 @@ -11151,25 +10978,25 @@ snapshots: type-level-regexp@0.1.17: {} - typedoc-plugin-markdown@3.17.1(typedoc@0.25.13(typescript@5.3.3)): + typedoc-plugin-markdown@4.1.0(typedoc@0.26.2(typescript@5.5.2)): dependencies: - handlebars: 4.7.8 - typedoc: 0.25.13(typescript@5.3.3) + typedoc: 0.26.2(typescript@5.5.2) - typedoc@0.25.13(typescript@5.3.3): + typedoc@0.26.2(typescript@5.5.2): dependencies: lunr: 2.3.9 - marked: 4.3.0 - minimatch: 9.0.4 - shiki: 0.14.7 - typescript: 5.3.3 - - typescript@5.3.3: {} + markdown-it: 14.1.0 + minimatch: 9.0.5 + shiki: 1.9.1 + typescript: 5.5.2 + yaml: 2.4.5 typescript@5.4.2: {} typescript@5.5.2: {} + uc.micro@2.1.0: {} + ufo@1.5.3: {} uglify-js@3.17.4: @@ -11371,8 +11198,6 @@ snapshots: validate-npm-package-name@5.0.1: {} - validator@13.11.0: {} - vite-hot-client@0.2.3(vite@5.3.1(@types/node@20.14.9)(terser@5.31.1)): dependencies: vite: 5.3.1(@types/node@20.14.9)(terser@5.31.1) @@ -11593,10 +11418,6 @@ snapshots: dependencies: vscode-languageserver-protocol: 3.16.0 - vscode-oniguruma@1.7.0: {} - - vscode-textmate@8.0.0: {} - vscode-uri@3.0.8: {} vue-bundle-renderer@2.1.0: @@ -11637,16 +11458,6 @@ snapshots: semver: 7.6.2 typescript: 5.5.2 - vue@3.4.30(typescript@5.3.3): - dependencies: - '@vue/compiler-dom': 3.4.30 - '@vue/compiler-sfc': 3.4.30 - '@vue/runtime-dom': 3.4.30 - '@vue/server-renderer': 3.4.30(vue@3.4.30(typescript@5.3.3)) - '@vue/shared': 3.4.30 - optionalDependencies: - typescript: 5.3.3 - vue@3.4.30(typescript@5.5.2): dependencies: '@vue/compiler-dom': 3.4.30 @@ -11763,14 +11574,6 @@ snapshots: yoctocolors@2.0.2: {} - z-schema@5.0.5: - dependencies: - lodash.get: 4.4.2 - lodash.isequal: 4.5.0 - validator: 13.11.0 - optionalDependencies: - commander: 9.5.0 - zhead@2.2.4: {} zip-stream@6.0.1: -- 2.47.3