Skip to content

fix: response.write() to return a bool (resolves #683) - #702

Merged
brettstack merged 1 commit into
CodeGenieApp:mainlinefrom
corememltd:write-bool
Dec 7, 2025
Merged

brettstack merged 1 commit into
CodeGenieApp:mainlinefrom
corememltd:write-bool

Conversation

@jimdigriz

@jimdigriz jimdigriz commented Aug 4, 2025 •

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented Dec 8, 2025

Copy link
Copy Markdown

🎉 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

github-actions Bot commented Dec 8, 2025

Copy link
Copy Markdown

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

The release is available on:

Your semantic-release bot 📦🚀

github-actions Bot pushed a commit that referenced this pull request Apr 16, 2026
# [5.0.0](v4.17.1...v5.0.0) (2026-04-16)

### Bug Fixes

* **event-sources:** prevent static resource path from being stripped without custom domain ([5b2e683](5b2e683))
* 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
Copy Markdown

🎉 This PR is included in version 5.0.0 🎉

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