Skip to content

Conversation

@mhart
Copy link
Contributor

@mhart mhart commented Nov 11, 2025

Ensure errors are correctly handled in the Writable stream write.

Previously this would throw an unhandled exception if the response stream had closed (eg, connection had been terminated). This is handled correctly if Node.js 24 stream behaviour is used, but not Node.js 22 or earlier.

Returning the callback with the error ensures consistent behaviour for all Node.js versions (or compat versions)

Ensure errors are correctly handled in the Writable stream write.

Previously this would throw an unhandled exception if the response stream had closed (eg, connection had been terminated). This is handled correctly if Node.js 24 stream behaviour is used, but not Node.js 22 or earlier.

Returning the callback with the error ensures consistent behaviour for all Node.js versions (or compat versions)
@changeset-bot
Copy link

changeset-bot bot commented Nov 11, 2025

🦋 Changeset detected

Latest commit: 9c1611b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 11, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@1035

commit: 9c1611b

@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 28.03% 2855 / 10182
🔵 Statements 28.03% 2855 / 10182
🔵 Functions 52.46% 149 / 284
🔵 Branches 76.19% 717 / 941
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/open-next/src/overrides/wrappers/cloudflare-node.ts 0% 0% 0% 0% 1-133
Generated in workflow #1626 for commit 9c1611b by the Vitest Coverage Report Action

Enhance error handling specifically for cloudflare node converters.
@mhart mhart merged commit 78d2197 into main Nov 12, 2025
3 checks passed
@mhart mhart deleted the mhart-patch-writable-write branch November 12, 2025 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants