From 2a86692ba31e65f1ea1a52623d5e2853f3347590 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 3 Sep 2025 15:19:43 +0000 Subject: [PATCH 1/6] build(deps-dev): bump @tanstack/vue-query from 5.85.5 to 5.85.9 Bumps [@tanstack/vue-query](https://github.com/TanStack/query/tree/HEAD/packages/vue-query) from 5.85.5 to 5.85.9. - [Release notes](https://github.com/TanStack/query/releases) - [Commits](https://github.com/TanStack/query/commits/v5.85.9/packages/vue-query) --- updated-dependencies: - dependency-name: "@tanstack/vue-query" dependency-version: 5.85.9 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pnpm-lock.yaml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f342b9e..b816af8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -92,7 +92,7 @@ importers: version: 5.85.5(react@19.0.0) '@tanstack/vue-query': specifier: ^5.62.16 - version: 5.85.5(vue@3.5.13(typescript@5.9.2)) + version: 5.85.9(vue@3.5.13(typescript@5.9.2)) '@types/js-yaml': specifier: ^4.0.9 version: 4.0.9 @@ -541,6 +541,9 @@ packages: '@jridgewell/sourcemap-codec@1.5.4': resolution: {integrity: sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==} + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} @@ -689,13 +692,16 @@ packages: '@tanstack/query-core@5.85.5': resolution: {integrity: sha512-KO0WTob4JEApv69iYp1eGvfMSUkgw//IpMnq+//cORBzXf0smyRwPLrUvEe5qtAEGjwZTXrjxg+oJNP/C00t6w==} + '@tanstack/query-core@5.85.9': + resolution: {integrity: sha512-5fxb9vwyftYE6KFLhhhDyLr8NO75+Wpu7pmTo+TkwKmMX2oxZDoLwcqGP8ItKSpUMwk3urWgQDZfyWr5Jm9LsQ==} + '@tanstack/react-query@5.85.5': resolution: {integrity: sha512-/X4EFNcnPiSs8wM2v+b6DqS5mmGeuJQvxBglmDxl6ZQb5V26ouD2SJYAcC3VjbNwqhY2zjxVD15rDA5nGbMn3A==} peerDependencies: react: ^18 || ^19 - '@tanstack/vue-query@5.85.5': - resolution: {integrity: sha512-f2gT08SakfnyDGW5bgwsyjqnl2pgacvNWIpyj9UchjTo1JAEYMpMBT26TzhYgRL6il2wnunxnii7DHk1Kcj9Og==} + '@tanstack/vue-query@5.85.9': + resolution: {integrity: sha512-kWreavvcxxxCllqQxXANLwdggZ0yrAMbI0oEZbJyTpH8DGrf0OXUXlsqi0gtbtmqP7GnR32GcHU3E3fDJt4Psw==} peerDependencies: '@vue/composition-api': ^1.1.2 vue: ^2.6.0 || ^3.3.0 @@ -1784,6 +1790,9 @@ packages: magic-string@0.30.17: resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} + magic-string@0.30.18: + resolution: {integrity: sha512-yi8swmWbO17qHhwIBNeeZxTceJMeBvWJaId6dyvTSOwTipqeHhMhOrz6513r1sOKnpvQ7zkhlG8tPrpilwTxHQ==} + make-error@1.3.6: resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} @@ -3010,6 +3019,8 @@ snapshots: '@jridgewell/sourcemap-codec@1.5.4': {} + '@jridgewell/sourcemap-codec@1.5.5': {} + '@jridgewell/trace-mapping@0.3.25': dependencies: '@jridgewell/resolve-uri': 3.1.2 @@ -3128,15 +3139,17 @@ snapshots: '@tanstack/query-core@5.85.5': {} + '@tanstack/query-core@5.85.9': {} + '@tanstack/react-query@5.85.5(react@19.0.0)': dependencies: '@tanstack/query-core': 5.85.5 react: 19.0.0 - '@tanstack/vue-query@5.85.5(vue@3.5.13(typescript@5.9.2))': + '@tanstack/vue-query@5.85.9(vue@3.5.13(typescript@5.9.2))': dependencies: '@tanstack/match-sorter-utils': 8.19.4 - '@tanstack/query-core': 5.85.5 + '@tanstack/query-core': 5.85.9 '@vue/devtools-api': 6.6.4 vue: 3.5.13(typescript@5.9.2) vue-demi: 0.14.10(vue@3.5.13(typescript@5.9.2)) @@ -3359,7 +3372,7 @@ snapshots: '@vue/compiler-ssr': 3.5.13 '@vue/shared': 3.5.13 estree-walker: 2.0.2 - magic-string: 0.30.17 + magic-string: 0.30.18 postcss: 8.5.6 source-map-js: 1.2.1 @@ -4291,6 +4304,10 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.4 + magic-string@0.30.18: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + make-error@1.3.6: {} make-synchronized@0.8.0: {} From 90fb2b3cce4b5e95c87701fc02eb70f9a051f24a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 05:44:54 +0000 Subject: [PATCH 2/6] build(deps-dev): bump @tanstack/react-query from 5.85.5 to 5.85.9 Bumps [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) from 5.85.5 to 5.85.9. - [Release notes](https://github.com/TanStack/query/releases) - [Commits](https://github.com/TanStack/query/commits/v5.85.9/packages/react-query) --- updated-dependencies: - dependency-name: "@tanstack/react-query" dependency-version: 5.85.9 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pnpm-lock.yaml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b816af8..8feeb63 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -89,7 +89,7 @@ importers: version: 19.8.1 '@tanstack/react-query': specifier: ^5.62.10 - version: 5.85.5(react@19.0.0) + version: 5.85.9(react@19.0.0) '@tanstack/vue-query': specifier: ^5.62.16 version: 5.85.9(vue@3.5.13(typescript@5.9.2)) @@ -689,14 +689,11 @@ packages: resolution: {integrity: sha512-Wo1iKt2b9OT7d+YGhvEPD3DXvPv2etTusIMhMUoG7fbhmxcXCtIjJDEygy91Y2JFlwGyjqiBPRozme7UD8hoqg==} engines: {node: '>=12'} - '@tanstack/query-core@5.85.5': - resolution: {integrity: sha512-KO0WTob4JEApv69iYp1eGvfMSUkgw//IpMnq+//cORBzXf0smyRwPLrUvEe5qtAEGjwZTXrjxg+oJNP/C00t6w==} - '@tanstack/query-core@5.85.9': resolution: {integrity: sha512-5fxb9vwyftYE6KFLhhhDyLr8NO75+Wpu7pmTo+TkwKmMX2oxZDoLwcqGP8ItKSpUMwk3urWgQDZfyWr5Jm9LsQ==} - '@tanstack/react-query@5.85.5': - resolution: {integrity: sha512-/X4EFNcnPiSs8wM2v+b6DqS5mmGeuJQvxBglmDxl6ZQb5V26ouD2SJYAcC3VjbNwqhY2zjxVD15rDA5nGbMn3A==} + '@tanstack/react-query@5.85.9': + resolution: {integrity: sha512-2T5zgSpcOZXGkH/UObIbIkGmUPQqZqn7esVQFXLOze622h4spgWf5jmvrqAo9dnI13/hyMcNsF1jsoDcb59nJQ==} peerDependencies: react: ^18 || ^19 @@ -3137,13 +3134,11 @@ snapshots: dependencies: remove-accents: 0.5.0 - '@tanstack/query-core@5.85.5': {} - '@tanstack/query-core@5.85.9': {} - '@tanstack/react-query@5.85.5(react@19.0.0)': + '@tanstack/react-query@5.85.9(react@19.0.0)': dependencies: - '@tanstack/query-core': 5.85.5 + '@tanstack/query-core': 5.85.9 react: 19.0.0 '@tanstack/vue-query@5.85.9(vue@3.5.13(typescript@5.9.2))': From 1bffbecd4de0c6eec17117c8d0b38ffe9c05edfe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 16:12:02 +0000 Subject: [PATCH 3/6] build(deps): bump actions/setup-node from 4 to 5 Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d3c1ae..57fc532 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: uses: pnpm/action-setup@v4 - name: Use node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: '18.x' registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8f5b59..36ef802 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v5 - name: Use node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: node-version: '18.x' registry-url: 'https://registry.npmjs.org' From 03c3d1c8de5d5bc395e7c0949bc9fd99edf80d3a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 16:13:02 +0000 Subject: [PATCH 4/6] build(deps-dev): bump @tanstack/react-query from 5.85.9 to 5.86.0 Bumps [@tanstack/react-query](https://github.com/TanStack/query/tree/HEAD/packages/react-query) from 5.85.9 to 5.86.0. - [Release notes](https://github.com/TanStack/query/releases) - [Commits](https://github.com/TanStack/query/commits/v5.86.0/packages/react-query) --- updated-dependencies: - dependency-name: "@tanstack/react-query" dependency-version: 5.86.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pnpm-lock.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8feeb63..98008a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -89,7 +89,7 @@ importers: version: 19.8.1 '@tanstack/react-query': specifier: ^5.62.10 - version: 5.85.9(react@19.0.0) + version: 5.86.0(react@19.0.0) '@tanstack/vue-query': specifier: ^5.62.16 version: 5.85.9(vue@3.5.13(typescript@5.9.2)) @@ -692,8 +692,11 @@ packages: '@tanstack/query-core@5.85.9': resolution: {integrity: sha512-5fxb9vwyftYE6KFLhhhDyLr8NO75+Wpu7pmTo+TkwKmMX2oxZDoLwcqGP8ItKSpUMwk3urWgQDZfyWr5Jm9LsQ==} - '@tanstack/react-query@5.85.9': - resolution: {integrity: sha512-2T5zgSpcOZXGkH/UObIbIkGmUPQqZqn7esVQFXLOze622h4spgWf5jmvrqAo9dnI13/hyMcNsF1jsoDcb59nJQ==} + '@tanstack/query-core@5.86.0': + resolution: {integrity: sha512-Y6ibQm6BXbw6w1p3a5LrPn8Ae64M0dx7hGmnhrm9P+XAkCCKXOwZN0J5Z1wK/0RdNHtR9o+sWHDXd4veNI60tQ==} + + '@tanstack/react-query@5.86.0': + resolution: {integrity: sha512-jgS/v0oSJkGHucv9zxOS8rL7mjATh1XO3K4eqAV4WMpAly8okcBrGi1YxRZN5S4B59F54x9JFjWrK5vMAvJYqA==} peerDependencies: react: ^18 || ^19 @@ -3136,9 +3139,11 @@ snapshots: '@tanstack/query-core@5.85.9': {} - '@tanstack/react-query@5.85.9(react@19.0.0)': + '@tanstack/query-core@5.86.0': {} + + '@tanstack/react-query@5.86.0(react@19.0.0)': dependencies: - '@tanstack/query-core': 5.85.9 + '@tanstack/query-core': 5.86.0 react: 19.0.0 '@tanstack/vue-query@5.85.9(vue@3.5.13(typescript@5.9.2))': From 2222c97c6c5e781b9d379d06329bcdcaa49f07a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Sep 2025 16:13:14 +0000 Subject: [PATCH 5/6] build(deps-dev): bump @types/node from 24.3.0 to 24.3.1 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.3.0 to 24.3.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.3.1 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pnpm-lock.yaml | 74 +++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8feeb63..2eb653d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,7 +31,7 @@ importers: version: 9.0.0(typescript@5.9.2) cosmiconfig-typescript-loader: specifier: ^6.1.0 - version: 6.1.0(@types/node@24.3.0)(cosmiconfig@9.0.0(typescript@5.9.2))(typescript@5.9.2) + version: 6.1.0(@types/node@24.3.1)(cosmiconfig@9.0.0(typescript@5.9.2))(typescript@5.9.2) glob: specifier: ^10.4.5 version: 10.4.5 @@ -80,10 +80,10 @@ importers: version: 0.5.1 '@changesets/cli': specifier: ^2.27.6 - version: 2.29.6(@types/node@24.3.0) + version: 2.29.6(@types/node@24.3.1) '@commitlint/cli': specifier: ^19.2.1 - version: 19.8.1(@types/node@24.3.0)(typescript@5.9.2) + version: 19.8.1(@types/node@24.3.1)(typescript@5.9.2) '@commitlint/config-conventional': specifier: ^19.2.2 version: 19.8.1 @@ -107,7 +107,7 @@ importers: version: 1.0.10 '@types/node': specifier: ^24.0.14 - version: 24.3.0 + version: 24.3.1 '@types/nunjucks': specifier: ^3.2.6 version: 3.2.6 @@ -140,13 +140,13 @@ importers: version: 1.6.3 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@24.3.0)(typescript@5.9.2) + version: 10.9.2(@types/node@24.3.1)(typescript@5.9.2) typescript: specifier: 5.9.2 version: 5.9.2 vitest: specifier: ^2.1.9 - version: 2.1.9(@types/node@24.3.0) + version: 2.1.9(@types/node@24.3.1) packages: @@ -767,8 +767,8 @@ packages: '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@24.3.0': - resolution: {integrity: sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==} + '@types/node@24.3.1': + resolution: {integrity: sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==} '@types/nunjucks@3.2.6': resolution: {integrity: sha512-pHiGtf83na1nCzliuAdq8GowYiXvH5l931xZ0YEHaLMNFgynpEqx+IPStlu7UaDkehfvl01e4x/9Tpwhy7Ue3w==} @@ -2644,7 +2644,7 @@ snapshots: transitivePeerDependencies: - encoding - '@changesets/cli@2.29.6(@types/node@24.3.0)': + '@changesets/cli@2.29.6(@types/node@24.3.1)': dependencies: '@changesets/apply-release-plan': 7.0.12 '@changesets/assemble-release-plan': 6.0.9 @@ -2660,7 +2660,7 @@ snapshots: '@changesets/should-skip-package': 0.1.2 '@changesets/types': 6.1.0 '@changesets/write': 0.4.0 - '@inquirer/external-editor': 1.0.1(@types/node@24.3.0) + '@inquirer/external-editor': 1.0.1(@types/node@24.3.1) '@manypkg/get-packages': 1.1.3 ansi-colors: 4.1.3 ci-info: 3.9.0 @@ -2766,11 +2766,11 @@ snapshots: human-id: 4.1.1 prettier: 2.8.8 - '@commitlint/cli@19.8.1(@types/node@24.3.0)(typescript@5.9.2)': + '@commitlint/cli@19.8.1(@types/node@24.3.1)(typescript@5.9.2)': dependencies: '@commitlint/format': 19.8.1 '@commitlint/lint': 19.8.1 - '@commitlint/load': 19.8.1(@types/node@24.3.0)(typescript@5.9.2) + '@commitlint/load': 19.8.1(@types/node@24.3.1)(typescript@5.9.2) '@commitlint/read': 19.8.1 '@commitlint/types': 19.8.1 tinyexec: 1.0.1 @@ -2817,7 +2817,7 @@ snapshots: '@commitlint/rules': 19.8.1 '@commitlint/types': 19.8.1 - '@commitlint/load@19.8.1(@types/node@24.3.0)(typescript@5.9.2)': + '@commitlint/load@19.8.1(@types/node@24.3.1)(typescript@5.9.2)': dependencies: '@commitlint/config-validator': 19.8.1 '@commitlint/execute-rule': 19.8.1 @@ -2825,7 +2825,7 @@ snapshots: '@commitlint/types': 19.8.1 chalk: 5.4.1 cosmiconfig: 9.0.0(typescript@5.9.2) - cosmiconfig-typescript-loader: 6.1.0(@types/node@24.3.0)(cosmiconfig@9.0.0(typescript@5.9.2))(typescript@5.9.2) + cosmiconfig-typescript-loader: 6.1.0(@types/node@24.3.1)(cosmiconfig@9.0.0(typescript@5.9.2))(typescript@5.9.2) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 @@ -2986,12 +2986,12 @@ snapshots: '@humanwhocodes/object-schema@2.0.3': {} - '@inquirer/external-editor@1.0.1(@types/node@24.3.0)': + '@inquirer/external-editor@1.0.1(@types/node@24.3.1)': dependencies: chardet: 2.1.0 iconv-lite: 0.6.3 optionalDependencies: - '@types/node': 24.3.0 + '@types/node': 24.3.1 '@isaacs/cliui@8.0.2': dependencies: @@ -3181,12 +3181,12 @@ snapshots: dependencies: '@types/http-cache-semantics': 4.0.4 '@types/keyv': 3.1.4 - '@types/node': 24.3.0 + '@types/node': 24.3.1 '@types/responselike': 1.0.3 '@types/conventional-commits-parser@5.0.1': dependencies: - '@types/node': 24.3.0 + '@types/node': 24.3.1 '@types/estree@1.0.8': {} @@ -3196,7 +3196,7 @@ snapshots: '@types/keyv@3.1.4': dependencies: - '@types/node': 24.3.0 + '@types/node': 24.3.1 '@types/lodash@4.17.20': {} @@ -3206,7 +3206,7 @@ snapshots: '@types/node@12.20.55': {} - '@types/node@24.3.0': + '@types/node@24.3.1': dependencies: undici-types: 7.10.0 @@ -3216,11 +3216,11 @@ snapshots: '@types/responselike@1.0.3': dependencies: - '@types/node': 24.3.0 + '@types/node': 24.3.1 '@types/swagger2openapi@7.0.4': dependencies: - '@types/node': 24.3.0 + '@types/node': 24.3.1 openapi-types: 12.1.3 '@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@8.57.1)(typescript@5.9.2))(eslint@8.57.1)(typescript@5.9.2)': @@ -3313,13 +3313,13 @@ snapshots: chai: 5.2.0 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.9(vite@5.4.19(@types/node@24.3.0))': + '@vitest/mocker@2.1.9(vite@5.4.19(@types/node@24.3.1))': dependencies: '@vitest/spy': 2.1.9 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: - vite: 5.4.19(@types/node@24.3.0) + vite: 5.4.19(@types/node@24.3.1) '@vitest/pretty-format@2.1.9': dependencies: @@ -3603,9 +3603,9 @@ snapshots: meow: 12.1.1 split2: 4.2.0 - cosmiconfig-typescript-loader@6.1.0(@types/node@24.3.0)(cosmiconfig@9.0.0(typescript@5.9.2))(typescript@5.9.2): + cosmiconfig-typescript-loader@6.1.0(@types/node@24.3.1)(cosmiconfig@9.0.0(typescript@5.9.2))(typescript@5.9.2): dependencies: - '@types/node': 24.3.0 + '@types/node': 24.3.1 cosmiconfig: 9.0.0(typescript@5.9.2) jiti: 2.4.2 typescript: 5.9.2 @@ -4807,14 +4807,14 @@ snapshots: '@ts-morph/common': 0.26.1 code-block-writer: 13.0.3 - ts-node@10.9.2(@types/node@24.3.0)(typescript@5.9.2): + ts-node@10.9.2(@types/node@24.3.1)(typescript@5.9.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 24.3.0 + '@types/node': 24.3.1 acorn: 8.14.0 acorn-walk: 8.3.4 arg: 4.1.3 @@ -4851,13 +4851,13 @@ snapshots: v8-compile-cache-lib@3.0.1: {} - vite-node@2.1.9(@types/node@24.3.0): + vite-node@2.1.9(@types/node@24.3.1): dependencies: cac: 6.7.14 debug: 4.4.1 es-module-lexer: 1.7.0 pathe: 1.1.2 - vite: 5.4.19(@types/node@24.3.0) + vite: 5.4.19(@types/node@24.3.1) transitivePeerDependencies: - '@types/node' - less @@ -4869,19 +4869,19 @@ snapshots: - supports-color - terser - vite@5.4.19(@types/node@24.3.0): + vite@5.4.19(@types/node@24.3.1): dependencies: esbuild: 0.21.5 postcss: 8.5.6 rollup: 4.44.1 optionalDependencies: - '@types/node': 24.3.0 + '@types/node': 24.3.1 fsevents: 2.3.3 - vitest@2.1.9(@types/node@24.3.0): + vitest@2.1.9(@types/node@24.3.1): dependencies: '@vitest/expect': 2.1.9 - '@vitest/mocker': 2.1.9(vite@5.4.19(@types/node@24.3.0)) + '@vitest/mocker': 2.1.9(vite@5.4.19(@types/node@24.3.1)) '@vitest/pretty-format': 2.1.9 '@vitest/runner': 2.1.9 '@vitest/snapshot': 2.1.9 @@ -4897,11 +4897,11 @@ snapshots: tinyexec: 0.3.2 tinypool: 1.1.1 tinyrainbow: 1.2.0 - vite: 5.4.19(@types/node@24.3.0) - vite-node: 2.1.9(@types/node@24.3.0) + vite: 5.4.19(@types/node@24.3.1) + vite-node: 2.1.9(@types/node@24.3.1) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 24.3.0 + '@types/node': 24.3.1 transitivePeerDependencies: - less - lightningcss From 7a0ed075a2074d43421e7ccf1ddc0c3288f8ef58 Mon Sep 17 00:00:00 2001 From: luochao <1055120207@qq.com> Date: Mon, 8 Sep 2025 10:40:54 +0800 Subject: [PATCH 6/6] fix: fix apifox selectedTags #459 --- .changeset/fluffy-ends-hang.md | 5 +++++ README-en_US.md | 4 ++-- README.md | 4 ++-- src/type.ts | 8 +++---- src/util.ts | 40 +++++----------------------------- 5 files changed, 19 insertions(+), 42 deletions(-) create mode 100644 .changeset/fluffy-ends-hang.md diff --git a/.changeset/fluffy-ends-hang.md b/.changeset/fluffy-ends-hang.md new file mode 100644 index 0000000..133f193 --- /dev/null +++ b/.changeset/fluffy-ends-hang.md @@ -0,0 +1,5 @@ +--- +'openapi-ts-request': patch +--- + +fix: fix apifox selectedTags #459 diff --git a/README-en_US.md b/README-en_US.md index 95b05c5..fb03aed 100644 --- a/README-en_US.md +++ b/README-en_US.md @@ -272,8 +272,8 @@ openapi -i ./spec.json -o ./apis | apifoxToken | string | [get](https://docs.apifox.com/doc-5723694) | true | | local | string | language(default:zh-CN) | false | | apifoxVersion | string | default: 2024-03-28, [current apifox version](https://api.apifox.com/v1/versions) | false | -| includeTags | \* or string[] | default: \* | false | -| excludeTags | string[] | default: [] | false | +| selectedTags | \* or string[] | default: \* | false | +| excludedByTags | string[] | default: [] | false | | oasVersion | string | specify the version of the OpenAPI specification used for export, can have values such as "2.0", "3.0" or "3.1" | '3.0' | | exportFormat | string | specify the format of the exported OpenAPI file, can have values such as 'JSON' or 'YAML' | 'JSON' | | includeApifoxExtensionProperties | boolean | specify whether to include the OpenAPI specification extension fields `x-apifox` | false | diff --git a/README.md b/README.md index 8b584ef..20e59eb 100644 --- a/README.md +++ b/README.md @@ -274,8 +274,8 @@ openapi --i ./spec.json --o ./apis | apifoxToken | string | [获取](https://docs.apifox.com/doc-5723694) | true | | local | string | 语言(默认: zh-CN) | false | | apifoxVersion | string | 默认: 2024-03-28, [获取当前版本](https://api.apifox.com/v1/versions) | false | -| includeTags | \* 或 string[] | 默认: \* | false | -| excludeTags | string[] | 默认: [] | false | +| selectedTags | \* 或 string[] | 默认: \* | false | +| excludedByTags | string[] | 默认: [] | false | | oasVersion | string | 指定用于导出的 OpenAPI 规范的版本,可以有值如 "2.0"、"3.0"、"3.1" | '3.0' | | exportFormat | string | 指定导出的 OpenAPI 文件的格式,可以有值如 'JSON' 或 'YAML' | 'JSON' | | includeApifoxExtensionProperties | boolean | 指定是否包含 Apifox 的 OpenAPI 规范扩展字段 `x-apifox` | false | diff --git a/src/type.ts b/src/type.ts index aab1266..0fa3b50 100644 --- a/src/type.ts +++ b/src/type.ts @@ -122,8 +122,8 @@ export type ReadConfigOptions = MutuallyExclusiveWithFallback< export interface APIFoxBody { scope?: { type?: 'ALL' | 'SELECTED_TAGS'; - includeTags?: string[]; - excludeTags?: string[]; + selectedTags?: string[]; + excludedByTags?: string[]; }; options?: { includeApifoxExtensionProperties?: boolean; @@ -144,6 +144,6 @@ export interface GetSchemaByApifoxProps apifoxToken: string; locale?: string; apifoxVersion?: string; - includeTags?: (string | RegExp)[]; - excludeTags?: string[]; + selectedTags?: string[]; + excludedByTags?: string[]; } diff --git a/src/util.ts b/src/util.ts index 374e2ab..8aabdb1 100644 --- a/src/util.ts +++ b/src/util.ts @@ -6,6 +6,7 @@ import * as yaml from 'js-yaml'; import { camelCase as _camelCase_, forEach, + isEmpty, isObject, keys, map, @@ -32,35 +33,6 @@ export const getImportStatement = (requestLibPath: string) => { return `import { request } from 'axios';`; }; -const getApifoxIncludeTags = (tags?: (string | RegExp)[]): '*' | string[] => { - let _tags_: string | string[] = '*'; - if (tags && Array.isArray(tags)) { - if (!tags.length) { - return '*'; - } - - _tags_ = []; - for (const tag of tags) { - if (typeof tag === 'string') { - if (tag === '*') { - _tags_ = '*'; - break; - } - } else if (tag instanceof RegExp) { - _tags_ = '*'; - break; - // TODO:后期添加支持判断字符串是否为正则 - } else { - _tags_.push(tag); - } - } - } else if (tags) { - _tags_ = [tags as unknown as string]; - } - - return _tags_ as '*'; -}; - /** * 通过 apifox 获取 openapi 文档 * @param params {object} @@ -73,8 +45,8 @@ const getSchemaByApifox = async ({ projectId, locale = 'zh-CN', apifoxVersion = '2024-03-28', - includeTags, - excludeTags = [], + selectedTags, + excludedByTags = [], apifoxToken, oasVersion = '3.0', exportFormat = 'JSON', @@ -84,7 +56,7 @@ const getSchemaByApifox = async ({ try { const body: APIFoxBody = { scope: { - excludeTags, + excludedByTags, }, options: { includeApifoxExtensionProperties, @@ -93,13 +65,13 @@ const getSchemaByApifox = async ({ oasVersion, exportFormat, }; - const tags = getApifoxIncludeTags(includeTags); + const tags = !isEmpty(selectedTags) ? selectedTags : '*'; if (tags === '*') { body.scope.type = 'ALL'; } else { body.scope.type = 'SELECTED_TAGS'; - body.scope.includeTags = tags; + body.scope.selectedTags = tags; } const res = await axios.post(