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

@remix-run/express

Package Overview
Dependencies
Maintainers
0
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 0.0.0-nightly-99a8d9c-20231031 to 0.0.0-nightly-99cf8578f-20241123

217

CHANGELOG.md
# `@remix-run/express`
## 2.15.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.15.0`
## 2.14.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.14.0`
## 2.13.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.13.1`
## 2.13.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`
## 2.12.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.12.1`
## 2.12.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.12.0`
## 2.11.2
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.11.2`
## 2.11.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.11.1`
## 2.11.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.11.0`
## 2.10.3
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.10.3`
## 2.10.2
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.10.2`
## 2.10.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.10.1`
## 2.10.0
### Patch Changes
- Upgrade `express` dependency to `^4.19.2` ([#9184](https://github.com/remix-run/remix/pull/9184))
- Updated dependencies:
- `@remix-run/node@2.10.0`
## 2.9.2
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.9.2`
## 2.9.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.9.1`
## 2.9.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.9.0`
## 2.8.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.8.1`
## 2.8.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.8.0`
## 2.7.2
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.7.2`
## 2.7.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.7.1`
## 2.7.0
### Minor Changes
- Vite: Add a new `basename` option to the Vite plugin, allowing users to set the internal React Router [`basename`](https://reactrouter.com/v6/routers/create-browser-router#basename) in order to to serve their applications underneath a subpath ([#8145](https://github.com/remix-run/remix/pull/8145))
### Patch Changes
- Use `req.originalUrl` instead of `req.url` so that Remix sees the full URL ([#8145](https://github.com/remix-run/remix/pull/8145))
- Remix relies on the knowing the full URL to ensure that server and client code can function together, and does not support URL rewriting prior to the Remix handler
- Updated dependencies:
- `@remix-run/node@2.7.0`
## 2.6.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.6.0`
## 2.5.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.5.1`
## 2.5.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.5.0`
## 2.4.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.4.1`
## 2.4.0
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.4.0`
## 2.3.1
### Patch Changes
- Updated dependencies:
- `@remix-run/node@2.3.1`
## 2.3.0
### Patch Changes
- Fix flash of unstyled content on initial page load in Vite dev when using a custom Express server ([#7937](https://github.com/remix-run/remix/pull/7937))
- Updated dependencies:
- `@remix-run/node@2.3.0`
## 2.2.0
### Patch Changes
- Allow the `@remix-run/express` adapter to work behind a proxy when using `app.enable('trust proxy')` ([#7323](https://github.com/remix-run/remix/pull/7323))
- Previously, this used `req.get('host')` to construct the Remix `Request`, but that does not respect `X-Forwarded-Host`
- This now uses `req.hostname` which will respect `X-Forwarded-Host`
- Updated dependencies:
- `@remix-run/node@2.2.0`
## 2.1.0

@@ -4,0 +221,0 @@

2

dist/index.js
/**
* @remix-run/express v0.0.0-nightly-99a8d9c-20231031
* @remix-run/express v0.0.0-nightly-99cf8578f-20241123
*

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

/**
* @remix-run/express v0.0.0-nightly-99a8d9c-20231031
* @remix-run/express v0.0.0-nightly-99cf8578f-20241123
*

@@ -74,7 +74,5 @@ * Copyright (c) Remix Software Inc.

let resolvedHost = `${req.hostname}${port ? `:${port}` : ""}`;
let url = new URL(`${req.protocol}://${resolvedHost}${req.url}`);
// Abort action/loaders once we can no longer write a response
// Use `req.originalUrl` so Remix is aware of the full path
let url = new URL(`${req.protocol}://${resolvedHost}${req.originalUrl}`);
let controller = new AbortController();
res.on("close", () => controller.abort());
let init = {

@@ -89,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);

@@ -91,0 +99,0 @@ }

MIT License
Copyright (c) Remix Software Inc. 2020-2021
Copyright (c) Shopify Inc. 2022-2023
Copyright (c) Shopify Inc. 2022-2024

@@ -6,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "@remix-run/express",
"version": "0.0.0-nightly-99a8d9c-20231031",
"version": "0.0.0-nightly-99cf8578f-20241123",
"description": "Express server request handler for Remix",

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

"dependencies": {
"@remix-run/node": "0.0.0-nightly-99a8d9c-20231031"
"@remix-run/node": "0.0.0-nightly-99cf8578f-20241123"
},

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

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

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

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

@@ -48,3 +48,6 @@ },

"README.md"
]
}
],
"scripts": {
"tsc": "tsc"
}
}
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