@remix-run/react
Advanced tools
Comparing version 2.15.2 to 2.15.3-pre.0
# `@remix-run/react` | ||
## 2.15.3-pre.0 | ||
### Patch Changes | ||
- Properly handle status codes that cannot have a body in single fetch responses (204, etc.) ([#10410](https://github.com/remix-run/remix/pull/10410)) | ||
- Updated dependencies: | ||
- `@remix-run/server-runtime@2.15.3-pre.0` | ||
## 2.15.2 | ||
@@ -4,0 +12,0 @@ |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -315,2 +315,26 @@ * Copyright (c) Remix Software Inc. | ||
// files are served as `text/x-script`. We'll throw if we can't decode anyway. | ||
// some status codes are not permitted to have bodies, so we want to just | ||
// treat those as "no data" instead of throwing an exception. | ||
// 304 is not included here because the browser should fill those responses | ||
// with the cached body content. | ||
let NO_BODY_STATUS_CODES = new Set([100, 101, 204, 205]); | ||
if (NO_BODY_STATUS_CODES.has(res.status)) { | ||
if (!init.method || init.method === "GET") { | ||
// SingleFetchResults can just have no routeId keys which will result | ||
// in no data for all routes | ||
return { | ||
status: res.status, | ||
data: {} | ||
}; | ||
} else { | ||
// SingleFetchResult is for a singular route and can specify no data | ||
return { | ||
status: res.status, | ||
data: { | ||
data: null | ||
} | ||
}; | ||
} | ||
} | ||
invariant(res.body, "No response body to decode"); | ||
@@ -317,0 +341,0 @@ try { |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/react v2.15.2 | ||
* @remix-run/react v2.15.3-pre.0 | ||
* | ||
@@ -339,2 +339,26 @@ * Copyright (c) Remix Software Inc. | ||
// files are served as `text/x-script`. We'll throw if we can't decode anyway. | ||
// some status codes are not permitted to have bodies, so we want to just | ||
// treat those as "no data" instead of throwing an exception. | ||
// 304 is not included here because the browser should fill those responses | ||
// with the cached body content. | ||
let NO_BODY_STATUS_CODES = new Set([100, 101, 204, 205]); | ||
if (NO_BODY_STATUS_CODES.has(res.status)) { | ||
if (!init.method || init.method === "GET") { | ||
// SingleFetchResults can just have no routeId keys which will result | ||
// in no data for all routes | ||
return { | ||
status: res.status, | ||
data: {} | ||
}; | ||
} else { | ||
// SingleFetchResult is for a singular route and can specify no data | ||
return { | ||
status: res.status, | ||
data: { | ||
data: null | ||
} | ||
}; | ||
} | ||
} | ||
invariant(res.body, "No response body to decode"); | ||
@@ -341,0 +365,0 @@ try { |
{ | ||
"name": "@remix-run/react", | ||
"version": "2.15.2", | ||
"version": "2.15.3-pre.0", | ||
"description": "React DOM bindings for Remix", | ||
@@ -19,7 +19,7 @@ "bugs": { | ||
"dependencies": { | ||
"@remix-run/router": "1.21.0", | ||
"react-router": "6.28.1", | ||
"react-router-dom": "6.28.1", | ||
"@remix-run/router": "1.21.2-pre-v6.0", | ||
"react-router": "6.28.3-pre-v6.1", | ||
"react-router-dom": "6.28.3-pre-v6.1", | ||
"turbo-stream": "2.4.0", | ||
"@remix-run/server-runtime": "2.15.2" | ||
"@remix-run/server-runtime": "2.15.3-pre.0" | ||
}, | ||
@@ -34,4 +34,4 @@ "devDependencies": { | ||
"typescript": "^5.1.6", | ||
"@remix-run/node": "2.15.2", | ||
"@remix-run/react": "2.15.2" | ||
"@remix-run/node": "2.15.3-pre.0", | ||
"@remix-run/react": "2.15.3-pre.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "peerDependencies": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
366898
7647
2
+ Added@remix-run/router@1.21.2-pre-v6.0(transitive)
+ Added@remix-run/server-runtime@2.15.3-pre.0(transitive)
+ Addedreact-router@6.28.3-pre-v6.1(transitive)
+ Addedreact-router-dom@6.28.3-pre-v6.1(transitive)
- Removed@remix-run/router@1.21.0(transitive)
- Removed@remix-run/server-runtime@2.15.2(transitive)
- Removedreact-router@6.28.1(transitive)
- Removedreact-router-dom@6.28.1(transitive)
Updatedreact-router@6.28.3-pre-v6.1