@_linked/server 2.13.1 → 2.13.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/CHANGELOG.md +11 -0
- package/lib/esm/types/RouteConfig.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @\_linked/server
|
|
2
2
|
|
|
3
|
+
## 2.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#89](https://github.com/linked-fw/server/pull/89) [`1f53442`](https://github.com/linked-fw/server/commit/1f53442e67cfb0abb263b0c430406b3846dc1bbc) Thanks [@flyon](https://github.com/flyon)! - `RouteConfig` compiles under React 19.
|
|
8
|
+
|
|
9
|
+
React 19 removed the global `JSX` namespace, so `RouteConfig`'s `component` and
|
|
10
|
+
`render` fields referenced a type that no longer exists and the package failed
|
|
11
|
+
to build for any consumer on React 19. They now use `React.JSX.Element`, which
|
|
12
|
+
is the same type under its current name.
|
|
13
|
+
|
|
3
14
|
## 2.13.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -13,11 +13,11 @@ export interface RouteConfig {
|
|
|
13
13
|
* For lazy loading, use React.lazy(() => import('./Component')) with webpackChunkName comment
|
|
14
14
|
* For eager loading, import the component directly
|
|
15
15
|
*/
|
|
16
|
-
component?: React.LazyExoticComponent<() => JSX.Element> | React.ComponentType<any>;
|
|
16
|
+
component?: React.LazyExoticComponent<() => React.JSX.Element> | React.ComponentType<any>;
|
|
17
17
|
/**
|
|
18
18
|
* Custom render function for the route (alternative to component)
|
|
19
19
|
*/
|
|
20
|
-
render?: () => JSX.Element;
|
|
20
|
+
render?: () => React.JSX.Element;
|
|
21
21
|
/**
|
|
22
22
|
* Whether this route requires authentication
|
|
23
23
|
* @default false
|