@remix-run/node
Advanced tools
Comparing version 0.0.0-nightly-6ec38fa-20240125 to 0.0.0-nightly-6f23bc960-20240821
/** | ||
* @remix-run/node v0.0.0-nightly-6ec38fa-20240125 | ||
* @remix-run/node v0.0.0-nightly-6f23bc960-20240821 | ||
* | ||
@@ -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-6ec38fa-20240125 | ||
* @remix-run/node v0.0.0-nightly-6f23bc960-20240821 | ||
* | ||
@@ -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-6ec38fa-20240125 | ||
* @remix-run/node v0.0.0-nightly-6f23bc960-20240821 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
@@ -6,3 +6,3 @@ export { installGlobals } from "./globals"; | ||
export { createReadableStreamFromReadable, readableStreamToString, writeAsyncIterableToWritable, writeReadableStreamToWritable, } from "./stream"; | ||
export { createRequestHandler, createSession, defer, broadcastDevReady, logDevReady, isCookie, isSession, json, MaxPartSizeExceededError, redirect, redirectDocument, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime"; | ||
export { createRequestHandler, createSession, unstable_data, unstable_defineLoader, unstable_defineAction, defer, broadcastDevReady, logDevReady, isCookie, isSession, json, MaxPartSizeExceededError, redirect, redirectDocument, replace, unstable_composeUploadHandlers, unstable_createMemoryUploadHandler, unstable_parseMultipartFormData, } from "@remix-run/server-runtime"; | ||
export type { ActionFunction, ActionFunctionArgs, AppLoadContext, Cookie, CookieOptions, CookieParseOptions, CookieSerializeOptions, CookieSignatureOptions, DataFunctionArgs, EntryContext, ErrorResponse, HandleDataRequestFunction, HandleDocumentRequestFunction, HeadersArgs, HeadersFunction, HtmlLinkDescriptor, JsonFunction, LinkDescriptor, LinksFunction, LoaderFunction, LoaderFunctionArgs, MemoryUploadHandlerFilterArgs, MemoryUploadHandlerOptions, HandleErrorFunction, PageLinkDescriptor, RequestHandler, SerializeFrom, ServerBuild, ServerEntryModule, ServerRuntimeMetaArgs as MetaArgs, ServerRuntimeMetaDescriptor as MetaDescriptor, ServerRuntimeMetaFunction as MetaFunction, Session, SessionData, SessionIdStorageStrategy, SessionStorage, SignFunction, TypedDeferredData, TypedResponse, UnsignFunction, UploadHandler, UploadHandlerPart, } from "@remix-run/server-runtime"; |
/** | ||
* @remix-run/node v0.0.0-nightly-6ec38fa-20240125 | ||
* @remix-run/node v0.0.0-nightly-6f23bc960-20240821 | ||
* | ||
@@ -80,2 +80,6 @@ * Copyright (c) Remix Software Inc. | ||
}); | ||
Object.defineProperty(exports, 'replace', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.replace; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_composeUploadHandlers', { | ||
@@ -89,2 +93,14 @@ enumerable: true, | ||
}); | ||
Object.defineProperty(exports, 'unstable_data', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.unstable_data; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_defineAction', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.unstable_defineAction; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_defineLoader', { | ||
enumerable: true, | ||
get: function () { return serverRuntime.unstable_defineLoader; } | ||
}); | ||
Object.defineProperty(exports, 'unstable_parseMultipartFormData', { | ||
@@ -91,0 +107,0 @@ enumerable: true, |
/** | ||
* @remix-run/node v0.0.0-nightly-6ec38fa-20240125 | ||
* @remix-run/node v0.0.0-nightly-6f23bc960-20240821 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-6ec38fa-20240125 | ||
* @remix-run/node v0.0.0-nightly-6f23bc960-20240821 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/node v0.0.0-nightly-6ec38fa-20240125 | ||
* @remix-run/node v0.0.0-nightly-6f23bc960-20240821 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/node", | ||
"version": "0.0.0-nightly-6ec38fa-20240125", | ||
"version": "0.0.0-nightly-6f23bc960-20240821", | ||
"description": "Node.js platform abstractions for Remix", | ||
@@ -20,10 +20,9 @@ "bugs": { | ||
"dependencies": { | ||
"@remix-run/server-runtime": "0.0.0-nightly-6ec38fa-20240125", | ||
"@remix-run/server-runtime": "0.0.0-nightly-6f23bc960-20240821", | ||
"@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.11.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
8
813
31273
20
+ Addedundici@^6.11.1
+ Added@remix-run/router@1.19.1(transitive)
+ Added@remix-run/server-runtime@0.0.0-nightly-6f23bc960-20240821(transitive)
+ Addedturbo-stream@2.3.0(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.2(transitive)
- Removed@remix-run/server-runtime@0.0.0-nightly-6ec38fa-20240125(transitive)
Updated@remix-run/server-runtime@0.0.0-nightly-6f23bc960-20240821