create-stitchkit 0.6.0 → 0.6.2

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,46 @@ step is overwritten by the next release.
12
12
 
13
13
  ## [Unreleased]
14
14
 
15
+ ## [0.6.2] — 2026-09-21
16
+
17
+ ### Fixed
18
+
19
+ - **A scaffold installs the framework the manifest promises.** 0.6.1 rode in the
20
+ same release train as stitchkit 0.90.6 and therefore shipped a lockfile
21
+ resolving 0.90.5: a lockfile is written by an install, so it could not name a
22
+ version that train had not published yet. Every scaffold from 0.6.1 got a
23
+ framework one release behind the one its own range allowed. The template now
24
+ targets `^0.90.7` over a lockfile resolving 0.90.7, and the framework's release
25
+ machinery refuses that shape of train outright.
26
+
27
+ ### Changed
28
+
29
+ - **The generated frontend takes its QueryClient from the framework.**
30
+ `lib/query-client.ts` now calls `createQueryClientFactory` from
31
+ `stitchkit/react` instead of restating it locally. The local copy spelled the
32
+ query retry as a plain `1`, which retries an unauthorized, forbidden or invalid
33
+ request exactly as eagerly as a network blip; the framework predicate retries
34
+ server failures and network faults and leaves the rest alone. Request-local
35
+ server identity, the browser singleton, pending dehydration and the
36
+ no-retry-for-mutations rule are unchanged in behaviour. This is the cutover
37
+ `UPGRADING.md` recorded under *Released migration: 0.6.1* — adopting it in a
38
+ project you already own remains optional.
39
+
40
+ ## [0.6.1] — 2026-09-20
41
+
42
+ ### Changed
43
+
44
+ - **The generated frontend carries the canonical React Query runtime shape.**
45
+ `lib/query-client.ts` owns request-local SSR identity, one browser singleton,
46
+ pending dehydration, application `staleTime` and the retry policy a released
47
+ core already lets it state — one retry for queries, none for mutations — with
48
+ a test that keeps it there. It does not depend on an unreleased Stitchkit
49
+ export; `UPGRADING.md` records the one-step cutover to
50
+ `createQueryClientFactory` after the matching core release is available.
51
+ - **The generated workspace now targets Stitchkit `^0.90.5` and current stable
52
+ dependencies.** Its root and agent lockfiles were regenerated independently while
53
+ preserving the single `catalog.stitchkit` source and workspace `catalog:` links.
54
+
15
55
  ## [0.6.0] — 2026-09-02
16
56
 
17
57
  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.2",
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
  "**",