@react-router/node 0.0.0-experimental-d4ee0faac → 0.0.0-experimental-80dc2f07b
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 +2 -12
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# `@react-router/node`
|
|
2
2
|
|
|
3
|
-
## 7.7.0
|
|
3
|
+
## 7.7.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies:
|
|
8
|
-
- `react-router@7.7.0
|
|
8
|
+
- `react-router@7.7.0`
|
|
9
9
|
|
|
10
10
|
## 7.6.3
|
|
11
11
|
|
|
@@ -155,7 +155,6 @@
|
|
|
155
155
|
- Remove single fetch future flag. ([#11522](https://github.com/remix-run/react-router/pull/11522))
|
|
156
156
|
|
|
157
157
|
- 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
158
|
- `createCookie`
|
|
160
159
|
- `createCookieSessionStorage`
|
|
161
160
|
- `createMemorySessionStorage`
|
|
@@ -164,7 +163,6 @@
|
|
|
164
163
|
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
164
|
|
|
166
165
|
Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
|
|
167
|
-
|
|
168
166
|
- `createCookieFactory`
|
|
169
167
|
- `createSessionStorageFactory`
|
|
170
168
|
- `createCookieSessionStorageFactory`
|
|
@@ -177,7 +175,6 @@
|
|
|
177
175
|
- node package no longer re-exports from react-router ([#11702](https://github.com/remix-run/react-router/pull/11702))
|
|
178
176
|
|
|
179
177
|
- Drop support for Node 18, update minimum Node vestion to 20 ([#12171](https://github.com/remix-run/react-router/pull/12171))
|
|
180
|
-
|
|
181
178
|
- Remove `installGlobals()` as this should no longer be necessary
|
|
182
179
|
|
|
183
180
|
### Patch Changes
|
|
@@ -324,7 +321,6 @@
|
|
|
324
321
|
- 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
322
|
|
|
326
323
|
- 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
324
|
- Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch`
|
|
329
325
|
- Renamed `LoaderArgs`/`ActionArgs` to `LoaderFunctionArgs`/`ActionFunctionArgs`
|
|
330
326
|
- `AppData` changed from `any` to `unknown`
|
|
@@ -336,11 +332,9 @@
|
|
|
336
332
|
- `AppData`/`RouteHandle` are no longer exported as they are just aliases for `unknown`
|
|
337
333
|
|
|
338
334
|
- The route `meta` API now defaults to the new "V2 Meta" API ([#6958](https://github.com/remix-run/remix/pull/6958))
|
|
339
|
-
|
|
340
335
|
- 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
336
|
|
|
342
337
|
- 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
338
|
- If you are using `remix-serve`, nothing is required
|
|
345
339
|
- If you are using your own app server, you will need to install the globals yourself
|
|
346
340
|
|
|
@@ -351,7 +345,6 @@
|
|
|
351
345
|
```
|
|
352
346
|
|
|
353
347
|
- `source-map-support` is now a responsibility of the app server ([#7009](https://github.com/remix-run/remix/pull/7009))
|
|
354
|
-
|
|
355
348
|
- If you are using `remix-serve`, nothing is required
|
|
356
349
|
- 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
350
|
|
|
@@ -485,7 +478,6 @@
|
|
|
485
478
|
### Minor Changes
|
|
486
479
|
|
|
487
480
|
- 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
481
|
- `V2_HtmlMetaDescriptor` has been renamed to `V2_MetaDescriptor`
|
|
490
482
|
- The `meta` function's arguments have been simplified
|
|
491
483
|
- `parentsData` has been removed, as each route's loader data is available on the `data` property of its respective `match` object
|
|
@@ -578,12 +570,10 @@
|
|
|
578
570
|
- 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
571
|
|
|
580
572
|
Informational Resources:
|
|
581
|
-
|
|
582
573
|
- <https://gist.github.com/jacob-ebey/9bde9546c1aafaa6bc8c242054b1be26>
|
|
583
574
|
- <https://github.com/remix-run/remix/blob/main/decisions/0004-streaming-apis.md>
|
|
584
575
|
|
|
585
576
|
Documentation Resources (better docs specific to Remix are in the works):
|
|
586
|
-
|
|
587
577
|
- <https://reactrouter.com/en/main/utils/defer>
|
|
588
578
|
- <https://reactrouter.com/en/main/components/await>
|
|
589
579
|
- <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": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-80dc2f07b",
|
|
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": "0.0.0-experimental-
|
|
55
|
+
"react-router": "0.0.0-experimental-80dc2f07b"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"typescript": "^5.1.0",
|
|
59
|
-
"react-router": "0.0.0-experimental-
|
|
59
|
+
"react-router": "0.0.0-experimental-80dc2f07b"
|
|
60
60
|
},
|
|
61
61
|
"peerDependenciesMeta": {
|
|
62
62
|
"typescript": {
|