@remix-run/server-runtime
Advanced tools
Comparing version 2.12.0-pre.1 to 2.12.0-pre.2
# `@remix-run/server-runtime` | ||
## 2.12.0-pre.2 | ||
### Patch Changes | ||
- Support 304 responses on document requests ([#9955](https://github.com/remix-run/remix/pull/9955)) | ||
## 2.12.0-pre.1 | ||
@@ -4,0 +10,0 @@ |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -285,2 +285,10 @@ * Copyright (c) Remix Software Inc. | ||
// 304 responses should not have a body or a content-type | ||
if (context.statusCode === 304) { | ||
return new Response(null, { | ||
status: 304, | ||
headers | ||
}); | ||
} | ||
// Sanitize errors outside of development environments | ||
@@ -287,0 +295,0 @@ if (context.errors) { |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -289,2 +289,10 @@ * Copyright (c) Remix Software Inc. | ||
// 304 responses should not have a body or a content-type | ||
if (context.statusCode === 304) { | ||
return new Response(null, { | ||
status: 304, | ||
headers: headers$1 | ||
}); | ||
} | ||
// Sanitize errors outside of development environments | ||
@@ -291,0 +299,0 @@ if (context.errors) { |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
@@ -49,4 +49,3 @@ import type { StaticHandler, unstable_DataStrategyFunction as DataStrategyFunction, UNSAFE_DataWithResponseInit as DataWithResponseInit } from "@remix-run/router"; | ||
} : undefined; | ||
type Fn = (...args: any[]) => unknown; | ||
export type SerializeFrom<T extends Fn> = Parameters<T> extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? Awaited<ReturnType<T>> extends TypedResponse<infer U> ? Jsonify<U> : Awaited<ReturnType<T>> extends TypedDeferredData<infer U> ? U : Awaited<ReturnType<T>> : Awaited<ReturnType<T>> extends TypedResponse<infer U> ? Jsonify<U> : Awaited<ReturnType<T>> extends TypedDeferredData<infer U> ? Serialize<U> : Awaited<ReturnType<T>> extends DataWithResponseInit<infer D> ? Serialize<D> : Serialize<Awaited<ReturnType<T>>>; | ||
export type SerializeFrom<T> = T extends (...args: infer Args) => infer Return ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? Awaited<Return> extends TypedResponse<infer U> ? Jsonify<U> : Awaited<Return> extends TypedDeferredData<infer U> ? U : Awaited<Return> : Awaited<Return> extends TypedResponse<infer U> ? Jsonify<U> : Awaited<Return> extends TypedDeferredData<infer U> ? Serialize<U> : Awaited<Return> extends DataWithResponseInit<infer D> ? Serialize<D> : Serialize<Awaited<ReturnType<T>>> : T; | ||
export {}; |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v2.12.0-pre.1 | ||
* @remix-run/server-runtime v2.12.0-pre.2 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/server-runtime", | ||
"version": "2.12.0-pre.1", | ||
"version": "2.12.0-pre.2", | ||
"description": "Server runtime for Remix", | ||
@@ -5,0 +5,0 @@ "bugs": { |
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
266245
5211