@checkstack/frontend 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/package.json +1 -1
- package/vite.config.ts +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @checkstack/frontend
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4eed42d: Fix "No QueryClient set" error in containerized builds
|
|
8
|
+
|
|
9
|
+
**Problem**: The containerized application was throwing "No QueryClient set, use QueryClientProvider to set one" errors during plugin registration. This didn't happen in dev mode.
|
|
10
|
+
|
|
11
|
+
**Root Cause**: The `@tanstack/react-query` package was being bundled separately in different workspace packages, causing multiple React Query contexts. The `QueryClientProvider` from the main app wasn't visible to plugin code due to this module duplication.
|
|
12
|
+
|
|
13
|
+
**Changes**:
|
|
14
|
+
|
|
15
|
+
- `@checkstack/frontend-api`: Export `useQueryClient` from the centralized React Query import, ensuring all packages use the same context
|
|
16
|
+
- `@checkstack/dashboard-frontend`: Import `useQueryClient` from `@checkstack/frontend-api` instead of directly from `@tanstack/react-query`, and remove the direct dependency
|
|
17
|
+
- `@checkstack/frontend`: Add `@tanstack/react-query` to Vite's `resolve.dedupe` as a safety net
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [4eed42d]
|
|
20
|
+
- @checkstack/frontend-api@0.3.0
|
|
21
|
+
- @checkstack/auth-frontend@0.3.1
|
|
22
|
+
- @checkstack/catalog-frontend@0.3.1
|
|
23
|
+
- @checkstack/command-frontend@0.2.1
|
|
24
|
+
- @checkstack/ui@0.2.2
|
|
25
|
+
|
|
3
26
|
## 0.2.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -53,7 +53,13 @@ export default defineConfig(() => {
|
|
|
53
53
|
// Force all monorepo packages to use the same React copy at build time.
|
|
54
54
|
// Without this, each workspace package can bundle its own React copy,
|
|
55
55
|
// causing "useContext is null" errors from context mismatch.
|
|
56
|
-
dedupe: [
|
|
56
|
+
dedupe: [
|
|
57
|
+
"react",
|
|
58
|
+
"react-dom",
|
|
59
|
+
"react-router-dom",
|
|
60
|
+
"react/jsx-runtime",
|
|
61
|
+
"@tanstack/react-query",
|
|
62
|
+
],
|
|
57
63
|
alias: {
|
|
58
64
|
"@": path.resolve(__dirname, "./src"),
|
|
59
65
|
},
|