@orieljs/inertia-react 0.1.0-alpha.3 → 0.1.0-alpha.5

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 (3) hide show
  1. package/NOTICE +9 -0
  2. package/README.md +1 -2
  3. package/package.json +2 -2
package/NOTICE ADDED
@@ -0,0 +1,9 @@
1
+ Oriel
2
+ Copyright 2026 meeeet-dev and Oriel contributors
3
+
4
+ This product includes software developed by the Oriel project
5
+ (https://orieljs.vercel.app, https://github.com/orieljs).
6
+
7
+ Oriel is licensed under the Apache License, Version 2.0 (see LICENSE).
8
+ The Oriel name and logo are not covered by that license; see TRADEMARKS.md
9
+ (https://github.com/orieljs/framework/blob/main/TRADEMARKS.md).
package/README.md CHANGED
@@ -23,12 +23,11 @@ export default function Index() {
23
23
  }
24
24
  ```
25
25
 
26
- It adds a typed `usePage<N>()` (props, shared props and errors come from the generated page types), `route()`, `hasRoute()`, `currentRoute()` and `isCurrentRoute()`, and a `./server` export for server-side rendering.
26
+ It adds a typed `usePage<N>()` (props, shared props and errors come from the generated page types), `route()`, `hasRoute()`, `currentRoute()` and `isCurrentRoute()`, and a `./server` export for server-side rendering. During server-side rendering `currentRoute()` and `isCurrentRoute()` read the URL of the page being rendered, so active links hydrate unchanged.
27
27
 
28
28
  Known limitations:
29
29
 
30
30
  - Precognition (`useForm().validate()`, `withPrecognition`) is exported by the official adapter, but Oriel has no Precognition middleware yet.
31
- - `currentRoute()` and `isCurrentRoute()` return nothing during server-side rendering (there is no `location`), so do not use them for markup that must hydrate identically.
32
31
 
33
32
  Status: early alpha. APIs will change.
34
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orieljs/inertia-react",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.5",
4
4
  "description": "The Oriel React adapter: the official Inertia React adapter with typed pages and route().",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@inertiajs/core": "3.7.1",
38
38
  "@inertiajs/react": "3.7.1",
39
- "@orieljs/inertia-client": "0.1.0-alpha.3"
39
+ "@orieljs/inertia-client": "0.1.0-alpha.5"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^19.0.0",