create-stitchkit 0.6.0 → 0.6.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 +15 -0
- package/UPGRADING.md +23 -0
- package/package.json +10 -10
- package/template/biome.json +1 -1
- package/template/bun.lock +194 -176
- package/template/e2e/starter.spec.ts +7 -1
- package/template/package.json +14 -8
- package/template/packages/backend/package.json +5 -5
- package/template/packages/config/package.json +3 -3
- package/template/packages/db/package.json +3 -3
- package/template/packages/frontend/package.json +15 -15
- package/template/packages/frontend/src/lib/query-client.test.ts +6 -0
- package/template/packages/frontend/src/lib/query-client.ts +25 -17
- package/template/packages/shared/package.json +2 -2
- package/templates/agent/biome.json +1 -1
- package/templates/agent/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,21 @@ step is overwritten by the next release.
|
|
|
12
12
|
|
|
13
13
|
## [Unreleased]
|
|
14
14
|
|
|
15
|
+
## [0.6.1] — 2026-09-20
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **The generated frontend carries the canonical React Query runtime shape.**
|
|
20
|
+
`lib/query-client.ts` owns request-local SSR identity, one browser singleton,
|
|
21
|
+
pending dehydration, application `staleTime` and the retry policy a released
|
|
22
|
+
core already lets it state — one retry for queries, none for mutations — with
|
|
23
|
+
a test that keeps it there. It does not depend on an unreleased Stitchkit
|
|
24
|
+
export; `UPGRADING.md` records the one-step cutover to
|
|
25
|
+
`createQueryClientFactory` after the matching core release is available.
|
|
26
|
+
- **The generated workspace now targets Stitchkit `^0.90.5` and current stable
|
|
27
|
+
dependencies.** Its root and agent lockfiles were regenerated independently while
|
|
28
|
+
preserving the single `catalog.stitchkit` source and workspace `catalog:` links.
|
|
29
|
+
|
|
15
30
|
## [0.6.0] — 2026-09-02
|
|
16
31
|
|
|
17
32
|
The generated project stops being an empty frame with a to-do at the bottom of
|
package/UPGRADING.md
CHANGED
|
@@ -60,6 +60,29 @@ the first scaffolder release with a migration channel of its own.
|
|
|
60
60
|
|
|
61
61
|
---
|
|
62
62
|
|
|
63
|
+
## Released migration: 0.6.1
|
|
64
|
+
|
|
65
|
+
### Canonical query client factory
|
|
66
|
+
|
|
67
|
+
This migration is additive, but it has a dependency order: first upgrade to a
|
|
68
|
+
Stitchkit release that exports `createQueryClientFactory` from
|
|
69
|
+
`stitchkit/react`. Then replace the local QueryClient construction with:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import { cache } from 'react';
|
|
73
|
+
import { createQueryClientFactory } from 'stitchkit/react';
|
|
74
|
+
|
|
75
|
+
export const getQueryClient = createQueryClientFactory({
|
|
76
|
+
serverCache: cache,
|
|
77
|
+
queryClient: {
|
|
78
|
+
defaultOptions: { queries: { staleTime: 30_000 } },
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Keep project-specific mutation toasts or cache configuration in the factory
|
|
84
|
+
options. Do not copy the framework retry predicate back into the application.
|
|
85
|
+
|
|
63
86
|
## Released migration: 0.6.0
|
|
64
87
|
|
|
65
88
|
The scaffolder gained a vertical feature. Adopting it in a project you already
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-stitchkit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Create a production-shaped Stitchkit application",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Max Listov <maxlistov@gmail.com>",
|
|
@@ -73,17 +73,17 @@
|
|
|
73
73
|
"prepublishOnly": "bun run check && bun run test && bun run build"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"zod": "^4.
|
|
76
|
+
"zod": "^4.6.5"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@opentui/core": "^0.5.
|
|
80
|
-
"@opentui/react": "^0.5.
|
|
81
|
-
"@openrouter/ai-sdk-provider": "^3.
|
|
82
|
-
"@types/bun": "^1.4.
|
|
83
|
-
"@types/react": "^19.
|
|
84
|
-
"ai": "^7.0.
|
|
85
|
-
"react": "^19.
|
|
86
|
-
"stitchkit": "0.
|
|
79
|
+
"@opentui/core": "^0.5.11",
|
|
80
|
+
"@opentui/react": "^0.5.11",
|
|
81
|
+
"@openrouter/ai-sdk-provider": "^3.1.0",
|
|
82
|
+
"@types/bun": "^1.4.2",
|
|
83
|
+
"@types/react": "^19.3.0",
|
|
84
|
+
"ai": "^7.0.107",
|
|
85
|
+
"react": "^19.3.0",
|
|
86
|
+
"stitchkit": "0.90.5",
|
|
87
87
|
"typescript": "^7.0.2"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
package/template/biome.json
CHANGED