Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remix-run/express

Package Overview
Dependencies
Maintainers
2
Versions
1030
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remix-run/express - npm Package Compare versions

Comparing version 2.12.1 to 2.13.0-pre.0

8

CHANGELOG.md
# `@remix-run/express`
## 2.13.0-pre.0
### Patch Changes
- Fix adapter logic for aborting `request.signal` so we don't incorrectly abort on the `close` event for successful requests ([#10046](https://github.com/remix-run/remix/pull/10046))
- Updated dependencies:
- `@remix-run/node@2.13.0-pre.0`
## 2.12.1

@@ -4,0 +12,0 @@

2

dist/index.js
/**
* @remix-run/express v2.12.1
* @remix-run/express v2.13.0-pre.0
*

@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc.

/**
* @remix-run/express v2.12.1
* @remix-run/express v2.13.0-pre.0
*

@@ -76,6 +76,3 @@ * Copyright (c) Remix Software Inc.

let url = new URL(`${req.protocol}://${resolvedHost}${req.originalUrl}`);
// Abort action/loaders once we can no longer write a response
let controller = new AbortController();
res.on("close", () => controller.abort());
let init = {

@@ -90,2 +87,12 @@ method: req.method,

}
// Abort action/loaders once we can no longer write a response iff we have
// not yet sent a response (i.e., `close` without `finish`)
// `finish` -> done rendering the response
// `close` -> response can no longer be written to
res.on("finish", () => controller = null);
res.on("close", () => {
var _controller;
return (_controller = controller) === null || _controller === void 0 ? void 0 : _controller.abort();
});
return new Request(url.href, init);

@@ -92,0 +99,0 @@ }

{
"name": "@remix-run/express",
"version": "2.12.1",
"version": "2.13.0-pre.0",
"description": "Express server request handler for Remix",

@@ -17,3 +17,3 @@ "bugs": {

"dependencies": {
"@remix-run/node": "2.12.1"
"@remix-run/node": "2.13.0-pre.0"
},

@@ -24,3 +24,3 @@ "devDependencies": {

"@types/supertest": "^2.0.10",
"express": "^4.19.2",
"express": "^4.20.0",
"node-mocks-http": "^1.10.1",

@@ -31,3 +31,3 @@ "supertest": "^6.3.3",

"peerDependencies": {
"express": "^4.19.2",
"express": "^4.20.0",
"typescript": "^5.1.0"

@@ -34,0 +34,0 @@ },

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