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 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.0",
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.4.3"
76
+ "zod": "^4.6.5"
77
77
  },
78
78
  "devDependencies": {
79
- "@opentui/core": "^0.5.9",
80
- "@opentui/react": "^0.5.9",
81
- "@openrouter/ai-sdk-provider": "^3.0.0",
82
- "@types/bun": "^1.4.0",
83
- "@types/react": "^19.2.18",
84
- "ai": "^7.0.84",
85
- "react": "^19.2.8",
86
- "stitchkit": "0.71.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": {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.5.10/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.5.14/schema.json",
3
3
  "files": {
4
4
  "includes": [
5
5
  "**",