Skip to content

Try not to terminate due to unhandled promise rejections#2878

Merged
benjie merged 9 commits intomainfrom
unhandled-rejections
Jan 7, 2026
Merged

Try not to terminate due to unhandled promise rejections#2878
benjie merged 9 commits intomainfrom
unhandled-rejections

Conversation

@benjie
Copy link
Member

@benjie benjie commented Jan 7, 2026

Some of our async iterable .throw(...) and .return(...) calls were not guarded, allowing for a rejected promise to cause the entire system to crash. This PR goes through every Promise.reject(...) and .throw(...) and .return(...) call and ensures they have suitable handling in place.

@github-project-automation github-project-automation bot moved this to 🌳 Triage in V5.0.0 Jan 7, 2026
@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2026

🦋 Changeset detected

Latest commit: 6245194

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

This PR includes changesets to release 16 packages
Name Type
postgraphile Patch
@dataplan/pg Patch
grafserv Patch
grafast Patch
graphile-utils Patch
pgl Patch
graphile Patch
graphile-build-pg Patch
@grafserv/persisted Patch
@localrepo/grafast-bench Patch
@dataplan/json Patch
ruru-components Patch
@localrepo/grafast-website Patch
graphile-build Patch
graphile-export Patch
ruru 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

@benjie benjie enabled auto-merge January 7, 2026 16:40
@benjie benjie merged commit b29f7ef into main Jan 7, 2026
46 checks passed
@benjie benjie deleted the unhandled-rejections branch January 7, 2026 17:26
@github-project-automation github-project-automation bot moved this from 🌳 Triage to ✅ Done in V5.0.0 Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant