@remix-run/node
Advanced tools
Comparing version 0.0.0-nightly-882f370-20231023 to 0.0.0-nightly-8838b45e4-20240328
/** | ||
* @remix-run/node v0.0.0-nightly-882f370-20231023 | ||
* @remix-run/node v0.0.0-nightly-8838b45e4-20240328 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
@@ -17,3 +17,6 @@ declare global { | ||
} | ||
interface RequestInit { | ||
duplex?: "half"; | ||
} | ||
} | ||
export declare function installGlobals(): void; |
/** | ||
* @remix-run/node v0.0.0-nightly-882f370-20231023 | ||
* @remix-run/node v0.0.0-nightly-8838b45e4-20240328 | ||
* | ||
@@ -15,29 +15,19 @@ * Copyright (c) Remix Software Inc. | ||
var webFetch = require('@remix-run/web-fetch'); | ||
var webStream = require('@remix-run/web-stream'); | ||
var undici = require('undici'); | ||
function installGlobals() { | ||
global.File = webFetch.File; | ||
global.Headers = webFetch.Headers; | ||
global.Request = webFetch.Request; | ||
global.Response = webFetch.Response; | ||
global.fetch = webFetch.fetch; | ||
global.FormData = webFetch.FormData; | ||
global.File = undici.File; | ||
// Export everything from https://developer.mozilla.org/en-US/docs/Web/API/Streams_API | ||
global.ByteLengthQueuingStrategy = webStream.ByteLengthQueuingStrategy; | ||
global.CountQueuingStrategy = webStream.CountQueuingStrategy; | ||
global.ReadableByteStreamController = webStream.ReadableByteStreamController; | ||
global.ReadableStream = webStream.ReadableStream; | ||
global.ReadableStreamBYOBReader = webStream.ReadableStreamBYOBReader; | ||
global.ReadableStreamBYOBRequest = webStream.ReadableStreamBYOBRequest; | ||
global.ReadableStreamDefaultController = webStream.ReadableStreamDefaultController; | ||
global.ReadableStreamDefaultReader = webStream.ReadableStreamDefaultReader; | ||
global.TransformStream = webStream.TransformStream; | ||
global.TransformStreamDefaultController = webStream.TransformStreamDefaultController; | ||
global.WritableStream = webStream.WritableStream; | ||
global.WritableStreamDefaultController = webStream.WritableStreamDefaultController; | ||
global.WritableStreamDefaultWriter = webStream.WritableStreamDefaultWriter; | ||
// @ts-expect-error - overriding globals | ||
global.Headers = undici.Headers; | ||
// @ts-expect-error - overriding globals | ||
global.Request = undici.Request; | ||
// @ts-expect-error - overriding globals | ||
global.Response = undici.Response; | ||
// @ts-expect-error - overriding globals | ||
global.fetch = undici.fetch; | ||
// @ts-expect-error - overriding globals | ||
global.FormData = undici.FormData; | ||
} | ||
exports.installGlobals = installGlobals; |
/** | ||
* @remix-run/node v0.0.0-nightly-882f370-20231023 | ||
* @remix-run/node v0.0.0-nightly-8838b45e4-20240328 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-882f370-20231023 | ||
* @remix-run/node v0.0.0-nightly-8838b45e4-20240328 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-882f370-20231023 | ||
* @remix-run/node v0.0.0-nightly-8838b45e4-20240328 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-882f370-20231023 | ||
* @remix-run/node v0.0.0-nightly-8838b45e4-20240328 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-882f370-20231023 | ||
* @remix-run/node v0.0.0-nightly-8838b45e4-20240328 | ||
* | ||
@@ -173,3 +173,2 @@ * Copyright (c) Remix Software Inc. | ||
} | ||
async arrayBuffer() { | ||
@@ -176,0 +175,0 @@ let stream = node_fs.createReadStream(this.filepath); |
MIT License | ||
Copyright (c) Remix Software Inc. 2020-2021 | ||
Copyright (c) Shopify Inc. 2022-2023 | ||
Copyright (c) Shopify Inc. 2022-2024 | ||
@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "@remix-run/node", | ||
"version": "0.0.0-nightly-882f370-20231023", | ||
"version": "0.0.0-nightly-8838b45e4-20240328", | ||
"description": "Node.js platform abstractions for Remix", | ||
@@ -20,10 +20,8 @@ "bugs": { | ||
"dependencies": { | ||
"@remix-run/server-runtime": "0.0.0-nightly-882f370-20231023", | ||
"@remix-run/web-fetch": "^4.4.1", | ||
"@remix-run/web-file": "^3.1.0", | ||
"@remix-run/web-stream": "^1.1.0", | ||
"@remix-run/server-runtime": "0.0.0-nightly-8838b45e4-20240328", | ||
"@web3-storage/multipart-parser": "^1.0.0", | ||
"cookie-signature": "^1.1.0", | ||
"source-map-support": "^0.5.21", | ||
"stream-slice": "^0.1.2" | ||
"stream-slice": "^0.1.2", | ||
"undici": "^6.10.1" | ||
}, | ||
@@ -54,3 +52,6 @@ "devDependencies": { | ||
"README.md" | ||
] | ||
} | ||
], | ||
"scripts": { | ||
"tsc": "tsc" | ||
} | ||
} |
7
30117
20
774
+ Addedundici@^6.10.1
+ Added@remix-run/router@1.16.0-pre.0(transitive)
+ Added@remix-run/server-runtime@0.0.0-nightly-8838b45e4-20240328(transitive)
+ Added@types/cookie@0.6.0(transitive)
+ Addedcookie@0.6.0(transitive)
+ Addedturbo-stream@2.4.1(transitive)
+ Addedundici@6.21.1(transitive)
- Removed@remix-run/web-fetch@^4.4.1
- Removed@remix-run/web-file@^3.1.0
- Removed@remix-run/web-stream@^1.1.0
- Removed@remix-run/router@1.10.0(transitive)
- Removed@remix-run/server-runtime@0.0.0-nightly-882f370-20231023(transitive)
- Removed@remix-run/web-blob@3.1.0(transitive)
- Removed@remix-run/web-fetch@4.4.2(transitive)
- Removed@remix-run/web-file@3.1.0(transitive)
- Removed@remix-run/web-form-data@3.1.0(transitive)
- Removed@remix-run/web-stream@1.1.0(transitive)
- Removed@types/cookie@0.4.1(transitive)
- Removed@zxing/text-encoding@0.9.0(transitive)
- Removedabort-controller@3.0.0(transitive)
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedcall-bind@1.0.8(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removedcookie@0.4.2(transitive)
- Removeddata-uri-to-buffer@3.0.1(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.1.1(transitive)
- Removedevent-target-shim@5.0.1(transitive)
- Removedfor-each@0.3.4(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.7(transitive)
- Removedget-proto@1.0.1(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arguments@1.2.0(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-generator-function@1.1.0(transitive)
- Removedis-regex@1.2.1(transitive)
- Removedis-typed-array@1.1.15(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedmrmime@1.0.1(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedsafe-regex-test@1.1.0(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedutil@0.12.5(transitive)
- Removedweb-encoding@1.1.5(transitive)
- Removedweb-streams-polyfill@3.3.3(transitive)
- Removedwhich-typed-array@1.1.18(transitive)
Updated@remix-run/server-runtime@0.0.0-nightly-8838b45e4-20240328