@checkstack/frontend 0.2.20 → 0.2.22
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 +34 -0
- package/package.json +1 -1
- package/src/App.tsx +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @checkstack/frontend
|
|
2
2
|
|
|
3
|
+
## 0.2.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [23c80bc]
|
|
8
|
+
- @checkstack/ui@1.2.0
|
|
9
|
+
- @checkstack/auth-frontend@0.5.17
|
|
10
|
+
- @checkstack/catalog-frontend@0.5.6
|
|
11
|
+
- @checkstack/command-frontend@0.2.19
|
|
12
|
+
|
|
13
|
+
## 0.2.21
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- e01945b: Reduce excessive /api/auth/get-session requests
|
|
18
|
+
|
|
19
|
+
- Enable better-auth's `cookieCache` on the server (5-minute TTL) so repeated session
|
|
20
|
+
checks verify a signed cookie instead of querying the database. Compatible with
|
|
21
|
+
horizontal scaling since validation uses the shared `BETTER_AUTH_SECRET`.
|
|
22
|
+
|
|
23
|
+
- Introduce a `SessionProvider` React context that fetches the session exactly once
|
|
24
|
+
at the top of the component tree. All 7+ components that previously called
|
|
25
|
+
`useSession()` independently now read from this shared context — eliminating
|
|
26
|
+
duplicate HTTP requests on every page load.
|
|
27
|
+
|
|
28
|
+
- Remove the `useAuthClient()` hook which created per-component better-auth client
|
|
29
|
+
instances via `useMemo`, causing separate nanostore atoms and independent fetches.
|
|
30
|
+
All imperative usages (signIn, signUp, resetPassword, etc.) now use the singleton
|
|
31
|
+
`getAuthClientLazy()` instead.
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [e01945b]
|
|
34
|
+
- @checkstack/auth-frontend@0.5.16
|
|
35
|
+
- @checkstack/catalog-frontend@0.5.5
|
|
36
|
+
|
|
3
37
|
## 0.2.20
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -38,6 +38,7 @@ import {
|
|
|
38
38
|
AmbientBackground,
|
|
39
39
|
} from "@checkstack/ui";
|
|
40
40
|
import { SignalProvider } from "@checkstack/signal-frontend";
|
|
41
|
+
import { SessionProvider } from "@checkstack/auth-frontend";
|
|
41
42
|
import { usePluginLifecycle } from "./hooks/usePluginLifecycle";
|
|
42
43
|
import { useCommands, useGlobalShortcuts } from "@checkstack/command-frontend";
|
|
43
44
|
|
|
@@ -278,11 +279,13 @@ function AppWithApis() {
|
|
|
278
279
|
<QueryClientProvider client={queryClient}>
|
|
279
280
|
<ApiProvider registry={apiRegistry}>
|
|
280
281
|
<OrpcQueryProvider>
|
|
281
|
-
<
|
|
282
|
-
<
|
|
283
|
-
<
|
|
284
|
-
|
|
285
|
-
|
|
282
|
+
<SessionProvider>
|
|
283
|
+
<SignalProvider backendUrl={baseUrl}>
|
|
284
|
+
<ToastProvider>
|
|
285
|
+
<AppContent />
|
|
286
|
+
</ToastProvider>
|
|
287
|
+
</SignalProvider>
|
|
288
|
+
</SessionProvider>
|
|
286
289
|
</OrpcQueryProvider>
|
|
287
290
|
</ApiProvider>
|
|
288
291
|
{/* DevTools only in development - toggle with keyboard or floating button */}
|