Skip to content

Conversation

@jimdigriz
Copy link
Contributor

@jimdigriz jimdigriz commented Aug 4, 2025

Returning 'false'y tells the sender they need to wait for the 'drain' event which can cause middleware to hang (eg. SvelteKit adapter-node and trpc)

Original fix from @KATT in KATT@9ba260e

Issue #683:

Make response.write() return a bool (always 'true') to prevent middleware stalling waiting for a non-existent drain event.

Description of changes:

...added return true. :)

Checklist

  • Tests have been added and are passing
  • Documentation has been updated

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Returning 'false'y tells the sender they need to wait for the 'drain' event
which can cause middleware to hang (eg. SvelteKit adapter-node and trpc)

Original fix from @KATT in KATT@9ba260e
@brettstack brettstack merged commit d9be538 into CodeGenieApp:mainline Dec 7, 2025
github-actions bot pushed a commit that referenced this pull request Dec 8, 2025
## [4.17.2-beta.1](v4.17.1...v4.17.2-beta.1) (2025-12-08)

### Bug Fixes

* response.write() to return a bool (resolves [#683](#683)) ([#702](#702)) ([d9be538](d9be538))
* support nested routes and custom domains ([#555](#555)) ([422bac1](422bac1))
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

🎉 This PR is included in version 4.17.2-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Dec 8, 2025
# [5.0.0-beta.1](v4.17.1...v5.0.0-beta.1) (2025-12-08)

### Bug Fixes

* response.write() to return a bool (resolves [#683](#683)) ([#702](#702)) ([d9be538](d9be538))
* support nested routes and custom domains ([#555](#555)) ([422bac1](422bac1))

### Features

* v5.0.0 - Node.js 24 support and removal of deprecated APIs ([a6263a3](a6263a3))

### BREAKING CHANGES

* Minimum Node.js version is now 24 (though earlier versions may work)
* Handler no longer accepts callback parameter - async/Promise only
* Removed resolutionMode option (CALLBACK/CONTEXT modes removed)
* Removed binaryMimeTypes option (use binarySettings instead)
* Removed deprecated createServer() and proxy() exports
* Removed deprecated handler.handler() and handler.proxy() methods
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

🎉 This PR is included in version 5.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants