@remix-run/express
Advanced tools
Comparing version 0.0.0-nightly-5fb59ccb4-20240730 to 0.0.0-nightly-5ffb6f5c2-20241121
@@ -1,3 +0,60 @@ | ||
# `@remix-run/express` | ||
# @remix-run/express | ||
## 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 | ||
@@ -85,3 +142,3 @@ | ||
- Vite: Add a new `basename` option to the Vite plugin, allowing users to set the internal React Router [`basename`](https://reactrouter.com/en/main/routers/create-browser-router#basename) in order to to serve their applications underneath a subpath ([#8145](https://github.com/remix-run/remix/pull/8145)) | ||
- 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)) | ||
@@ -88,0 +145,0 @@ ### Patch Changes |
/** | ||
* @remix-run/express v0.0.0-nightly-5fb59ccb4-20240730 | ||
* @remix-run/express v0.0.0-nightly-5ffb6f5c2-20241121 | ||
* | ||
@@ -4,0 +4,0 @@ * Copyright (c) Remix Software Inc. |
/** | ||
* @remix-run/express v0.0.0-nightly-5fb59ccb4-20240730 | ||
* @remix-run/express v0.0.0-nightly-5ffb6f5c2-20241121 | ||
* | ||
@@ -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": "0.0.0-nightly-5fb59ccb4-20240730", | ||
"version": "0.0.0-nightly-5ffb6f5c2-20241121", | ||
"description": "Express server request handler for Remix", | ||
@@ -17,3 +17,3 @@ "bugs": { | ||
"dependencies": { | ||
"@remix-run/node": "0.0.0-nightly-5fb59ccb4-20240730" | ||
"@remix-run/node": "0.0.0-nightly-5ffb6f5c2-20241121" | ||
}, | ||
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17518
151
0
+ Added@remix-run/node@0.0.0-nightly-5ffb6f5c2-20241121(transitive)
+ Added@remix-run/router@1.21.0(transitive)
+ Added@remix-run/server-runtime@0.0.0-nightly-5ffb6f5c2-20241121(transitive)
+ Addedturbo-stream@2.4.0(transitive)
- Removed@remix-run/node@0.0.0-nightly-5fb59ccb4-20240730(transitive)
- Removed@remix-run/router@0.0.0-experimental-9ffbba722(transitive)
- Removed@remix-run/server-runtime@0.0.0-nightly-5fb59ccb4-20240730(transitive)
- Removedturbo-stream@2.2.0(transitive)