@real-router/react 0.30.3 → 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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +6 -8
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.30.3",
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": {
@@ -117,9 +115,9 @@
117
115
  "license": "MIT",
118
116
  "sideEffects": false,
119
117
  "dependencies": {
120
- "@real-router/core": "^0.84.0",
118
+ "@real-router/core": "^0.85.0",
121
119
  "@real-router/route-utils": "^0.3.0",
122
- "@real-router/sources": "^0.13.2"
120
+ "@real-router/sources": "^0.13.3"
123
121
  },
124
122
  "devDependencies": {
125
123
  "@testing-library/dom": "~10.4.1",
@@ -129,7 +127,7 @@
129
127
  "ink": "7.1.1",
130
128
  "ink-testing-library": "4.0.0",
131
129
  "vitest-react-profiler": "1.12.0",
132
- "@real-router/browser-plugin": "^0.19.2"
130
+ "@real-router/browser-plugin": "^0.19.3"
133
131
  },
134
132
  "peerDependencies": {
135
133
  "@types/react": ">=18.0.0",