@remix-run/server-runtime
Advanced tools
Comparing version 0.0.0-nightly-d216bca0c-20241212 to 0.0.0-nightly-d26a6fdf5-20250129
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -83,5 +83,10 @@ * Copyright (c) Remix Software Inc. | ||
if (parentSetCookieString) { | ||
var _childHeaders$getSetC; | ||
let cookies = splitCookiesString(parentSetCookieString); | ||
// @ts-expect-error This is not available in the polyfill or Node 18 and below | ||
let childCookies = new Set((_childHeaders$getSetC = childHeaders.getSetCookie) === null || _childHeaders$getSetC === void 0 ? void 0 : _childHeaders$getSetC.call(childHeaders)); | ||
cookies.forEach(cookie => { | ||
childHeaders.append("Set-Cookie", cookie); | ||
if (!childCookies.has(cookie)) { | ||
childHeaders.append("Set-Cookie", cookie); | ||
} | ||
}); | ||
@@ -88,0 +93,0 @@ } |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -25,2 +25,12 @@ * Copyright (c) Remix Software Inc. | ||
// Do not include a response body if the status code is one of these, | ||
// otherwise `undici` will throw an error when constructing the Response: | ||
// https://github.com/nodejs/undici/blob/bd98a6303e45d5e0d44192a93731b1defdb415f3/lib/web/fetch/response.js#L522-L528 | ||
// | ||
// Specs: | ||
// https://datatracker.ietf.org/doc/html/rfc9110#name-informational-1xx | ||
// https://datatracker.ietf.org/doc/html/rfc9110#name-204-no-content | ||
// https://datatracker.ietf.org/doc/html/rfc9110#name-205-reset-content | ||
// https://datatracker.ietf.org/doc/html/rfc9110#name-304-not-modified | ||
const NO_BODY_STATUS_CODES = new Set([100, 101, 204, 205, 304]); | ||
function derive(build, mode) { | ||
@@ -248,6 +258,6 @@ var _build$future, _build$future2; | ||
// 304 responses should not have a body | ||
if (status === 304) { | ||
// Skip response body for unsupported status codes | ||
if (NO_BODY_STATUS_CODES.has(status)) { | ||
return new Response(null, { | ||
status: 304, | ||
status, | ||
headers: resultHeaders | ||
@@ -287,6 +297,6 @@ }); | ||
// 304 responses should not have a body or a content-type | ||
if (context.statusCode === 304) { | ||
// Skip response body for unsupported status codes | ||
if (NO_BODY_STATUS_CODES.has(context.statusCode)) { | ||
return new Response(null, { | ||
status: 304, | ||
status: context.statusCode, | ||
headers | ||
@@ -293,0 +303,0 @@ }); |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -87,5 +87,10 @@ * Copyright (c) Remix Software Inc. | ||
if (parentSetCookieString) { | ||
var _childHeaders$getSetC; | ||
let cookies = setCookieParser.splitCookiesString(parentSetCookieString); | ||
// @ts-expect-error This is not available in the polyfill or Node 18 and below | ||
let childCookies = new Set((_childHeaders$getSetC = childHeaders.getSetCookie) === null || _childHeaders$getSetC === void 0 ? void 0 : _childHeaders$getSetC.call(childHeaders)); | ||
cookies.forEach(cookie => { | ||
childHeaders.append("Set-Cookie", cookie); | ||
if (!childCookies.has(cookie)) { | ||
childHeaders.append("Set-Cookie", cookie); | ||
} | ||
}); | ||
@@ -92,0 +97,0 @@ } |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -29,2 +29,12 @@ * Copyright (c) Remix Software Inc. | ||
// Do not include a response body if the status code is one of these, | ||
// otherwise `undici` will throw an error when constructing the Response: | ||
// https://github.com/nodejs/undici/blob/bd98a6303e45d5e0d44192a93731b1defdb415f3/lib/web/fetch/response.js#L522-L528 | ||
// | ||
// Specs: | ||
// https://datatracker.ietf.org/doc/html/rfc9110#name-informational-1xx | ||
// https://datatracker.ietf.org/doc/html/rfc9110#name-204-no-content | ||
// https://datatracker.ietf.org/doc/html/rfc9110#name-205-reset-content | ||
// https://datatracker.ietf.org/doc/html/rfc9110#name-304-not-modified | ||
const NO_BODY_STATUS_CODES = new Set([100, 101, 204, 205, 304]); | ||
function derive(build, mode$1) { | ||
@@ -252,6 +262,6 @@ var _build$future, _build$future2; | ||
// 304 responses should not have a body | ||
if (status === 304) { | ||
// Skip response body for unsupported status codes | ||
if (NO_BODY_STATUS_CODES.has(status)) { | ||
return new Response(null, { | ||
status: 304, | ||
status, | ||
headers: resultHeaders | ||
@@ -291,6 +301,6 @@ }); | ||
// 304 responses should not have a body or a content-type | ||
if (context.statusCode === 304) { | ||
// Skip response body for unsupported status codes | ||
if (NO_BODY_STATUS_CODES.has(context.statusCode)) { | ||
return new Response(null, { | ||
status: 304, | ||
status: context.statusCode, | ||
headers: headers$1 | ||
@@ -297,0 +307,0 @@ }); |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v0.0.0-nightly-d216bca0c-20241212 | ||
* @remix-run/server-runtime v0.0.0-nightly-d26a6fdf5-20250129 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/server-runtime", | ||
"version": "0.0.0-nightly-d216bca0c-20241212", | ||
"version": "0.0.0-nightly-d26a6fdf5-20250129", | ||
"description": "Server runtime for Remix", | ||
@@ -19,3 +19,3 @@ "bugs": { | ||
"dependencies": { | ||
"@remix-run/router": "1.21.0", | ||
"@remix-run/router": "1.21.2-pre-v6.0", | ||
"@types/cookie": "^0.6.0", | ||
@@ -22,0 +22,0 @@ "@web3-storage/multipart-parser": "^1.0.0", |
207029
5275
+ Added@remix-run/router@1.21.2-pre-v6.0(transitive)
- Removed@remix-run/router@1.21.0(transitive)