@real-router/react 0.30.4 → 0.31.0
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/package.json +3 -5
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ npm install @real-router/react @real-router/core @real-router/browser-plugin
|
|
|
23
23
|
| `@real-router/react/ssr` | 19.2+ | DOM (SSR-aware) | `<ClientOnly>`, `<ServerOnly>`, `<Await>`, `<Streamed>`, `useDeferred`, `<HttpStatusCode>`, `<HttpStatusProvider>`, `createHttpStatusSink` |
|
|
24
24
|
| `@real-router/react/legacy` | 18+ | DOM | Client API for React 18 (no `RouteView`, no SSR helpers) |
|
|
25
25
|
| `@real-router/react/legacy/ssr` | 18+ | DOM (SSR-aware) | SSR-feature subset for React 18 — same as `/ssr` minus `<Await>` (which depends on React 19's `use(promise)`) |
|
|
26
|
-
| `@real-router/react/ink` | 19.2+ | Terminal (Ink 7+) | Hooks, `InkRouterProvider`, `InkLink` — no `Link`, no `RouteView`, no `announceNavigation`
|
|
26
|
+
| `@real-router/react/ink` | 19.2+ | Terminal (Ink 7+) | Hooks, `InkRouterProvider`, `InkLink` — no `Link`, no `RouteView`, no `announceNavigation`. **ESM-only** (`import` only): ink itself is ESM-only with top-level await, so a `require`-able build of this entry cannot exist |
|
|
27
27
|
| `@real-router/react` (`react-server` condition) | 19+ | RSC bundler | **Type-only** re-exports for Server Components — no client runtime. Same condition applies to `/ssr` for prop types. |
|
|
28
28
|
|
|
29
29
|
All client entries share the same underlying hook code. `/legacy` excludes React 19.2 `<Activity>`; `/ink` excludes DOM-bound primitives (`<a>`-based `Link`, `announceNavigation`) and replaces them with keyboard-driven terminal equivalents. The `/ssr` split keeps server-only prop types out of the client TypeScript context for apps that don't touch SSR (bundle cost is ≈ 0 thanks to `"sideEffects": false`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@real-router/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "React integration for Real-Router",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -53,11 +53,9 @@
|
|
|
53
53
|
"./ink": {
|
|
54
54
|
"@real-router/internal-source": "./src/ink.ts",
|
|
55
55
|
"types": {
|
|
56
|
-
"import": "./dist/esm/ink.d.mts"
|
|
57
|
-
"require": "./dist/cjs/ink.d.ts"
|
|
56
|
+
"import": "./dist/esm/ink.d.mts"
|
|
58
57
|
},
|
|
59
|
-
"import": "./dist/esm/ink.mjs"
|
|
60
|
-
"require": "./dist/cjs/ink.js"
|
|
58
|
+
"import": "./dist/esm/ink.mjs"
|
|
61
59
|
},
|
|
62
60
|
"./ssr": {
|
|
63
61
|
"react-server": {
|