Skip to content

build(deps-dev): bump @sveltejs/kit and @sveltejs/adapter-static - #20

Merged
rapjul merged 4 commits into
mainfrom
dependabot/npm_and_yarn/multi-3e58aa5809
Nov 1, 2026
Merged

rapjul merged 4 commits into
mainfrom
dependabot/npm_and_yarn/multi-3e58aa5809

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @sveltejs/kit and @sveltejs/adapter-static. These dependencies needed to be updated together.
Updates @sveltejs/kit from 2.70.2 to 3.1.0

Release notes

Sourced from @​sveltejs/kit's releases.

@​sveltejs/kit@​3.1.0

Minor Changes

  • feat: support report-sha256/report-sha384/report-sha512 CSP hash-reporting keywords (#17398)

  • feat: emit a sveltekit.endpoint span for +server handlers when server tracing is enabled (#17325)

Patch Changes

  • fix: don't treat every module as server-only when the project is inside a server directory (#17376)

  • fix: continue deployment recovery when service worker updates fail (#17440)

  • fix: infer prerendered MIME types from generated files (#17381)

  • fix: leave generated files alone when their contents are unchanged (#17310)

  • fix: leave focus in the parent page when an app in an unfocused iframe starts or navigates (#17297)

  • fix: don't warn about Storybook's Vite plugins that use transformIndexHtml (#17373)

@​sveltejs/kit@​3.0.1

Patch Changes

  • fix: ensure relative imports in generated types work with nodenext module resolution (#17351)

@​sveltejs/kit@​3.0.0

Major Changes

  • breaking: move remote function types to $app/server (#16740)

  • breaking: remove experimental.handleRenderingErrors flag (#16265)

  • breaking: make getRequest and setResponse synchronous (#16280)

  • breaking: TypeScript 6 is now the minimum required version (#15930)

  • breaking: refresh all load functions/queries when clicking a link to the current URL (#16572)

  • breaking: move remote function types to $app/server (#16764)

  • breaking: upgrade to cookie v2. Cookie names must now contain only ASCII characters (#13386)

  • breaking: require Node 22 or newer (#12548)

  • major: error when a client-requested single-flight mutation isn't respected by the server, allow the server to explicitly ignore refreshes (#16892)

  • breaking: remove the preloadStrategy option. modulepreload will always be used (#15256)

  • breaking: default the cookie path option to '/' (#15398)

... (truncated)

Changelog

Sourced from @​sveltejs/kit's changelog.

3.1.0

Minor Changes

  • feat: support report-sha256/report-sha384/report-sha512 CSP hash-reporting keywords (#17398)

  • feat: emit a sveltekit.endpoint span for +server handlers when server tracing is enabled (#17325)

Patch Changes

  • fix: don't treat every module as server-only when the project is inside a server directory (#17376)

  • fix: continue deployment recovery when service worker updates fail (#17440)

  • fix: infer prerendered MIME types from generated files (#17381)

  • fix: leave generated files alone when their contents are unchanged (#17310)

  • fix: leave focus in the parent page when an app in an unfocused iframe starts or navigates (#17297)

  • fix: don't warn about Storybook's Vite plugins that use transformIndexHtml (#17373)

3.0.1

Patch Changes

  • fix: ensure relative imports in generated types work with nodenext module resolution (#17351)

3.0.0

Major Changes

  • breaking: move remote function types to $app/server (#16740)

  • breaking: remove experimental.handleRenderingErrors flag (#16265)

  • breaking: make getRequest and setResponse synchronous (#16280)

  • breaking: TypeScript 6 is now the minimum required version (#15930)

  • breaking: refresh all load functions/queries when clicking a link to the current URL (#16572)

  • breaking: move remote function types to $app/server (#16764)

  • breaking: upgrade to cookie v2. Cookie names must now contain only ASCII characters (#13386)

  • breaking: require Node 22 or newer (#12548)

  • major: error when a client-requested single-flight mutation isn't respected by the server, allow the server to explicitly ignore refreshes (#16892)

... (truncated)

Commits
  • 73bf98c Version Packages (#17364)
  • 38b95ac fix: continue deployment recovery when service worker updates fail (#17440)
  • c7e59b3 fix: leave focus in the parent page from an unfocused iframe (#17297)
  • 35835f2 feat: support report-sha256/report-sha384/report-sha512 CSP keywords (#17398)
  • 230d00c fix: infer prerendered MIME types from generated files (#17381)
  • 59441bc fix: don't treat every module as server-only when the project is inside a `se...
  • 3bc9234 fix: don't warn about Storybook's Vite plugins that use transformIndexHtml ...
  • 9b56543 fix: leave unchanged generated files alone, and replace changed ones atomical...
  • fd7cd9a docs: fix links (#17363)
  • 51a4e0b feat: emit a span for +server handlers when tracing is enabled (#17325)
  • Additional commits viewable in compare view

Updates @sveltejs/adapter-static from 3.0.10 to 4.0.0

Release notes

Sourced from @​sveltejs/adapter-static's releases.

@​sveltejs/adapter-static@​4.0.0

Major Changes

  • breaking: require SvelteKit 3 (#15506)

Patch Changes

  • chore: use node:fs instead of deprecated builder.rimraf and builder.mkdirp (#16610)

  • fix: avoid caching immutable asset 404s when configuring for Vercel (#16626)

  • fix: match adapter-vercel's prerendered redirect handling when deploying to Vercel (#16497)

  • fix: allow prerelease versions of SvelteKit 3 to satisfy the peer dependency range (#16286)

  • chore: use builder.config to access SvelteKit config settings (#16895)

  • Updated dependencies:

    • @​sveltejs/kit@​3.0.0

@​sveltejs/adapter-static@​4.0.0-next.4

Major Changes

  • breaking: require SvelteKit 3

Patch Changes

  • chore: use node:fs instead of deprecated builder.rimraf and builder.mkdirp (#16286)

  • fix: avoid caching immutable asset 404s when configuring for Vercel

  • fix: match adapter-vercel's prerendered redirect handling when deploying to Vercel

  • fix: allow prerelease versions of SvelteKit 3 to satisfy the peer dependency range

  • Updated dependencies [bbd1e2f, e21d27b, 6044d05, 7fb611f, 9f06b3a, 8763327, 7dc2379, a70c3eb, 89f49c7, f36b3a4, 1144a63, 9f06b3a]:

    • @​sveltejs/kit@​3.0.0-next.15

@​sveltejs/adapter-static@​4.0.0-next.3

Patch Changes

@​sveltejs/adapter-static@​4.0.0-next.2

Patch Changes

... (truncated)

Changelog

Sourced from @​sveltejs/adapter-static's changelog.

4.0.0

Major Changes

  • breaking: require SvelteKit 3 (#15506)

Patch Changes

  • chore: use node:fs instead of deprecated builder.rimraf and builder.mkdirp (#16610)

  • fix: avoid caching immutable asset 404s when configuring for Vercel (#16626)

  • fix: match adapter-vercel's prerendered redirect handling when deploying to Vercel (#16497)

  • fix: allow prerelease versions of SvelteKit 3 to satisfy the peer dependency range (#16286)

  • chore: use builder.config to access SvelteKit config settings (#16895)

  • Updated dependencies:

    • @​sveltejs/kit@​3.0.0

4.0.0-next.4

Major Changes

  • breaking: require SvelteKit 3

Patch Changes

  • chore: use node:fs instead of deprecated builder.rimraf and builder.mkdirp (#16286)

  • fix: avoid caching immutable asset 404s when configuring for Vercel

  • fix: match adapter-vercel's prerendered redirect handling when deploying to Vercel

  • fix: allow prerelease versions of SvelteKit 3 to satisfy the peer dependency range

  • Updated dependencies [bbd1e2f, e21d27b, 6044d05, 7fb611f, 9f06b3a, 8763327, 7dc2379, a70c3eb, 89f49c7, f36b3a4, 1144a63, 9f06b3a]:

    • @​sveltejs/kit@​3.0.0-next.15

4.0.0-next.3

Patch Changes

4.0.0-next.2

Patch Changes

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

SvelteKit 3 migration follow-up

  • Preserve existing imports and base-path-aware navigation, and accept read-only query parameters.
  • Update the TypeScript configuration and resolve the compatible cookie dependency.
  • Generate the service worker in the static client output to retain offline support.

Verified build, type checking, unit tests, and root and project Pages smoke tests. The focused production offline test passed on Chromium; the full production browser suite was interrupted before completion.

Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) and [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static). These dependencies needed to be updated together.

Updates `@sveltejs/kit` from 2.70.2 to 3.1.0
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@3.1.0/packages/kit)

Updates `@sveltejs/adapter-static` from 3.0.10 to 4.0.0
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-static@4.0.0/packages/adapter-static)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 3.1.0
  dependency-type: direct:development
- dependency-name: "@sveltejs/adapter-static"
  dependency-version: 4.0.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 29, 2026
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Important

Review skipped

This PR was authored by a bot without an assigned CodeRabbit review seat. Ask an organization administrator to assign a seat to the bot. See the seat-assignment guide. After the seat is assigned, request a review again.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 6f2ba721-1cd8-41ac-a874-af67dc971b6a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@rapjul

rapjul commented Oct 31, 2026

Copy link
Copy Markdown
Owner

@pullfrog full review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

This PR bumps SvelteKit across a major boundary (2.70.2 → 3.1.0) and the upgrade is not drop‑in: on this branch as‑is, vite build fails outright, npm run check reports 6 errors, and the unit suites fail to load. I verified a complete remediation path locally on the PR branch — after four small changes the build, svelte-check (0 errors / 0 warnings), and the full unit suite (1636 tests) all pass. The inline comment has the details. One further regression remains after that: the production build silently ships without sw.js (section below).

Reviewed changes

  • @sveltejs/kit ^2.63.0 → ^3.1.0 — major bump: pulls cookie v2, magic-string v1, svelte 5.57, drops kleur/set-cookie-parser/@types/cookie, and removes/renames APIs this repo uses ($lib, base, mutable searchParams).
  • @sveltejs/adapter-static ^3.0.10 → ^4.0.0 — major bump whose only breaking change is requiring SvelteKit 3; no action beyond the kit migration itself.

⚠️ Production build ships without the service worker

After the compile fixes above, vite build succeeds but build/ contains no sw.js: vite-plugin‑pwa 1.3.0 writes the service worker to dist/ instead of SvelteKit's client output, so the deployed site silently loses offline support and the update prompt (registration 404s; onRegisterError only logs it). The same config on main produces build/sw.js, so this is a kit 3 interaction, not pre-existing — and it is exactly the surface npm run test:e2e:production covers, which should run before merge.

Technical details
# vite-plugin-pwa writes sw.js to dist/ under kit 3

## Affected sites
- `vite.config.ts` — `VitePWA({ ... })` (generateSW strategy). The plugin resolves its outDir from `viteConfig.build.outDir || "dist"` (`resolveOptions` in `vite-plugin-pwa/dist/index.js:798`). Kit 3's restructured per-environment build no longer leaves the client outDir (`.svelte-kit/output/client`) visible in the config the plugin reads, so the `dist` fallback fires.

## Evidence
- Kit 3 build log: `PWA v1.3.0 / dist/sw.js`; `dist/sw.js` + `dist/workbox-*.js` exist while `build/` has no `sw.js`.
- Baseline on `main` (0e6492e, kit 2.70.2): same config produces `build/sw.js`.

## Required outcome
- `build/sw.js` present after `npm run build`; `npm run test:e2e:production` passes (offline navigation + update prompt depend on it).

## Suggested approach (not yet verified locally)
- Pass `outDir: ".svelte-kit/output/client"` explicitly in the `VitePWA()` options, or upgrade `vite-plugin-pwa` once it ships kit 3 support; then re-run the production e2e suite.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using glm-5.3-flash | 𝕏

Comment thread package.json Resolved
- Restore navigation and shared filter links with the upgraded framework.
- Preserve existing module imports and update TypeScript configuration.
- Allow the compatible cookie dependency required by SvelteKit.
- Include the service worker in production deployments.

rapjul commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Pushed 60bb2b4 to complete the SvelteKit 3 migration:

  • Preserved $lib imports and updated navigation and read-only query parsing.
  • Removed the incompatible cookie override and updated the TypeScript configuration.
  • Restored service-worker generation in the deployed static build.

Verified npm run check, npm run build, all 1,636 unit tests, and Pages deployment tests at both root and project paths. The focused production offline test passed on Chromium (two WebKit cases were skipped by the existing test). The full production browser suite was started but interrupted before completion; CI will provide additional coverage.

- Accept read-only query parameters when opening shared exercises.
- Preserve request tracking when navigating between exercises.
- Resolve shared exercise URLs using the current page address.

rapjul commented Nov 1, 2026

Copy link
Copy Markdown
Owner

CI exposed three SvelteKit 3 type errors in the Laplace page added to main after this PR was opened. Merged current main and pushed ba6adfa to accept read-only query parameters and use the page URL safely for shared exercises.

Verified the merged branch with npm run check, npm run build, import lint, formatting for the changed files, and all 1,834 unit tests.

@rapjul

rapjul commented Nov 1, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T01:09:04.794340Z ba6adfa Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: ba6adfaefc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rapjul
rapjul merged commit feef5c2 into main Nov 1, 2026
9 checks passed
@rapjul
rapjul deleted the dependabot/npm_and_yarn/multi-3e58aa5809 branch November 1, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant