New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@remix-run/react

Package Overview
Dependencies
Maintainers
2
Versions
1048
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remix-run/react - npm Package Compare versions

Comparing version 2.15.2 to 2.15.3-pre.0

8

CHANGELOG.md
# `@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 @@

2

dist/_virtual/_rollupPluginBabelHelpers.js
/**
* @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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc