@remix-run/node 2.9.0-pre.1 → 2.9.0-pre.3
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 +17 -0
- package/dist/crypto.js +1 -1
- package/dist/globals.d.ts +3 -1
- package/dist/globals.js +35 -16
- 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 +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# `@remix-run/node`
|
|
2
2
|
|
|
3
|
+
## 2.9.0-pre.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- - Put `undici` fetch polyfill behind a new `installGlobals({ nativeFetch: true })` parameter ([#9198](https://github.com/remix-run/remix/pull/9198))
|
|
8
|
+
- `remix-serve` will default to using `undici` for the fetch polyfill if `future._unstable_singleFetch` is enabled because the single fetch implementation relies on the `undici` polyfill
|
|
9
|
+
- Any users opting into Single Fetch and managing their own polfill will need to pass the flag to `installGlobals` on their own to avoid runtime errors with Single Fetch
|
|
10
|
+
- Updated dependencies:
|
|
11
|
+
- `@remix-run/server-runtime@2.9.0-pre.3`
|
|
12
|
+
|
|
13
|
+
## 2.9.0-pre.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies:
|
|
18
|
+
- `@remix-run/server-runtime@2.9.0-pre.2`
|
|
19
|
+
|
|
3
20
|
## 2.9.0-pre.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/crypto.js
CHANGED
package/dist/globals.d.ts
CHANGED
package/dist/globals.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @remix-run/node v2.9.0-pre.
|
|
2
|
+
* @remix-run/node v2.9.0-pre.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -12,21 +12,40 @@
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
function installGlobals({
|
|
16
|
+
nativeFetch
|
|
17
|
+
} = {}) {
|
|
18
|
+
if (nativeFetch) {
|
|
19
|
+
let {
|
|
20
|
+
File: UndiciFile,
|
|
21
|
+
fetch: undiciFetch,
|
|
22
|
+
FormData: UndiciFormData,
|
|
23
|
+
Headers: UndiciHeaders,
|
|
24
|
+
Request: UndiciRequest,
|
|
25
|
+
Response: UndiciResponse
|
|
26
|
+
} = require("undici");
|
|
27
|
+
global.File = UndiciFile;
|
|
28
|
+
global.Headers = UndiciHeaders;
|
|
29
|
+
global.Request = UndiciRequest;
|
|
30
|
+
global.Response = UndiciResponse;
|
|
31
|
+
global.fetch = undiciFetch;
|
|
32
|
+
global.FormData = UndiciFormData;
|
|
33
|
+
} else {
|
|
34
|
+
let {
|
|
35
|
+
File: RemixFile,
|
|
36
|
+
fetch: RemixFetch,
|
|
37
|
+
FormData: RemixFormData,
|
|
38
|
+
Headers: RemixHeaders,
|
|
39
|
+
Request: RemixRequest,
|
|
40
|
+
Response: RemixResponse
|
|
41
|
+
} = require("@remix-run/web-fetch");
|
|
42
|
+
global.File = RemixFile;
|
|
43
|
+
global.Headers = RemixHeaders;
|
|
44
|
+
global.Request = RemixRequest;
|
|
45
|
+
global.Response = RemixResponse;
|
|
46
|
+
global.fetch = RemixFetch;
|
|
47
|
+
global.FormData = RemixFormData;
|
|
48
|
+
}
|
|
30
49
|
}
|
|
31
50
|
|
|
32
51
|
exports.installGlobals = installGlobals;
|
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.9.0-pre.
|
|
3
|
+
"version": "2.9.0-pre.3",
|
|
4
4
|
"description": "Node.js platform abstractions for Remix",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/remix-run/remix/issues"
|
|
@@ -17,12 +17,13 @@
|
|
|
17
17
|
"./install.js"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
+
"@remix-run/web-fetch": "^4.4.2",
|
|
20
21
|
"@web3-storage/multipart-parser": "^1.0.0",
|
|
21
22
|
"cookie-signature": "^1.1.0",
|
|
22
23
|
"source-map-support": "^0.5.21",
|
|
23
24
|
"stream-slice": "^0.1.2",
|
|
24
25
|
"undici": "^6.10.1",
|
|
25
|
-
"@remix-run/server-runtime": "2.9.0-pre.
|
|
26
|
+
"@remix-run/server-runtime": "2.9.0-pre.3"
|
|
26
27
|
},
|
|
27
28
|
"devDependencies": {
|
|
28
29
|
"@types/cookie-signature": "^1.0.3",
|