@remix-run/node 2.0.1-pre.0 → 2.0.1
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 +10 -4
- package/dist/crypto.js +1 -1
- package/dist/globals.js +1 -1
- package/dist/implementations.js +1 -1
- package/dist/index.js +1 -1
- package/dist/sessions/fileStorage.js +1 -1
- package/dist/stream.js +1 -1
- package/dist/upload/fileUploadHandler.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
# `@remix-run/node`
|
|
2
2
|
|
|
3
|
-
## 2.0.1
|
|
3
|
+
## 2.0.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Update to latest version of `@remix-run/web-fetch` ([#7477](https://github.com/remix-run/remix/pull/7477))
|
|
8
7
|
- Switch from `crypto.randomBytes` to `crypto.webcrypto.getRandomValues` for file session storage ID generation ([#7203](https://github.com/remix-run/remix/pull/7203))
|
|
9
|
-
- Use native `Blob`
|
|
8
|
+
- Use native `Blob` class instead of polyfill ([#7217](https://github.com/remix-run/remix/pull/7217))
|
|
10
9
|
- Updated dependencies:
|
|
11
|
-
- `@remix-run/server-runtime@2.0.1
|
|
10
|
+
- `@remix-run/server-runtime@2.0.1`
|
|
11
|
+
- [`@remix-run/web-fetch@4.4.1`](https://github.com/remix-run/web-std-io/releases/tag/%40remix-run%2Fweb-fetch%404.4.1)
|
|
12
12
|
|
|
13
13
|
## 2.0.0
|
|
14
14
|
|
|
15
15
|
### Major Changes
|
|
16
16
|
|
|
17
17
|
- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939))
|
|
18
|
+
|
|
18
19
|
- 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))
|
|
20
|
+
|
|
19
21
|
- 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)):
|
|
22
|
+
|
|
20
23
|
- Renamed the `useMatches()` return type from `RouteMatch` to `UIMatch`
|
|
21
24
|
- Renamed `LoaderArgs`/`ActionArgs` to `LoaderFunctionArgs`/`ActionFunctionArgs`
|
|
22
25
|
- `AppData` changed from `any` to `unknown`
|
|
@@ -26,8 +29,11 @@
|
|
|
26
29
|
- `Fetcher["data"]` (`useFetcher().data`) changed from `any` to `unknown`
|
|
27
30
|
- `MetaMatch.handle` (used in `meta()`) changed from `any` to `unknown`
|
|
28
31
|
- `AppData`/`RouteHandle` are no longer exported as they are just aliases for `unknown`
|
|
32
|
+
|
|
29
33
|
- The route `meta` API now defaults to the new "V2 Meta" API ([#6958](https://github.com/remix-run/remix/pull/6958))
|
|
34
|
+
|
|
30
35
|
- 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.
|
|
36
|
+
|
|
31
37
|
- 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))
|
|
32
38
|
|
|
33
39
|
- If you are using `remix-serve`, nothing is required
|
package/dist/crypto.js
CHANGED
package/dist/globals.js
CHANGED
package/dist/implementations.js
CHANGED
package/dist/index.js
CHANGED
package/dist/stream.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix-run/node",
|
|
3
|
-
"version": "2.0.1
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Node.js platform abstractions for Remix",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/remix/issues"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./install.js"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@remix-run/server-runtime": "2.0.1
|
|
20
|
+
"@remix-run/server-runtime": "2.0.1",
|
|
21
21
|
"@remix-run/web-fetch": "^4.4.1",
|
|
22
22
|
"@remix-run/web-file": "^3.1.0",
|
|
23
23
|
"@remix-run/web-stream": "^1.1.0",
|