chore(deps-dev): bump vite and @sveltejs/vite-plugin-svelte in /cli-releases/frontend#480
Open
dependabot[bot] wants to merge 1 commit intomainfrom
Open
Conversation
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) and [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/tree/HEAD/packages/vite-plugin-svelte). These dependencies needed to be updated together. Updates `vite` from 5.4.21 to 8.0.8 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v8.0.8/packages/vite) Updates `@sveltejs/vite-plugin-svelte` from 3.0.2 to 7.0.0 - [Release notes](https://github.com/sveltejs/vite-plugin-svelte/releases) - [Changelog](https://github.com/sveltejs/vite-plugin-svelte/blob/main/packages/vite-plugin-svelte/CHANGELOG.md) - [Commits](https://github.com/sveltejs/vite-plugin-svelte/commits/@sveltejs/vite-plugin-svelte@7.0.0/packages/vite-plugin-svelte) --- updated-dependencies: - dependency-name: vite dependency-version: 8.0.8 dependency-type: direct:development - dependency-name: "@sveltejs/vite-plugin-svelte" dependency-version: 7.0.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
Kamirus
added a commit
that referenced
this pull request
Apr 10, 2026
Svelte 5's compatibility mode preserves full Svelte 4 component syntax, so no .svelte file rewrites are needed. This resolves the peer-dependency conflicts that blocked Dependabot PRs #475, #480, and #482. frontend: - svelte 4.2.12 → 5.55.2 - vite 5.2.6 → 8.0.8 - @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - svelte-chartjs 3.1.5 → 4.0.1 - vite-plugin-static-copy 1.0.2 → 4.0.1 - svelte-check 3.6.8 → 4.4.6 - eslint-plugin-svelte 2.35.1 → 2.46.1 - @types/node 20.11.30 → 22.15.3 - Drop svelte-preprocess in favor of vitePreprocess - Pin @dfinity/candid@1.0.1 via overrides to preserve compat with @dfinity/agent@1.0.1 cli-releases/frontend: - svelte 4.2.12 → 5.55.2 - vite 5.4.21 → 8.0.8 - @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - @sveltejs/kit 2.55.0 → 2.57.1 - svelte-check 3.6.8 → 4.4.6 - eslint-plugin-svelte 2.35.1 → 2.46.1 root: - eslint-plugin-svelte 2.35.1 → 2.46.1 Made-with: Cursor
9 tasks
Kamirus
added a commit
that referenced
this pull request
Apr 10, 2026
Svelte 5's compatibility mode preserves full Svelte 4 component syntax, so no .svelte file rewrites are needed. This resolves the peer-dependency conflicts that blocked Dependabot PRs #475, #480, and #482. frontend: - svelte 4.2.12 → 5.55.2 - vite 5.2.6 → 8.0.8 - @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - svelte-chartjs 3.1.5 → 4.0.1 - vite-plugin-static-copy 1.0.2 → 4.0.1 - svelte-check 3.6.8 → 4.4.6 - eslint-plugin-svelte 2.35.1 → 2.46.1 - @types/node 20.11.30 → 22.15.3 - Drop svelte-preprocess in favor of vitePreprocess - Pin @dfinity/candid@1.0.1 via overrides to preserve compat with @dfinity/agent@1.0.1 cli-releases/frontend: - svelte 4.2.12 → 5.55.2 - vite 5.4.21 → 8.0.8 - @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - @sveltejs/kit 2.55.0 → 2.57.1 - svelte-check 3.6.8 → 4.4.6 - eslint-plugin-svelte 2.35.1 → 2.46.1 root: - eslint-plugin-svelte 2.35.1 → 2.46.1 Made-with: Cursor
Kamirus
added a commit
that referenced
this pull request
Apr 10, 2026
Svelte 5's compatibility mode preserves full Svelte 4 component syntax, so no .svelte file rewrites are needed. This resolves the peer-dependency conflicts that blocked Dependabot PRs #475, #480, and #482. frontend: - svelte 4.2.12 → 5.55.2 - vite 5.2.6 → 8.0.8 - @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - svelte-chartjs 3.1.5 → 4.0.1 - vite-plugin-static-copy 1.0.2 → 4.0.1 - svelte-check 3.6.8 → 4.4.6 - eslint-plugin-svelte 2.35.1 → 2.46.1 - @types/node 20.11.30 → 22.15.3 - Drop svelte-preprocess in favor of vitePreprocess - Pin @dfinity/candid@1.0.1 via overrides to preserve compat with @dfinity/agent@1.0.1 cli-releases/frontend: - svelte 4.2.12 → 5.55.2 - vite 5.4.21 → 8.0.8 - @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - @sveltejs/kit 2.55.0 → 2.57.1 - svelte-check 3.6.8 → 4.4.6 - eslint-plugin-svelte 2.35.1 → 2.46.1 root: - eslint-plugin-svelte 2.35.1 → 2.46.1 Made-with: Cursor
Kamirus
added a commit
that referenced
this pull request
Apr 10, 2026
Svelte 5's compatibility mode preserves full Svelte 4 component syntax, so no .svelte file rewrites are needed. This resolves the peer-dependency conflicts that blocked Dependabot PRs #475, #480, and #482. frontend: - svelte 4.2.12 → 5.55.2 - vite 5.2.6 → 8.0.8 - @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - svelte-chartjs 3.1.5 → 4.0.1 - vite-plugin-static-copy 1.0.2 → 4.0.1 - svelte-check 3.6.8 → 4.4.6 - eslint-plugin-svelte 2.35.1 → 2.46.1 - @types/node 20.11.30 → 22.15.3 - Drop svelte-preprocess in favor of vitePreprocess - Pin @dfinity/candid@1.0.1 via overrides to preserve compat with @dfinity/agent@1.0.1 cli-releases/frontend: - svelte 4.2.12 → 5.55.2 - vite 5.4.21 → 8.0.8 - @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - @sveltejs/kit 2.55.0 → 2.57.1 - svelte-check 3.6.8 → 4.4.6 - eslint-plugin-svelte 2.35.1 → 2.46.1 root: - eslint-plugin-svelte 2.35.1 → 2.46.1 Made-with: Cursor
Kamirus
added a commit
that referenced
this pull request
Apr 14, 2026
…ges (#484) ## Summary Dependabot PRs #475, #480, and #482 all fail because `@sveltejs/vite-plugin-svelte@7.0.0` requires `svelte@^5.46.4` as a peer dependency, but the project uses `svelte@4.2.12`. There is no version of `@sveltejs/vite-plugin-svelte` that supports both Vite 8 and Svelte 4 — the migration must be done together. This PR upgrades both `frontend/` and `cli-releases/frontend/` to Svelte 5 + Vite 8 in one shot. Svelte 5's **compatibility mode** preserves full Svelte 4 component syntax (`export let`, `on:click`, reactive `$:` blocks, etc.), so **no `.svelte` file rewrites are needed**. ### Key changes **frontend/** - svelte 4.2.12 → 5.55.2, vite 5.2.6 → 8.0.8, @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - svelte-chartjs 3.1.5 → 4.0.1, vite-plugin-static-copy 1.0.2 → 4.0.1 - Drop `svelte-preprocess` in favor of `vitePreprocess` from `@sveltejs/vite-plugin-svelte` - Pin `@dfinity/candid@1.0.1` via overrides (pre-existing transitive peer conflict with `@dfinity/agent@1.0.1` — without this, npm resolves candid@2.x which is ABI-incompatible) - Enable `compatibility.componentApi: 4` — the entry point and `svelte-spa-history-router` use `new Component()` which is invalid in Svelte 5 without this flag **cli-releases/frontend/** - svelte 4.2.12 → 5.55.2, vite 5.4.21 → 8.0.8, @sveltejs/vite-plugin-svelte 3.0.2 → 7.0.0 - @sveltejs/kit 2.55.0 → 2.57.1 (adds explicit Vite 8 support) - No `compatibility.componentApi` needed — cli-releases components don't use `export let` **Both projects:** svelte-check 3→4, eslint-plugin-svelte 2.35→2.46 (adds Svelte 5 peer support) ### Additional fixes discovered during staging verification - **Svelte 5 CSS scoping**: `<style global>` is deprecated — replaced with `<style>` and `:global()` wrappers in `App.svelte` to preserve global styles - **Vite 8 `process.env` polyfill**: Added `"process.env": "({})"` fallback in `vite.config.ts` — Vite 8 no longer auto-polyfills `process.env`, causing `ReferenceError` on package detail pages - **`MOPS_NETWORK` staging fix**: Changed `Package.svelte` to set `MOPS_NETWORK` to `"ic"` for all non-local deployments — previously the `ic-mops` npm package used hardcoded staging canister IDs when `DFX_NETWORK=staging`, causing "Package not found" errors - **`fetchRootKey` guard**: Tightened `declarations/main/index.js` and `declarations/bench/index.js` to only call `fetchRootKey()` for `DFX_NETWORK === "local"` (was `!== "ic"`, which unnecessarily triggered for staging) - **`ConfigDoc.svelte` cleanup**: Added `<thead>`/`<tbody>` for semantic HTML, removed commented-out table rows - **`import type` fixes**: Changed all `.did.js` type imports to use `import type` (required by Svelte 5's stricter TypeScript handling) ### Security advisories addressed - vite <=6.4.1 (esbuild vulnerability) - vite-plugin-static-copy 0.4.3–2.3.1 (GHSA-pp7p-q8fx-2968, path traversal) ### Supersedes - #475 (closed) - #480 - #482 ## Test plan - [x] CI passes: `npm ci` + `ci:postinstall` resolves without ERESOLVE errors (all 23 checks green) - [x] `npm run lint` passes - [x] Frontend builds successfully (`npm run build-frontend`) - [x] CLI releases frontend builds (`npm run build-cli-releases`) - [x] CLI tests pass (11 suites, 69 tests, 52 snapshots) - [x] Bundle smoke test passes (verified in CI) - [x] Frontend dev server loads with production canister — no runtime errors - [x] CLI releases frontend serves pre-built assets correctly - [x] Staging deploy verified: homepage (272 packages), package detail pages (/core, /vector), correct fonts/styles, no console errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps vite and @sveltejs/vite-plugin-svelte. These dependencies needed to be updated together.
Updates
vitefrom 5.4.21 to 8.0.8Release notes
Sourced from vite's releases.
... (truncated)
Changelog
Sourced from vite's changelog.
... (truncated)
Commits
6e585dcrelease: v8.0.8e137601fix(ssr): class property keys hoisting matching imports (#22199)15f1c15fix: avoiddns.getDefaultResultOrdertemporary (#22202)6baf587feat: update rolldown to 1.0.0-rc.15 (#22201)fdb2e6frelease: v8.0.75c05b04fix: use sync dns.getDefaultResultOrder instead of dns.promises (#22185)7b3086frelease: v8.0.6af71fb2chore: replace remaining prettier script (#22179)51d3e48feat: update rolldown to 1.0.0-rc.13 (#22097)17a8f9efix(optimize-deps): hoist CJS interop assignment (#22156)Updates
@sveltejs/vite-plugin-sveltefrom 3.0.2 to 7.0.0Release notes
Sourced from
@sveltejs/vite-plugin-svelte's releases.... (truncated)
Changelog
Sourced from
@sveltejs/vite-plugin-svelte's changelog.... (truncated)
Commits
67721b6Version Packages (#1289)04fbceeVersion Packages (next) (#1287)9344fc3chore: remove dominikg from author field (#1281)22a402echore: upgrade vitefu to compatible peer dependency range (#1286)170baccVersion Packages (next) (#1268)583f700remove deprecations (#1274)1011098refactor: bump svelte and remove custom cssHash handling (#1271)7e39bc1refactor: move inspector into vite-plugin-svelte, adapt code (#1270)c6db092refactor: update vite peer dep and remove esbuild (#1266)24bf204Version Packages (#1259)Maintainer changes
This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for
@sveltejs/vite-plugin-sveltesince your current version.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.