Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore(web): remove TanStack devtools (#36882)

yyh07c0c4e7b133
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5a6114e814f..9a7a9b8ac09 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -162,24 +162,15 @@ catalogs:
'@tanstack/eslint-plugin-query':
specifier: 5.100.14
version: 5.100.14
- '@tanstack/react-devtools':
- specifier: 0.10.5
- version: 0.10.5
'@tanstack/react-form':
specifier: 1.32.0
version: 1.32.0
- '@tanstack/react-form-devtools':
- specifier: 0.2.27
- version: 0.2.27
'@tanstack/react-hotkeys':
specifier: 0.10.0
version: 0.10.0
'@tanstack/react-query':
specifier: 5.100.14
version: 5.100.14
- '@tanstack/react-query-devtools':
- specifier: 5.100.14
- version: 5.100.14
'@tanstack/react-virtual':
specifier: 3.13.25
version: 3.13.25
@@ -1372,15 +1363,6 @@ importers:
'@tanstack/eslint-plugin-query':
specifier: 'catalog:'
- '@tanstack/react-devtools':
- specifier: 'catalog:'
- '@tanstack/react-form-devtools':
- specifier: 'catalog:'
- '@tanstack/react-query-devtools':
- specifier: 'catalog:'
'@testing-library/dom':
specifier: 'catalog:'
version: 10.4.1
@@ -4128,36 +4110,6 @@ packages:
'@socket.io/[email protected]':
resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==}
- '@solid-primitives/[email protected]':
- resolution: {integrity: sha512-nwRV558mIabl4yVAhZKY8cb6G+O1F0M6Z75ttTu5hk+SxdOnKSGj+eetDIu7Oax1P138ZdUU01qnBPR8rnxaEA==}
- peerDependencies:
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]':
- resolution: {integrity: sha512-sav+l+PL+74z3yaftVs7qd8c2SXkqzuxPOVibUe5wYMt+U5Hxp3V3XCPgBPN2I6cANjvoFtz0NiU8uHVLdi9FQ==}
- peerDependencies:
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]':
- resolution: {integrity: sha512-AiyTknKcNBaKHbcSMuxtSNM8FjIuiSuFyFghdD0TcCMU9hKi9EmsC5pjfjDwxE+5EueB1a+T/34PLRI5vbBbKw==}
- peerDependencies:
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]':
- resolution: {integrity: sha512-N8cIDAHbWcLahNRLr0knAAQvXyEdEMoAZvIMZKmhNb1mlx9e2UOv9BRD5YNwQUJwbNoYVhhLwFOEOcVXFx0HqA==}
- peerDependencies:
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]':
- resolution: {integrity: sha512-uxez7SXnr5GiRnzqO2IEDjOJRIXaG+0LZLBizmUA1FwSi+hrpuMzVBwyk70m4prcl8X6FDDXUl9O8hSq8wHbBQ==}
- peerDependencies:
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]':
- resolution: {integrity: sha512-AeGTBg8Wtkh/0s+evyLtP8piQoS4wyqqQaAFs2HJcFMMjYAtUgo+ZPduRXLjPlqKVc2ejeR544oeqpbn8Egn8A==}
- peerDependencies:
- solid-js: 1.9.13
-
'@standard-schema/[email protected]':
resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==}
@@ -4439,50 +4391,11 @@ packages:
peerDependencies:
vite: ^5.2.0 || ^6 || ^7 || ^8
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-f85ZJXJnDIFOoykG/BFIixuAevJovCvJF391LPs6YjBAPhGYC50NWlx1y4iF/UmK5/cCMx+/JqI5SBOz7FanQQ==}
- engines: {node: '>=18'}
-
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-cNnJ89Q021Zf883rlbBTfsaxTfi2r73/qejGtyTa7ksErF3hyDyAq1aTbo5crK9dAL7zSHh9viKY1BtMls1QOA==}
- engines: {node: '>=18'}
-
'@tanstack/[email protected]':
resolution: {integrity: sha512-OZI6QyULw0FI0wjgmeYzCIfbgPsOEzwJtCpa69XrfLMtNXLGnz3d/dIabk7frg0TmHo+Ah49w5I4KC7Tufwsvw==}
engines: {node: '>=18'}
hasBin: true
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-GtaMk8kaGZ9ZdR8Pu5RAfcse/ZrxzH/xsAIFtHMapLs2VMqSPFfb1NvIDO1MAAfUcub8Ix8XKQEP0uYSPzoFKw==}
- engines: {node: '>=18'}
-
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-KsGzYhA8L/fCNgyyMyoUy+TKtx+DjNbzWwqH6wXL48Llzo7kvV9RynYJlaO8Qkzwm+NdHXSgsljQNjQ3CKPpZA==}
- engines: {node: '>=18'}
- hasBin: true
- peerDependencies:
- '@types/react': '>=17.0.0'
- preact: '>=10.0.0'
- react: '>=17.0.0'
- solid-js: 1.9.13
- vue: '>=3.2.0'
- peerDependenciesMeta:
- '@types/react':
- optional: true
- preact:
- optional: true
- react:
- optional: true
- solid-js:
- optional: true
- vue:
- optional: true
-
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-Xdl8pLzoDUvXaclQ0poY36WAPx0jEHk8vqUFd8FYFUm1BMshtB7RnTgD1HE9jCAXODxqw9I0gXBiUZLK3o3+Bw==}
- engines: {node: '>=18'}
- hasBin: true
-
'@tanstack/[email protected]':
resolution: {integrity: sha512-NbpiBCmeHTRuVHeV5+U+1bzmxyTW5Dzp2sCeE6Hx+ZJTJWFK9dsm8VZmRc7LQP9/ZORsF620PvgUk67AwiBo4A==}
peerDependencies:
@@ -4495,11 +4408,6 @@ packages:
'@tanstack/[email protected]':
resolution: {integrity: sha512-Tn5VRDSjyqjmaet2tJMuEWDRFyrCaon03vxXPlSSaiSs6C/N7lCIwGCXJbZXEUq1kTj8jYN9qyXHbsz4LQHcow==}
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-h91foKH1RtUwJC1079kwcNQlO1LYBKdIY5n7kHGGjNTQiH0wLSIBJnxZnOxOJ1qaSjErTqJw5e9sIj3O+zyRYg==}
- peerDependencies:
- solid-js: 1.9.13
-
'@tanstack/[email protected]':
resolution: {integrity: sha512-vqH7X9nb0MTJ/O08++dB5bP9jgj4+BIPOUu/U+6myG86lDsirZSVSobpq5UQpE7nBuk62i8eIYeOhd+OMl/UrA==}
engines: {node: '>=18'}
@@ -4511,23 +4419,6 @@ packages:
'@tanstack/[email protected]':
resolution: {integrity: sha512-5X41dGpxgeaHISCRW2oYwcSycZeULZzAunaudXT9ov1KOTj9xwt0CH6hbwqP1/z74ZWF7rYFnDpyYH07XFcZew==}
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-g96SmSSQecYTYcyuAMRXr895GplJv01UGt7qttQWPOUyZ5EGz5tbRc589bMc2m5BsPFD6O0PCEAHdbDYNP6UBw==}
-
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-orVsRJ7oAXFb7oyafQCgx9YuK44jpILh5T/ddYuxAsolNfN5DZBr5/NLrWErD7HCGIzvYzg1TZI4sPxmiKvtvA==}
- engines: {node: '>=18'}
- peerDependencies:
- '@types/react': '>=16.8'
- '@types/react-dom': '>=16.8'
- react: '>=16.8'
- react-dom: '>=16.8'
-
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-c7ugxpwxPBrT2nMYFPaW448SVxYvdi+ruPU/UcFS6YYdQ5uJGqjOJDF+ObCHWxlNJQWIXQVIeqbDZ8UaNPOLTA==}
- peerDependencies:
- react: ^17.0.0 || ^18.0.0 || ^19.0.0
-
'@tanstack/[email protected]':
resolution: {integrity: sha512-6WP5SQTA6/H9crCpvpq3ZppYWqtrdE5NjOy6ebABi6uAQPqhfTzrdjS9t40mCZCFtGI5585OhJV6zBP/KN2zcw==}
peerDependencies:
@@ -4544,12 +4435,6 @@ packages:
react: '>=16.8'
react-dom: '>=16.8'
- '@tanstack/[email protected]':
- resolution: {integrity: sha512-JkP5VDgKOw3t/QSA1OABRHEqx8BuNs5MfvZRooNqdvN57SzTuGq3fKR1a2IH5rqa5HDLUm+FOXUEnB9ueHiLzg==}
- peerDependencies:
- '@tanstack/react-query': ^5.100.14
- react: ^18 || ^19
-
'@tanstack/[email protected]':
resolution: {integrity: sha512-oOr6aRdSFEwWhzxEkD/9ZcItM3+LjBSkeVmadWKwUssAHTsqd/7bOjWrX4AbvEkoEhgAxzN0Xk6H/aYzXiYBAw==}
peerDependencies:
@@ -6646,11 +6531,6 @@ packages:
resolution: {integrity: sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==}
- resolution: {integrity: sha512-2vFqsaDVIT9Gz7N6kAL++pLpp41l3PfDuusHcjnGLfR6+huZkl6ziX+zgVC3ZxpqWhzH6pyDdGrCeDhMIvwaxw==}
- peerDependencies:
- csstype: ^3.0.10
-
resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
@@ -8412,16 +8292,6 @@ packages:
engines: {node: '>=10'}
hasBin: true
- resolution: {integrity: sha512-4FbuZ/TMl02sqv0RTFexu0SP6V+ywaIe5bAWCCEik0fk17BhALgwvUDVF7e3Uvf9pxmwCEJsRPmlkUE6HdzLAw==}
- engines: {node: '>=10'}
- peerDependencies:
- seroval: ^1.0
-
- resolution: {integrity: sha512-OwrZRZAfhHww0WEnKHDY8OM0U/Qs8OTfIDWhUD4BLpNJUfXK4cGmjiagGze086m+mhI+V2nD0gfbHEnJjb9STA==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==}
@@ -8480,9 +8350,6 @@ packages:
resolution: {integrity: sha512-asJqbVBDsBCJx0pTqw3WfesSY0iRX+2xzWEWzrpcH7L6fLzrhyF8WPI8UaeM4YCuDfpwA/cgsdugMsmtz8EJeg==}
engines: {node: '>=10.0.0'}
- resolution: {integrity: sha512-6hJeJMOcEX8ktqjpDoJZEmld3ijvcvWBDtiXBm7f4332SiFN66QeAQI1REQshvyUoISsSeJ4PHDauKYbwao9JQ==}
-
resolution: {integrity: sha512-Kk8wLQPlS+yi1ZEf48a4+fzHa4yxjC30M/Sr2AnQu+f/MPwvvX9XjZ6OWejiz8crBsLwSq8GHqaxaET7u6ux0A==}
@@ -11710,40 +11577,6 @@ snapshots:
'@socket.io/[email protected]': {}
- '@solid-primitives/[email protected]([email protected])':
- dependencies:
- '@solid-primitives/utils': 6.4.0([email protected])
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]([email protected])':
- dependencies:
- '@solid-primitives/event-listener': 2.4.5([email protected])
- '@solid-primitives/rootless': 1.5.3([email protected])
- '@solid-primitives/utils': 6.4.0([email protected])
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]([email protected])':
- dependencies:
- '@solid-primitives/event-listener': 2.4.5([email protected])
- '@solid-primitives/rootless': 1.5.3([email protected])
- '@solid-primitives/static-store': 0.1.3([email protected])
- '@solid-primitives/utils': 6.4.0([email protected])
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]([email protected])':
- dependencies:
- '@solid-primitives/utils': 6.4.0([email protected])
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]([email protected])':
- dependencies:
- '@solid-primitives/utils': 6.4.0([email protected])
- solid-js: 1.9.13
-
- '@solid-primitives/[email protected]([email protected])':
- dependencies:
- solid-js: 1.9.13
-
'@standard-schema/[email protected]': {}
'@standard-schema/[email protected]': {}
@@ -12003,50 +11836,8 @@ snapshots:
tailwindcss: 4.3.0
- '@tanstack/[email protected]':
- dependencies:
- '@tanstack/devtools-event-client': 0.4.3
-
- '@tanstack/[email protected]':
- dependencies:
- ws: 8.21.0
- transitivePeerDependencies:
- - bufferutil
- - utf-8-validate
-
'@tanstack/[email protected]': {}
- dependencies:
- clsx: 2.1.1
- dayjs: 1.11.20
- goober: 2.1.18([email protected])
- solid-js: 1.9.13
- transitivePeerDependencies:
- - csstype
-
- optionalDependencies:
- '@types/react': 19.2.15
- react: 19.2.6
- solid-js: 1.9.13
-
- dependencies:
- '@solid-primitives/event-listener': 2.4.5([email protected])
- '@solid-primitives/keyboard': 1.3.5([email protected])
- '@solid-primitives/resize-observer': 2.1.5([email protected])
- '@tanstack/devtools-client': 0.0.6
- '@tanstack/devtools-event-bus': 0.4.1
- '@tanstack/devtools-ui': 0.5.2([email protected])
- clsx: 2.1.1
- goober: 2.1.18([email protected])
- solid-js: 1.9.13
- transitivePeerDependencies:
- - bufferutil
- - csstype
- - utf-8-validate
-
dependencies:
'@typescript-eslint/utils': 8.59.4([email protected]([email protected]))([email protected])
@@ -12062,22 +11853,6 @@ snapshots:
'@tanstack/pacer-lite': 0.1.1
'@tanstack/store': 0.9.3
- dependencies:
- '@tanstack/devtools-ui': 0.5.2([email protected])
- '@tanstack/devtools-utils': 0.4.0(@types/[email protected])([email protected])([email protected])
- '@tanstack/form-core': 1.32.0
- clsx: 2.1.1
- dayjs: 1.11.20
- goober: 2.1.18([email protected])
- solid-js: 1.9.13
- transitivePeerDependencies:
- - '@types/react'
- - csstype
- - preact
- - react
- - vue
-
'@tanstack/[email protected]':
dependencies:
'@tanstack/store': 0.11.0
@@ -12086,32 +11861,6 @@ snapshots:
'@tanstack/[email protected]': {}
- '@tanstack/[email protected]': {}
-
- dependencies:
- '@tanstack/devtools': 0.12.2([email protected])
- '@types/react': 19.2.15
- '@types/react-dom': 19.2.3(@types/[email protected])
- react: 19.2.6
- react-dom: 19.2.6([email protected])
- transitivePeerDependencies:
- - bufferutil
- - csstype
- - utf-8-validate
-
- dependencies:
- '@tanstack/devtools-utils': 0.4.0(@types/[email protected])([email protected])([email protected])
- '@tanstack/form-devtools': 0.2.27(@types/[email protected])([email protected])([email protected])([email protected])
- react: 19.2.6
- transitivePeerDependencies:
- - '@types/react'
- - csstype
- - preact
- - solid-js
- - vue
-
dependencies:
'@tanstack/form-core': 1.32.0
@@ -12127,12 +11876,6 @@ snapshots:
react: 19.2.6
react-dom: 19.2.6([email protected])
- dependencies:
- '@tanstack/query-devtools': 5.100.14
- '@tanstack/react-query': 5.100.14([email protected])
- react: 19.2.6
-
dependencies:
'@tanstack/query-core': 5.100.14
@@ -14476,10 +14219,6 @@ snapshots:
- dependencies:
- csstype: 3.2.3
-
@@ -16647,12 +16386,6 @@ snapshots:
- dependencies:
- seroval: 1.5.1
-
-
@@ -16749,12 +16482,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- csstype: 3.2.3
- seroval: 1.5.1
- seroval-plugins: 1.5.1([email protected])
-
@@ -17653,11 +17380,8 @@ time:
'@tailwindcss/[email protected]': '2025-09-24T14:49:08.735Z'
'@tailwindcss/[email protected]': '2026-05-08T20:25:50.670Z'
'@tanstack/[email protected]': '2026-05-23T17:16:09.131Z'
- '@tanstack/[email protected]': '2026-05-13T10:21:52.170Z'
- '@tanstack/[email protected]': '2026-05-10T22:35:01.854Z'
'@tanstack/[email protected]': '2026-05-10T22:35:03.027Z'
'@tanstack/[email protected]': '2026-04-25T12:28:06.989Z'
- '@tanstack/[email protected]': '2026-05-23T17:16:15.324Z'
'@tanstack/[email protected]': '2026-05-23T17:16:15.371Z'
'@tanstack/[email protected]': '2026-05-20T20:14:23.050Z'
'@testing-library/[email protected]': '2025-07-27T13:23:37.151Z'
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index beaa275dfb6..6be143f26a0 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -97,12 +97,9 @@ catalog:
'@tailwindcss/typography': 0.5.19
'@tailwindcss/vite': 4.3.0
'@tanstack/eslint-plugin-query': 5.100.14
- '@tanstack/react-devtools': 0.10.5
'@tanstack/react-form': 1.32.0
- '@tanstack/react-form-devtools': 0.2.27
'@tanstack/react-hotkeys': 0.10.0
'@tanstack/react-query': 5.100.14
- '@tanstack/react-query-devtools': 5.100.14
'@tanstack/react-virtual': 3.13.25
'@testing-library/dom': 10.4.1
'@testing-library/jest-dom': 6.9.1
diff --git a/web/app/components/devtools/tanstack/loader.tsx b/web/app/components/devtools/tanstack/loader.tsx
deleted file mode 100644
index d32ed8fdc90..00000000000
--- a/web/app/components/devtools/tanstack/loader.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-'use client'
-
-import { TanStackDevtools } from '@tanstack/react-devtools'
-import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
-
-import { ReactQueryDevtoolsPanel } from '@tanstack/react-query-devtools'
-import { IS_DEV } from '@/config'
-
-export const TanStackDevtoolsLoader = () => {
- if (!IS_DEV)
- return null
-
- return (
- <TanStackDevtools
- plugins={[
- // Query Devtools (Official Plugin)
- {
- name: 'React Query',
- render: () => <ReactQueryDevtoolsPanel />,
- },
-
- // Form Devtools (Official Plugin)
- formDevtoolsPlugin(),
- ]}
- />
- )
-}
diff --git a/web/context/query-client.tsx b/web/context/query-client.tsx
index 38292bfc8cf..2b95159396e 100644
--- a/web/context/query-client.tsx
+++ b/web/context/query-client.tsx
@@ -2,7 +2,6 @@
import type { QueryClient } from '@tanstack/react-query'
import { QueryClientProvider } from '@tanstack/react-query'
-import { TanStackDevtoolsLoader } from '@/app/components/devtools/tanstack/loader'
import { isServer } from '@/utils/client'
import { makeQueryClient } from './query-client-server'
@@ -22,7 +21,6 @@ export const TanstackQueryInitializer = ({ children }: { children: React.ReactNo
return (
<QueryClientProvider client={queryClient}>
{children}
- <TanStackDevtoolsLoader />
</QueryClientProvider>
)
}
diff --git a/web/package.json b/web/package.json
index 8351a032ce0..f6130ce2b37 100644
--- a/web/package.json
+++ b/web/package.json
@@ -178,9 +178,6 @@
"@tailwindcss/postcss": "catalog:",
"@tailwindcss/vite": "catalog:",
"@tanstack/eslint-plugin-query": "catalog:",
- "@tanstack/react-devtools": "catalog:",
- "@tanstack/react-form-devtools": "catalog:",
- "@tanstack/react-query-devtools": "catalog:",
"@testing-library/dom": "catalog:",
"@testing-library/jest-dom": "catalog:",
"@testing-library/react": "catalog:",