@remix-run/node
Advanced tools
Comparing version 0.0.0-nightly-6033198-20231222 to 0.0.0-nightly-612f33e63-20240502
/** | ||
* @remix-run/node v0.0.0-nightly-6033198-20231222 | ||
* @remix-run/node v0.0.0-nightly-612f33e63-20240502 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
@@ -17,3 +17,8 @@ declare global { | ||
} | ||
interface RequestInit { | ||
duplex?: "half"; | ||
} | ||
} | ||
export declare function installGlobals(): void; | ||
export declare function installGlobals({ nativeFetch, }?: { | ||
nativeFetch?: boolean; | ||
}): void; |
/** | ||
* @remix-run/node v0.0.0-nightly-6033198-20231222 | ||
* @remix-run/node v0.0.0-nightly-612f33e63-20240502 | ||
* | ||
@@ -15,29 +15,38 @@ * Copyright (c) Remix Software Inc. | ||
var webFetch = require('@remix-run/web-fetch'); | ||
var webStream = require('@remix-run/web-stream'); | ||
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; | ||
// 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; | ||
function installGlobals({ | ||
nativeFetch | ||
} = {}) { | ||
if (nativeFetch) { | ||
let { | ||
File: UndiciFile, | ||
fetch: undiciFetch, | ||
FormData: UndiciFormData, | ||
Headers: UndiciHeaders, | ||
Request: UndiciRequest, | ||
Response: UndiciResponse | ||
} = require("undici"); | ||
global.File = UndiciFile; | ||
global.Headers = UndiciHeaders; | ||
global.Request = UndiciRequest; | ||
global.Response = UndiciResponse; | ||
global.fetch = undiciFetch; | ||
global.FormData = UndiciFormData; | ||
} else { | ||
let { | ||
File: RemixFile, | ||
fetch: RemixFetch, | ||
FormData: RemixFormData, | ||
Headers: RemixHeaders, | ||
Request: RemixRequest, | ||
Response: RemixResponse | ||
} = require("@remix-run/web-fetch"); | ||
global.File = RemixFile; | ||
global.Headers = RemixHeaders; | ||
global.Request = RemixRequest; | ||
global.Response = RemixResponse; | ||
global.fetch = RemixFetch; | ||
global.FormData = RemixFormData; | ||
} | ||
} | ||
exports.installGlobals = installGlobals; |
/** | ||
* @remix-run/node v0.0.0-nightly-6033198-20231222 | ||
* @remix-run/node v0.0.0-nightly-612f33e63-20240502 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-6033198-20231222 | ||
* @remix-run/node v0.0.0-nightly-612f33e63-20240502 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-6033198-20231222 | ||
* @remix-run/node v0.0.0-nightly-612f33e63-20240502 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-6033198-20231222 | ||
* @remix-run/node v0.0.0-nightly-612f33e63-20240502 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-6033198-20231222 | ||
* @remix-run/node v0.0.0-nightly-612f33e63-20240502 | ||
* | ||
@@ -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-6033198-20231222", | ||
"version": "0.0.0-nightly-612f33e63-20240502", | ||
"description": "Node.js platform abstractions for Remix", | ||
@@ -20,10 +20,9 @@ "bugs": { | ||
"dependencies": { | ||
"@remix-run/server-runtime": "0.0.0-nightly-6033198-20231222", | ||
"@remix-run/server-runtime": "0.0.0-nightly-612f33e63-20240502", | ||
"@remix-run/web-fetch": "^4.4.2", | ||
"@remix-run/web-file": "^3.1.0", | ||
"@remix-run/web-stream": "^1.1.0", | ||
"@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 +53,6 @@ "devDependencies": { | ||
"README.md" | ||
] | ||
} | ||
], | ||
"scripts": { | ||
"tsc": "tsc" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8
797
0
30651
20
+ Addedundici@^6.10.1
+ Added@remix-run/router@1.16.1-pre.0(transitive)
+ Added@remix-run/server-runtime@0.0.0-nightly-612f33e63-20240502(transitive)
+ Added@types/cookie@0.6.0(transitive)
+ Addedcookie@0.6.0(transitive)
+ Addedturbo-stream@2.4.1(transitive)
+ Addedundici@6.21.0(transitive)
- Removed@remix-run/web-file@^3.1.0
- Removed@remix-run/web-stream@^1.1.0
- Removed@remix-run/router@1.14.0(transitive)
- Removed@remix-run/server-runtime@0.0.0-nightly-6033198-20231222(transitive)
- Removed@types/cookie@0.5.4(transitive)
- Removedcookie@0.5.0(transitive)
Updated@remix-run/server-runtime@0.0.0-nightly-612f33e63-20240502