@react-router/node 7.7.0 → 7.7.1-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 -10
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# `@react-router/node`
|
|
2
2
|
|
|
3
|
+
## 7.7.1-pre.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- `react-router@7.7.1-pre.0`
|
|
9
|
+
|
|
3
10
|
## 7.7.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -155,7 +162,6 @@
|
|
|
155
162
|
- Remove single fetch future flag. ([#11522](https://github.com/remix-run/react-router/pull/11522))
|
|
156
163
|
|
|
157
164
|
- For Remix consumers migrating to React Router, the `crypto` global from the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) is now required when using cookie and session APIs. This means that the following APIs are provided from `react-router` rather than platform-specific packages: ([#11837](https://github.com/remix-run/react-router/pull/11837))
|
|
158
|
-
|
|
159
165
|
- `createCookie`
|
|
160
166
|
- `createCookieSessionStorage`
|
|
161
167
|
- `createMemorySessionStorage`
|
|
@@ -164,7 +170,6 @@
|
|
|
164
170
|
For consumers running older versions of Node, the `installGlobals` function from `@remix-run/node` has been updated to define `globalThis.crypto`, using [Node's `require('node:crypto').webcrypto` implementation.](https://nodejs.org/api/webcrypto.html)
|
|
165
171
|
|
|
166
172
|
Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
|
|
167
|
-
|
|
168
173
|
- `createCookieFactory`
|
|
169
174
|
- `createSessionStorageFactory`
|
|
170
175
|
- `createCookieSessionStorageFactory`
|
|
@@ -177,7 +182,6 @@
|
|
|
177
182
|
- node package no longer re-exports from react-router ([#11702](https://github.com/remix-run/react-router/pull/11702))
|
|
178
183
|
|
|
179
184
|
- Drop support for Node 18, update minimum Node vestion to 20 ([#12171](https://github.com/remix-run/react-router/pull/12171))
|
|
180
|
-
|
|
181
185
|
- Remove `installGlobals()` as this should no longer be necessary
|
|
182
186
|
|
|
183
187
|
### Patch Changes
|
|
@@ -324,7 +328,6 @@
|
|
|
324
328
|
- Stop exporting the `fetch` API in favor of using the version in the global scope - which can be polyfilled via `installGlobals` ([#7293](https://github.com/remix-run/remix/pull/7293))
|
|
325
329
|
|
|
326
330
|
- Removed/adjusted types to prefer `unknown` over `any` and to align with underlying React Router types ([#7319](https://github.com/remix-run/remix/pull/7319), [#7354](https://github.com/remix-run/remix/pull/7354)):
|
|
327
|
-
|
|
328
331
|
- Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch`
|
|
329
332
|
- Renamed `LoaderArgs`/`ActionArgs` to `LoaderFunctionArgs`/`ActionFunctionArgs`
|
|
330
333
|
- `AppData` changed from `any` to `unknown`
|
|
@@ -336,11 +339,9 @@
|
|
|
336
339
|
- `AppData`/`RouteHandle` are no longer exported as they are just aliases for `unknown`
|
|
337
340
|
|
|
338
341
|
- The route `meta` API now defaults to the new "V2 Meta" API ([#6958](https://github.com/remix-run/remix/pull/6958))
|
|
339
|
-
|
|
340
342
|
- Please refer to the ([docs](https://remix.run/docs/en/2.0.0/route/meta) and [Preparing for V2](https://remix.run/docs/en/2.0.0/start/v2#route-meta) guide for more information.
|
|
341
343
|
|
|
342
344
|
- For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server ([#7009](https://github.com/remix-run/remix/pull/7009))
|
|
343
|
-
|
|
344
345
|
- If you are using `remix-serve`, nothing is required
|
|
345
346
|
- If you are using your own app server, you will need to install the globals yourself
|
|
346
347
|
|
|
@@ -351,7 +352,6 @@
|
|
|
351
352
|
```
|
|
352
353
|
|
|
353
354
|
- `source-map-support` is now a responsibility of the app server ([#7009](https://github.com/remix-run/remix/pull/7009))
|
|
354
|
-
|
|
355
355
|
- If you are using `remix-serve`, nothing is required
|
|
356
356
|
- If you are using your own app server, you will need to install [`source-map-support`](https://www.npmjs.com/package/source-map-support) yourself.
|
|
357
357
|
|
|
@@ -485,7 +485,6 @@
|
|
|
485
485
|
### Minor Changes
|
|
486
486
|
|
|
487
487
|
- We have made a few changes to the API for route module `meta` functions when using the `future.v2_meta` flag. **These changes are _only_ breaking for users who have opted in.** ([#5746](https://github.com/remix-run/remix/pull/5746))
|
|
488
|
-
|
|
489
488
|
- `V2_HtmlMetaDescriptor` has been renamed to `V2_MetaDescriptor`
|
|
490
489
|
- The `meta` function's arguments have been simplified
|
|
491
490
|
- `parentsData` has been removed, as each route's loader data is available on the `data` property of its respective `match` object
|
|
@@ -578,12 +577,10 @@
|
|
|
578
577
|
- Introduces the `defer()` API from `@remix-run/router` with support for server-rendering and HTTP streaming. This utility allows you to defer values returned from `loader` functions by returning promises instead of resolved values. This has been refered to as _"sending a promise over the wire"_. ([#4920](https://github.com/remix-run/remix/pull/4920))
|
|
579
578
|
|
|
580
579
|
Informational Resources:
|
|
581
|
-
|
|
582
580
|
- <https://gist.github.com/jacob-ebey/9bde9546c1aafaa6bc8c242054b1be26>
|
|
583
581
|
- <https://github.com/remix-run/remix/blob/main/decisions/0004-streaming-apis.md>
|
|
584
582
|
|
|
585
583
|
Documentation Resources (better docs specific to Remix are in the works):
|
|
586
|
-
|
|
587
584
|
- <https://reactrouter.com/en/main/utils/defer>
|
|
588
585
|
- <https://reactrouter.com/en/main/components/await>
|
|
589
586
|
- <https://reactrouter.com/en/main/hooks/use-async-value>
|
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/node",
|
|
3
|
-
"version": "7.7.0",
|
|
3
|
+
"version": "7.7.1-pre.0",
|
|
4
4
|
"description": "Node.js platform abstractions for React Router",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/react-router/issues"
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"tsup": "^8.3.0",
|
|
53
53
|
"typescript": "^5.1.6",
|
|
54
54
|
"wireit": "0.14.9",
|
|
55
|
-
"react-router": "7.7.0"
|
|
55
|
+
"react-router": "7.7.1-pre.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"typescript": "^5.1.0",
|
|
59
|
-
"react-router": "7.7.0"
|
|
59
|
+
"react-router": "7.7.1-pre.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"typescript": {
|