@react-router/node 7.7.0-pre.2 → 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 CHANGED
@@ -1,25 +1,18 @@
1
1
  # `@react-router/node`
2
2
 
3
- ## 7.7.0-pre.2
3
+ ## 7.7.1-pre.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies:
8
- - `react-router@7.7.0-pre.2`
8
+ - `react-router@7.7.1-pre.0`
9
9
 
10
- ## 7.7.0-pre.1
10
+ ## 7.7.0
11
11
 
12
12
  ### Patch Changes
13
13
 
14
14
  - Updated dependencies:
15
- - `react-router@7.7.0-pre.1`
16
-
17
- ## 7.7.0-pre.0
18
-
19
- ### Patch Changes
20
-
21
- - Updated dependencies:
22
- - `react-router@7.7.0-pre.0`
15
+ - `react-router@7.7.0`
23
16
 
24
17
  ## 7.6.3
25
18
 
@@ -169,7 +162,6 @@
169
162
  - Remove single fetch future flag. ([#11522](https://github.com/remix-run/react-router/pull/11522))
170
163
 
171
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))
172
-
173
165
  - `createCookie`
174
166
  - `createCookieSessionStorage`
175
167
  - `createMemorySessionStorage`
@@ -178,7 +170,6 @@
178
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)
179
171
 
180
172
  Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
181
-
182
173
  - `createCookieFactory`
183
174
  - `createSessionStorageFactory`
184
175
  - `createCookieSessionStorageFactory`
@@ -191,7 +182,6 @@
191
182
  - node package no longer re-exports from react-router ([#11702](https://github.com/remix-run/react-router/pull/11702))
192
183
 
193
184
  - Drop support for Node 18, update minimum Node vestion to 20 ([#12171](https://github.com/remix-run/react-router/pull/12171))
194
-
195
185
  - Remove `installGlobals()` as this should no longer be necessary
196
186
 
197
187
  ### Patch Changes
@@ -338,7 +328,6 @@
338
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))
339
329
 
340
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)):
341
-
342
331
  - Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch`
343
332
  - Renamed `LoaderArgs`/`ActionArgs` to `LoaderFunctionArgs`/`ActionFunctionArgs`
344
333
  - `AppData` changed from `any` to `unknown`
@@ -350,11 +339,9 @@
350
339
  - `AppData`/`RouteHandle` are no longer exported as they are just aliases for `unknown`
351
340
 
352
341
  - The route `meta` API now defaults to the new "V2 Meta" API ([#6958](https://github.com/remix-run/remix/pull/6958))
353
-
354
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.
355
343
 
356
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))
357
-
358
345
  - If you are using `remix-serve`, nothing is required
359
346
  - If you are using your own app server, you will need to install the globals yourself
360
347
 
@@ -365,7 +352,6 @@
365
352
  ```
366
353
 
367
354
  - `source-map-support` is now a responsibility of the app server ([#7009](https://github.com/remix-run/remix/pull/7009))
368
-
369
355
  - If you are using `remix-serve`, nothing is required
370
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.
371
357
 
@@ -499,7 +485,6 @@
499
485
  ### Minor Changes
500
486
 
501
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))
502
-
503
488
  - `V2_HtmlMetaDescriptor` has been renamed to `V2_MetaDescriptor`
504
489
  - The `meta` function's arguments have been simplified
505
490
  - `parentsData` has been removed, as each route's loader data is available on the `data` property of its respective `match` object
@@ -592,12 +577,10 @@
592
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))
593
578
 
594
579
  Informational Resources:
595
-
596
580
  - <https://gist.github.com/jacob-ebey/9bde9546c1aafaa6bc8c242054b1be26>
597
581
  - <https://github.com/remix-run/remix/blob/main/decisions/0004-streaming-apis.md>
598
582
 
599
583
  Documentation Resources (better docs specific to Remix are in the works):
600
-
601
584
  - <https://reactrouter.com/en/main/utils/defer>
602
585
  - <https://reactrouter.com/en/main/components/await>
603
586
  - <https://reactrouter.com/en/main/hooks/use-async-value>
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/node v7.7.0-pre.2
2
+ * @react-router/node v7.7.1-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/node v7.7.0-pre.2
2
+ * @react-router/node v7.7.1-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-router/node",
3
- "version": "7.7.0-pre.2",
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-pre.2"
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-pre.2"
59
+ "react-router": "7.7.1-pre.0"
60
60
  },
61
61
  "peerDependenciesMeta": {
62
62
  "typescript": {