create-rsc-kit 0.16.0 → 0.16.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/README.md +1 -1
- package/dist/templates.js +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,4 +20,4 @@ payload to a production client, a stylesheet with no server-component classes
|
|
|
20
20
|
in it, an engine declaration that typechecks the server and fails the prerender.
|
|
21
21
|
What comes out has those right.
|
|
22
22
|
|
|
23
|
-
Docs: https://rsc-kit.dev · Licence: MIT
|
|
23
|
+
Docs: https://docs.rsc-kit.dev · Licence: MIT
|
package/dist/templates.js
CHANGED
|
@@ -126,7 +126,7 @@ export function packageJson(o) {
|
|
|
126
126
|
// every route. TanStack Start pins a dated beta for the same reason.
|
|
127
127
|
nitro: '3.0.260903-beta',
|
|
128
128
|
...(o.host === 'worker'
|
|
129
|
-
? { wrangler: '^4.0.0', '@cloudflare/workers-types': '^
|
|
129
|
+
? { wrangler: '^4.0.0', '@cloudflare/workers-types': '^5.0.0' }
|
|
130
130
|
: {}),
|
|
131
131
|
// Not redundant, though it is also the engine's peer: the generated entry
|
|
132
132
|
// imports '@vitejs/plugin-rsc/rsc' by specifier, so it has to resolve from
|
|
@@ -265,9 +265,10 @@ export const tsconfig = (o) => JSON.stringify({
|
|
|
265
265
|
skipLibCheck: true,
|
|
266
266
|
resolveJsonModule: true,
|
|
267
267
|
types: o.host === 'worker'
|
|
268
|
-
? // A Worker has neither node globals nor Bun's
|
|
269
|
-
// vite/client for import.meta.env.
|
|
270
|
-
|
|
268
|
+
? // A Worker has neither node globals nor Bun's: its own types, and
|
|
269
|
+
// vite/client for import.meta.env. Bun's as well, because the
|
|
270
|
+
// tests run under bun:test - the two sets coexist.
|
|
271
|
+
['@cloudflare/workers-types', 'vite/client', '@types/bun']
|
|
271
272
|
: o.host === 'node'
|
|
272
273
|
? ['node', 'vite/client']
|
|
273
274
|
: ['@types/bun', 'vite/client'],
|
|
@@ -507,7 +508,7 @@ React Server Components through \`@rsc-kit/core\`, a Vite plugin. Routes are
|
|
|
507
508
|
files under \`${o.sourceDir}/app\`. There is no server file to edit — the build
|
|
508
509
|
generates it.
|
|
509
510
|
|
|
510
|
-
Read the guides at https://rsc-kit.dev before reaching for a pattern from
|
|
511
|
+
Read the guides at https://docs.rsc-kit.dev before reaching for a pattern from
|
|
511
512
|
another framework. The notes below are only the things most often got wrong.
|
|
512
513
|
|
|
513
514
|
The \`rsc-kit\` MCP server in \`.mcp.json\` answers from this project's last
|
|
@@ -718,8 +719,9 @@ deploys is changing that one string.${compile}
|
|
|
718
719
|
|
|
719
720
|
Freezing is part of \`build\`: it renders every page it can and stores the
|
|
720
721
|
result, so those pages are read off disk instead of rendered per visitor.
|
|
721
|
-
|
|
722
|
-
|
|
722
|
+
There is no switch to turn it off for the app; a page that must render per
|
|
723
|
+
request says \`await connection()\`, and the build names any page it could
|
|
724
|
+
not render.
|
|
723
725
|
|
|
724
726
|
## Where things go
|
|
725
727
|
|
|
@@ -735,6 +737,6 @@ A directory with a \`page.tsx\` is a route, so \`src/app/about/page.tsx\` is
|
|
|
735
737
|
\`.rsc-kit/\` is the build's: the route types that make \`href\` checkable, and
|
|
736
738
|
the ambient declarations. Rewritten every build, and gitignored.
|
|
737
739
|
|
|
738
|
-
Docs: https://rsc-kit.dev
|
|
740
|
+
Docs: https://docs.rsc-kit.dev
|
|
739
741
|
`;
|
|
740
742
|
}
|