Skip to content

chore: standardize server request, hook, and page diagnostics - #17275

Merged
Rich-Harris merged 2 commits into
message-box/public-sharedfrom
message-box/server
Oct 1, 2026
Merged

Rich-Harris merged 2 commits into
message-box/public-sharedfrom
message-box/server

Conversation

@elliott-with-the-longest-name-on-github

Copy link
Copy Markdown
Contributor

Moves request, cookie, hook, load, rendering, serialization, and action diagnostics to the @sveltejs/message-box catalog. Server-only errors keep their full text in production; runtime warnings use the existing development/production presentation rules.

Adds a server-warnings category and a capture_error helper for places that pass an Error to another handler instead of throwing it. Causes, custom stacks, non-fatal warnings, and HTTP/control-flow errors stay intact. Adds unit coverage for those boundaries and updates the existing server/browser assertions to check diagnostic codes.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@pkg-svelte-dev

pkg-svelte-dev Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 1cf299d:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/1cf299d972c39580185a016bb1fb0deef3f050cb

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

@changeset-bot

changeset-bot Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1cf299d

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

@elliott-with-the-longest-name-on-github
elliott-with-the-longest-name-on-github added this pull request to stack #17254 September 30, 2026 21:09
@svelte-docs-bot

Copy link
Copy Markdown

@Rich-Harris
Rich-Harris force-pushed the message-box/server branch 2 times, most recently from b922b66 to a28baa1 Compare October 1, 2026 11:44
Comment thread packages/kit/messages/server-warnings/request.md
Comment thread packages/kit/messages/server-warnings/request.md
Comment thread packages/kit/messages/server-warnings/request.md
Comment thread packages/kit/src/messages/server-warnings.js
@Rich-Harris
Rich-Harris merged commit de9e646 into version-3 Oct 1, 2026
41 checks passed
@Rich-Harris
Rich-Harris deleted the message-box/server branch October 1, 2026 12:38
Rich-Harris pushed a commit that referenced this pull request Oct 1, 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 version-3, this PR
will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`version-3` is currently in **pre mode** so this branch has prereleases
rather than normal releases. If you want to exit prereleases, run
`changeset pre exit` on `version-3`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @sveltejs/kit@3.0.0-next.32

### Patch Changes

- fix: prevent non-redirect enhanced form results from navigating to
another origin
([`91aae35`](91aae35))

- fix: escape cache-control headers in prerendered HTML
([`d9d55b5`](d9d55b5))

- fix: revert route metadata caching to regenerate missing root-route
types during sync ([#17281](#17281))

- fix: print `builder.log.warn` messages to stderr, as documented
([#17253](#17253))

- fix: prevent path traversal when previewing prerendered pages and data
on Windows
([`538edbf`](538edbf))

- chore: standardize remote-function and shared form diagnostics
([#17277](#17277))

- fix: prevent server-side self-fetch fallbacks from following redirects
([`b11bb87`](b11bb87))

- chore: standardize app template diagnostics
([#17250](#17250))

- chore: standardize Vite plugin, build, prerender and adapter
diagnostics ([#17253](#17253))

- chore: standardize client navigation, preload, snapshot and
enhancement diagnostics
([#17276](#17276))

- chore: standardize configuration, environment and tsconfig diagnostics
([#17251](#17251))

- chore: standardize public API, `$app/*` and deprecated module
diagnostics ([#17265](#17265))

- chore: standardize route discovery, parameter and route export
diagnostics ([#17252](#17252))

- chore: standardize server request, hook and page diagnostics
([#17275](#17275))

- fix: report tsconfig parse errors on Windows
([#17251](#17251))

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