rsc-kit 0.24.2 → 0.24.3

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.
Files changed (2) hide show
  1. package/README.md +23 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # rsc-kit
2
2
 
3
3
  The command line for [rsc-kit](https://rsc-kit.dev) — React Server Components
4
- as a Vite plugin, on any JavaScript server.
4
+ as a Vite plugin, deployed wherever Nitro deploys.
5
5
 
6
6
  ```sh
7
- bunx rsc-kit@latest init # add it to a project you already have
7
+ bunx rsc-kit@latest init # add it to the project in this directory
8
8
  ```
9
9
 
10
10
  Starting from nothing instead:
@@ -13,10 +13,27 @@ Starting from nothing instead:
13
13
  bun create rsc-kit@latest my-app
14
14
  ```
15
15
 
16
- `init` never rewrites anything that exists. It writes the files you do not have,
17
- adds the dependencies you are missing, and for your vite config and your server
18
- — the two files most likely to hold work that took a while to get right — it
19
- prints the exact edit for you to make.
16
+ ## Commands
17
+
18
+ **`rsc-kit init`** adds rsc-kit to the project in this directory, or starts
19
+ one there if it is empty. Nothing existing is rewritten: it writes the files
20
+ you do not have, adds the dependencies you are missing, adds its entry to
21
+ list-like files (`.mcp.json`, `AGENTS.md`, `tsconfig.json`'s `include`,
22
+ `.env`) with yours left as written, and for anything else already there, such
23
+ as your vite config, prints the exact edit for you to make. In a Go module it does the JavaScript half — `package.json`, the
24
+ route tree, `vite.config.ts`, `.env` with `RSC_BACKEND` and a generated
25
+ secret — and prints the Go half ([Go](https://docs.rsc-kit.dev/hosts/go)). A
26
+ Laravel app runs it through `php artisan rsc:install`
27
+ ([Laravel](https://docs.rsc-kit.dev/hosts/laravel)). `rsc-kit init --help`
28
+ lists its flags.
29
+
30
+ **`rsc-kit typegen`** writes the route types without starting Vite, for a
31
+ typecheck after a route was added. `--check` writes nothing and exits
32
+ non-zero when the committed `rsc-host.json` or route types are no longer what
33
+ the backend and the routes produce — a CI step.
34
+
35
+ Name the tag: `bunx rsc-kit init` reuses whatever copy bunx downloaded first,
36
+ while `bunx rsc-kit@latest init` fetches the current one.
20
37
 
21
38
  Installing this package also gives you [`@rsc-kit/core`](https://www.npmjs.com/package/@rsc-kit/core),
22
39
  so `import { rscKit } from '@rsc-kit/core/vite'` works after `bun add rsc-kit`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsc-kit",
3
- "version": "0.24.2",
3
+ "version": "0.24.3",
4
4
  "type": "module",
5
5
  "description": "The rsc-kit command line: add it to a project, and freeze what can be frozen.",
6
6
  "bin": {
@@ -27,8 +27,8 @@
27
27
  },
28
28
  "homepage": "https://rsc-kit.dev",
29
29
  "dependencies": {
30
- "@rsc-kit/core": "^0.24.2",
31
- "create-rsc-kit": "^0.24.2"
30
+ "@rsc-kit/core": "^0.24.3",
31
+ "create-rsc-kit": "^0.24.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^24.0.0",