Repository navigation
build(deps-dev): bump @sveltejs/kit and @sveltejs/adapter-static - #20
Conversation
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>
|
Important Review skippedThis 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.
|
|
@pullfrog full review |
There was a problem hiding this comment.
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: pullscookiev2,magic-stringv1,svelte5.57, dropskleur/set-cookie-parser/@types/cookie, and removes/renames APIs this repo uses ($lib,base, mutablesearchParams).@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.glm-5.3-flash | 𝕏
- 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.
|
Pushed
Verified |
…rn/multi-3e58aa5809
- 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.
|
CI exposed three SvelteKit 3 type errors in the Laplace page added to Verified the merged branch with |
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |

Bumps @sveltejs/kit and @sveltejs/adapter-static. These dependencies needed to be updated together.
Updates
@sveltejs/kitfrom 2.70.2 to 3.1.0Release notes
Sourced from @sveltejs/kit's releases.
... (truncated)
Changelog
Sourced from @sveltejs/kit's changelog.
... (truncated)
Commits
73bf98cVersion Packages (#17364)38b95acfix: continue deployment recovery when service worker updates fail (#17440)c7e59b3fix: leave focus in the parent page from an unfocused iframe (#17297)35835f2feat: support report-sha256/report-sha384/report-sha512 CSP keywords (#17398)230d00cfix: infer prerendered MIME types from generated files (#17381)59441bcfix: don't treat every module as server-only when the project is inside a `se...3bc9234fix: don't warn about Storybook's Vite plugins that usetransformIndexHtml...9b56543fix: leave unchanged generated files alone, and replace changed ones atomical...fd7cd9adocs: fix links (#17363)51a4e0bfeat: emit a span for +server handlers when tracing is enabled (#17325)Updates
@sveltejs/adapter-staticfrom 3.0.10 to 4.0.0Release notes
Sourced from @sveltejs/adapter-static's releases.
... (truncated)
Changelog
Sourced from @sveltejs/adapter-static's changelog.
... (truncated)
Commits
3ec9b91Version Packages375d4d0chore: bump dev deps (#17195)ca9a40achore: run package tests concurrently (#17161)05a1376chore: add default type hints (#17079)48eb9d7chore: remove dead code and unused dependencies (#16840)2c4e73dbreaking: moveConfigtype (#16752)039cbcbchore: replaceprettierwithoxfmt(#16702)7d11304chore: use tsgo for type checking (#16692)1d0f1b0chore: skip chromium install for Playwright (#16677)30b9cb2Version Packages (next) (#16639)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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill 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
cookiedependency.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.