@remix-run/server-runtime
Advanced tools
Comparing version 1.2.3 to 1.3.0-pre.1
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -105,3 +105,3 @@ * Copyright (c) Remix Software Inc. | ||
if (isActionRequest(request)) { | ||
match = getActionRequestMatch(url, matches); | ||
match = getRequestMatch(url, matches); | ||
response = await callRouteAction({ | ||
@@ -210,3 +210,3 @@ loadContext, | ||
if (matches && isActionRequest(request)) { | ||
actionMatch = getActionRequestMatch(url, matches); | ||
actionMatch = getRequestMatch(url, matches); | ||
@@ -523,14 +523,17 @@ try { | ||
function isIndexRequestUrl(url) { | ||
let indexRequest = false; | ||
for (let param of url.searchParams.getAll("index")) { | ||
if (!param) { | ||
indexRequest = true; | ||
// only use bare `?index` params without a value | ||
// ✅ /foo?index | ||
// ✅ /foo?index&index=123 | ||
// ✅ /foo?index=123&index | ||
// ❌ /foo?index=123 | ||
if (param === "") { | ||
return true; | ||
} | ||
} | ||
return indexRequest; | ||
return false; | ||
} | ||
function getActionRequestMatch(url, matches) { | ||
function getRequestMatch(url, matches) { | ||
let match = matches.slice(-1)[0]; | ||
@@ -537,0 +540,0 @@ |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
{ | ||
"name": "@remix-run/server-runtime", | ||
"description": "Server runtime for Remix", | ||
"version": "1.2.3", | ||
"version": "1.3.0-pre.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "./index.js", |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -109,3 +109,3 @@ * Copyright (c) Remix Software Inc. | ||
if (isActionRequest(request)) { | ||
match = getActionRequestMatch(url, matches); | ||
match = getRequestMatch(url, matches); | ||
response = await data.callRouteAction({ | ||
@@ -214,3 +214,3 @@ loadContext, | ||
if (matches && isActionRequest(request)) { | ||
actionMatch = getActionRequestMatch(url, matches); | ||
actionMatch = getRequestMatch(url, matches); | ||
@@ -527,14 +527,17 @@ try { | ||
function isIndexRequestUrl(url) { | ||
let indexRequest = false; | ||
for (let param of url.searchParams.getAll("index")) { | ||
if (!param) { | ||
indexRequest = true; | ||
// only use bare `?index` params without a value | ||
// ✅ /foo?index | ||
// ✅ /foo?index&index=123 | ||
// ✅ /foo?index=123&index | ||
// ❌ /foo?index=123 | ||
if (param === "") { | ||
return true; | ||
} | ||
} | ||
return indexRequest; | ||
return false; | ||
} | ||
function getActionRequestMatch(url, matches) { | ||
function getRequestMatch(url, matches) { | ||
let match = matches.slice(-1)[0]; | ||
@@ -541,0 +544,0 @@ |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/server-runtime v1.2.3 | ||
* @remix-run/server-runtime v1.3.0-pre.1 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
114201
3224
2