Skip to content

fix: server-guard-related bugs - #16257

Merged
Rich-Harris merged 7 commits into
version-3from
elliott/remote-dx-fixes
Jul 7, 2026
Merged

fix: server-guard-related bugs#16257
Rich-Harris merged 7 commits into
version-3from
elliott/remote-dx-fixes

Conversation

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

Copy link
Copy Markdown
Contributor

Closes #16232
Closes #16217

We were bailing too early on server-only module searches -- if modules were imported on both the server and the client, we would only explore one branch.

@pkg-svelte-dev

pkg-svelte-dev Bot commented Jul 7, 2026

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 51ba2a1:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/51ba2a1748315920e5834cae69a6cb7941bc429b

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

@changeset-bot

changeset-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 51ba2a1

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

Base automatically changed from remote-error to version-3 July 7, 2026 20:38
@Rich-Harris
Rich-Harris merged commit be72ed9 into version-3 Jul 7, 2026
18 checks passed
@Rich-Harris
Rich-Harris deleted the elliott/remote-dx-fixes branch July 7, 2026 21:09
Rich-Harris pushed a commit that referenced this pull request Jul 8, 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.7

### Major Changes

- breaking: change `form.error` type from `any` to `App.Error |
undefined` ([#16245](#16245))

- feat: allow adapters to provide additional Vite plugins
([#16206](#16206))

- breaking: move tracing out of the experimental namespace and remove
the instrumentation flag
([#16260](#16260))

- breaking: remove `$app/stores`
([#15499](#15499))

- breaking: disallow `*.remote.ts/js` files unless
`experimental.remoteFunctions` is enabled
([#16247](#16247))

- breaking: remove param files in folder in favor of `params.js/ts` file
([#16189](#16189))

### Patch Changes

- fix: defer `query.refresh()` in server commands until after the
command body completes
([#16225](#16225))

- fix: resolve service worker and `tsconfig.json` based on Vite `root`
setting ([#16229](#16229))

- fix: populate `$app/env/*` dynamic variables in contexts that don't
run the dev server, such as `vite-node`
([#16223](#16223))

- fix: no longer throw "An impossible situation occurred" when a
server-only module is imported by both server and client code
([#16257](#16257))

- fix: set `define` values on `globalThis` when running Vitest
([#16246](#16246))

- fix: serve `.ico` files with `image/x-icon` Content-Type
([#16234](#16234))

- fix: make `paths.origin` type looser
([#16215](#16215))

- fix: avoid client build warning about externalising `node:async_hooks`
([#16244](#16244))

- fix: allow reserved words (e.g. `delete`, `class`) as remote function
export names ([#16264](#16264))
## @sveltejs/adapter-netlify@7.0.0-next.2

### Patch Changes

- fix: ensure types for `platform.context` work
([#16255](#16255))
- Updated dependencies
[[`ba78a0b`](ba78a0b),
[`a248c9b`](a248c9b),
[`7596981`](7596981),
[`be72ed9`](be72ed9),
[`a5bd7e2`](a5bd7e2),
[`dec671f`](dec671f),
[`82f3867`](82f3867),
[`97eb324`](97eb324),
[`e2a9ac0`](e2a9ac0),
[`309bfb4`](309bfb4),
[`522a86b`](522a86b),
[`0ff547f`](0ff547f),
[`3d4ff91`](3d4ff91),
[`c925f2a`](c925f2a),
[`7daf445`](7daf445)]:
  - @sveltejs/kit@3.0.0-next.7

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

3 participants