Skip to content

fix: prevent unhandled promise rejection - #16219

Merged
dummdidumm merged 1 commit into
mainfrom
unhandled-rejection-fix
Jul 2, 2026
Merged

fix: prevent unhandled promise rejection#16219
dummdidumm merged 1 commit into
mainfrom
unhandled-rejection-fix

Conversation

@dummdidumm

Copy link
Copy Markdown
Member

If the promise fails, nobody catches it, which can take down the process.

I added .catch(...) in two more places out of abundance of caution. They can right now not result in an unhandled promise rejection (because other code paths make sure they never throw) but if they start to in the future it's better to safe-guard against it now already.

If the promise fails, nobody catches it, which can take down the process.

I added `.catch(...)` in two more places out of abundance of caution. They can right now not result in an unhandled promise rejection (because other code paths make sure they never throw) but if they start to in the future it's better to safe-guard against it now already.
@pkg-svelte-dev

pkg-svelte-dev Bot commented Jul 2, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 8c1cea1:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/8c1cea1b442f251188a9be14e43264d1f020553d

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/16219

@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8c1cea1

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

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit 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

@svelte-docs-bot

Copy link
Copy Markdown

@dummdidumm
dummdidumm merged commit 82b0370 into main Jul 2, 2026
44 of 47 checks passed
@dummdidumm
dummdidumm deleted the unhandled-rejection-fix branch July 2, 2026 21:36
@github-actions github-actions Bot mentioned this pull request Jul 2, 2026
dummdidumm pushed a commit that referenced this pull request Jul 2, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @sveltejs/kit@2.69.1

### Patch Changes


- fix: prevent prototype pollution when deleting file inputs
([#16218](#16218))


- fix: prevent unhandled promise rejection
([#16219](#16219))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants