@react-router/express 7.2.0-pre.6 → 7.3.0-pre.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/CHANGELOG.md +7 -46
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,60 +1,21 @@
|
|
|
1
1
|
# `@react-router/express`
|
|
2
2
|
|
|
3
|
-
## 7.
|
|
3
|
+
## 7.3.0-pre.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- Update `express` `peerDependency` to include v5 (https://github.com/remix-run/react-router/pull/13064) ([#12961](https://github.com/remix-run/react-router/pull/12961))
|
|
7
8
|
- Updated dependencies:
|
|
8
|
-
- `react-router@7.
|
|
9
|
-
- `@react-router/node@7.
|
|
9
|
+
- `react-router@7.3.0-pre.0`
|
|
10
|
+
- `@react-router/node@7.3.0-pre.0`
|
|
10
11
|
|
|
11
|
-
## 7.2.0
|
|
12
|
+
## 7.2.0
|
|
12
13
|
|
|
13
14
|
### Patch Changes
|
|
14
15
|
|
|
15
16
|
- Updated dependencies:
|
|
16
|
-
- `react-router@7.2.0
|
|
17
|
-
- `@react-router/node@7.2.0
|
|
18
|
-
|
|
19
|
-
## 7.2.0-pre.4
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- Updated dependencies:
|
|
24
|
-
- `react-router@7.2.0-pre.4`
|
|
25
|
-
- `@react-router/node@7.2.0-pre.4`
|
|
26
|
-
|
|
27
|
-
## 7.2.0-pre.3
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- Updated dependencies:
|
|
32
|
-
- `react-router@7.2.0-pre.3`
|
|
33
|
-
- `@react-router/node@7.2.0-pre.3`
|
|
34
|
-
|
|
35
|
-
## 7.2.0-pre.2
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- Updated dependencies:
|
|
40
|
-
- `react-router@7.2.0-pre.2`
|
|
41
|
-
- `@react-router/node@7.2.0-pre.2`
|
|
42
|
-
|
|
43
|
-
## 7.2.0-pre.1
|
|
44
|
-
|
|
45
|
-
### Patch Changes
|
|
46
|
-
|
|
47
|
-
- Updated dependencies:
|
|
48
|
-
- `react-router@7.2.0-pre.1`
|
|
49
|
-
- `@react-router/node@7.2.0-pre.1`
|
|
50
|
-
|
|
51
|
-
## 7.2.0-pre.0
|
|
52
|
-
|
|
53
|
-
### Patch Changes
|
|
54
|
-
|
|
55
|
-
- Updated dependencies:
|
|
56
|
-
- `react-router@7.2.0-pre.0`
|
|
57
|
-
- `@react-router/node@7.2.0-pre.0`
|
|
17
|
+
- `react-router@7.2.0`
|
|
18
|
+
- `@react-router/node@7.2.0`
|
|
58
19
|
|
|
59
20
|
## 7.1.5
|
|
60
21
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as express from 'express';
|
|
2
|
-
import { AppLoadContext, ServerBuild } from 'react-router';
|
|
2
|
+
import { UNSAFE_MiddlewareEnabled, unstable_InitialContext, AppLoadContext, ServerBuild } from 'react-router';
|
|
3
3
|
|
|
4
4
|
/// <reference lib="dom.iterable" />
|
|
5
5
|
|
|
6
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
6
7
|
/**
|
|
7
8
|
* A function that returns the value to use as `context` in route `loader` and
|
|
8
9
|
* `action` functions.
|
|
@@ -11,7 +12,7 @@ import { AppLoadContext, ServerBuild } from 'react-router';
|
|
|
11
12
|
* environment/platform-specific values through to your loader/action, such as
|
|
12
13
|
* values that are generated by Express middleware like `req.session`.
|
|
13
14
|
*/
|
|
14
|
-
type GetLoadContextFunction = (req: express.Request, res: express.Response) =>
|
|
15
|
+
type GetLoadContextFunction = (req: express.Request, res: express.Response) => UNSAFE_MiddlewareEnabled extends true ? MaybePromise<unstable_InitialContext> : MaybePromise<AppLoadContext>;
|
|
15
16
|
type RequestHandler = (req: express.Request, res: express.Response, next: express.NextFunction) => Promise<void>;
|
|
16
17
|
/**
|
|
17
18
|
* Returns a request handler for Express that serves the response using Remix.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as express from 'express';
|
|
2
|
-
import { AppLoadContext, ServerBuild } from 'react-router';
|
|
2
|
+
import { UNSAFE_MiddlewareEnabled, unstable_InitialContext, AppLoadContext, ServerBuild } from 'react-router';
|
|
3
3
|
|
|
4
4
|
/// <reference lib="dom.iterable" />
|
|
5
5
|
|
|
6
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
6
7
|
/**
|
|
7
8
|
* A function that returns the value to use as `context` in route `loader` and
|
|
8
9
|
* `action` functions.
|
|
@@ -11,7 +12,7 @@ import { AppLoadContext, ServerBuild } from 'react-router';
|
|
|
11
12
|
* environment/platform-specific values through to your loader/action, such as
|
|
12
13
|
* values that are generated by Express middleware like `req.session`.
|
|
13
14
|
*/
|
|
14
|
-
type GetLoadContextFunction = (req: express.Request, res: express.Response) =>
|
|
15
|
+
type GetLoadContextFunction = (req: express.Request, res: express.Response) => UNSAFE_MiddlewareEnabled extends true ? MaybePromise<unstable_InitialContext> : MaybePromise<AppLoadContext>;
|
|
15
16
|
type RequestHandler = (req: express.Request, res: express.Response, next: express.NextFunction) => Promise<void>;
|
|
16
17
|
/**
|
|
17
18
|
* Returns a request handler for Express that serves the response using Remix.
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-router/express",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0-pre.0",
|
|
4
4
|
"description": "Express server request handler for React Router",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/react-router/issues"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@react-router/node": "7.
|
|
48
|
+
"@react-router/node": "7.3.0-pre.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/express": "^4.17.9",
|
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
"wireit": "0.14.9"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
|
-
"express": "^4.17.1",
|
|
62
|
+
"express": "^4.17.1 || ^5",
|
|
63
63
|
"typescript": "^5.1.0",
|
|
64
|
-
"react-router": "7.
|
|
64
|
+
"react-router": "7.3.0-pre.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"typescript": {
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"README.md"
|
|
79
79
|
],
|
|
80
80
|
"scripts": {
|
|
81
|
-
"build": "wireit"
|
|
81
|
+
"build": "wireit",
|
|
82
|
+
"typecheck": "tsc"
|
|
82
83
|
}
|
|
83
84
|
}
|