@vercel/remix
Advanced tools
Comparing version 2.0.1 to 2.1.0
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -18,2 +18,3 @@ * Copyright (c) Vercel, Inc. | ||
var isbot = require('isbot'); | ||
var node = require('@remix-run/node'); | ||
@@ -44,9 +45,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
let body = new stream.PassThrough(); | ||
pipe(body); | ||
resolve( | ||
// @ts-expect-error | ||
new Response(body, { | ||
let stream$1 = node.createReadableStreamFromReadable(body); | ||
resolve(new Response(stream$1, { | ||
status: responseStatusCode, | ||
headers: responseHeaders | ||
})); | ||
pipe(body); | ||
}, | ||
@@ -71,9 +71,8 @@ onShellError(err) { | ||
let body = new stream.PassThrough(); | ||
pipe(body); | ||
resolve( | ||
// @ts-expect-error | ||
new Response(body, { | ||
let stream$1 = node.createReadableStreamFromReadable(body); | ||
resolve(new Response(stream$1, { | ||
status: didError ? 500 : responseStatusCode, | ||
headers: responseHeaders | ||
})); | ||
pipe(body); | ||
}, | ||
@@ -80,0 +79,0 @@ onShellError(err) { |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -15,3 +15,5 @@ * Copyright (c) Vercel, Inc. | ||
const genRanHex = size => [...Array(size)].map(() => Math.floor(Math.random() * 16).toString(16)).join(""); | ||
const genRanHex = size => Array.from({ | ||
length: size | ||
}, () => Math.floor(Math.random() * 16).toString(16)).join(""); | ||
const createKvSessionStorageFactory = createSessionStorage => { | ||
@@ -43,3 +45,3 @@ return ({ | ||
async readData(id) { | ||
return (await kv.get(id)) || null; | ||
return (await kv.get(id)) ?? null; | ||
}, | ||
@@ -46,0 +48,0 @@ async updateData(id, data, expires) { |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
{ | ||
"name": "@vercel/remix", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Isomorphic runtime + adapter for Remix on Vercel", | ||
@@ -28,4 +28,4 @@ "repository": { | ||
"dependencies": { | ||
"@remix-run/node": "2.0.1", | ||
"@remix-run/server-runtime": "2.0.1", | ||
"@remix-run/node": "2.1.0", | ||
"@remix-run/server-runtime": "2.1.0", | ||
"isbot": "^3.6.8" | ||
@@ -32,0 +32,0 @@ }, |
/** | ||
* @vercel/remix v2.0.1 | ||
* @vercel/remix v2.1.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Vercel, Inc. |
Sorry, the diff of this file is not supported yet
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
761
100305
+ Added@remix-run/node@2.1.0(transitive)
+ Added@remix-run/router@1.10.0(transitive)
+ Added@remix-run/server-runtime@2.1.0(transitive)
- Removed@remix-run/node@2.0.1(transitive)
- Removed@remix-run/router@1.9.0(transitive)
- Removed@remix-run/server-runtime@2.0.1(transitive)
- Removedtype-fest@4.29.0(transitive)
Updated@remix-run/node@2.1.0