Skip to content

chore(deps): update svelte to 5.56.8 - #224

Merged
khromov merged 2 commits into
mainfrom
chore/update-svelte-5.56.8
Jul 29, 2026
Merged

khromov merged 2 commits into
mainfrom
chore/update-svelte-5.56.8

Conversation

@khromov

@khromov khromov commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Bumps Svelte from 5.56.7 → 5.56.8 across every workspace.

Upstream changes

Patch release, two fixes — the first lands directly on a Mochi code path, since the preprocessor auto-wraps every mochi:hydrate* island in a <svelte:boundary>:

Bump table

Workspace Field From To
packages/mochi devDependencies ^5.56.7 ^5.56.8
packages/mochi-rsvelte devDependencies ^5.56.7 ^5.56.8
packages/site dependencies ^5.56.7 ^5.56.8
packages/demos dependencies ^5.56.7 ^5.56.8
packages/docs dependencies ^5.56.7 ^5.56.8
packages/minimal dependencies ^5.56.7 ^5.56.8
packages/minimal-rsvelte dependencies ^5.56.7 ^5.56.8
packages/support dependencies ^5.56.7 ^5.56.8

Deliberately not changed

  • packages/mochi peerDependencies.svelte stays at ^5.56.6. It's a floor for published consumers and already admits 5.56.8; raising it would force an upgrade for no API reason. Since published mochi-framework carries Svelte only as a devDependency plus this unchanged peer range, nothing consumer-visible moved — hence chore(deps): rather than fix(deps):, and no release is warranted.
  • Scope is Svelte only, not a full dependency sweep. Also currently outdated and left alone: @lucide/svelte (1.25.0 → 1.27.0), @rsvelte/vite-plugin-svelte-native (0.2.8 → 0.3.1), svelte-check (4.7.3 → 4.7.4, exact-pinned because it carries a patch keyed on the version), typescript (6.0.3 → 7.0.2).

The bun.lock diff is Svelte-only; the one removed svelte/devalue entry is a dedupe artifact (devalue is now satisfied from the root).

Verification

  • bun run syncpack — ✅ no issues; cross-workspace agreement holds, including the unchanged peer range.

  • bun run checks (lint:fix + format + typecheck + test) — ✅ all four stages green. Typecheck 0 errors across all workspaces; tests 142/142 mochi-framework files, 9/9 site, 2/2 support, demos/minimal/minimal-rsvelte all green, 0 failures.

  • Clean reinstall + dedupe — rm -rf node_modules packages/*/node_modules && bun install. packages/*/node_modules/svelte is empty and node_modules/.bun is absent, so there is exactly one hoisted svelte@5.56.8. (Duplicate copies mean two context maps and break getContext across the island boundary — invisible to CI.)

  • bun run build — ✅ output byte-identical to the pre-bump baseline apart from timings. No optimization skipped, no shake fallback:

    before after
    svelte-shaker (site) slimmed 33 of 163 slimmed 33 of 163
    site 65 pages · 245 client files · 12 public · 7 image assets · 2 email templates identical
    demos 10 pages · 32 client files identical
    support 2 pages · 19 client files · 1 email template identical
    minimal / minimal-rsvelte 1 page · 10 client files each identical

    Per-file bundle sizes in the build listing are unchanged too.

  • Browser smoke test (PORT=4444 bun run dev:site, driven via chrome-devtools):

    • / — no console errors/warnings.
    • /docs/queues/ — no console errors/warnings.
    • /demos/error-boundaries/ — the demo most relevant to #18556. All five scenarios render their expected fallbacks (user-written boundary, mochi:hydrate SSR throw, mochi:hydrate client throw, mochi:defer server-island throw, healthy server island with an inner throwing mochi:hydrate child). All 22 requests 200, including both /_mochi/island/* fetches. The only console output is the demo's intentional ThrowOnClient failure. Debug bar reports Svelte 5.56.8.
    • /demos/nested-islands/ — clean console, all four /_mochi/island/* fetches 200.
    • /demos/is-hydratable/ — clean console, both island fetches 200. This is the canary for the duplicate-copy failure mode (isHydratable() is its first casualty), so it independently confirms the dedupe.
  • bun run cli-test — ✅ pass (scaffold, install, test, typecheck). minimal and demos both moved and double as create-mochi template sources.

@github-actions

github-actions Bot commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Mochi review report

⚠️ This PR modified the starter templates. Make sure no unreleased features are used in the template.

Try this PR

Expand instructions
gh run download -R khromov/mochi 30481008614 -n mochi-framework-pr -D /tmp/mochi-pr && bun i /tmp/mochi-pr/mochi-framework-pr.tgz

Download manually

Dependency report

Expand report
Direct: 17
Peer:   4 (@mochi-framework/rsvelte, @tailwindcss/node, @tailwindcss/oxide, svelte)
Dev:    10
Optional (installed, folded in): 1 (svelte-shaker-engine-scan-native)
Total unique packages reachable from production deps (roots + transitive): 40
Total on-disk size of those packages: 80.96 MB

Toplist — direct deps ranked by total size (self + transitive):
      total       self  count  package
   69.32 MB   121.0 kB      6  svelte-shaker
    4.51 MB    2.74 MB     19  svelte
    4.06 MB    1.88 MB      2  bunqueue
   868.6 kB   868.6 kB      0  @noble/hashes
   732.6 kB   732.6 kB      0  @css-inline/css-inline-wasm
   709.8 kB   709.8 kB      0  @noble/ciphers
   562.1 kB   562.1 kB      0  nodemailer
   236.2 kB   151.2 kB      1  magic-string
   131.3 kB   113.3 kB      1  @joint-ops/hitlimit-bun
   129.2 kB   129.2 kB      0  html-entities
   102.2 kB    80.1 kB      1  chokidar
    62.3 kB    62.3 kB      0  ipaddr.js
    53.2 kB    53.2 kB      0  devalue
    30.4 kB    30.4 kB      0  deepmerge
    28.0 kB    28.0 kB      0  negotiator
    25.8 kB    25.8 kB      0  mitt
    12.3 kB    12.3 kB      0  zimmerframe

Transitive breakdown for the heaviest deps:

  svelte-shaker (6, 69.20 MB transitive): @jridgewell/sourcemap-codec (85.0 kB), @rsvelte/compiler (8.72 MB), magic-string (151.2 kB), picomatch (90.8 kB), svelte-shaker-engine-scan-native [optional] (60.15 MB), zimmerframe (12.3 kB)

  svelte (19, 1.77 MB transitive): @jridgewell/gen-mapping (91.6 kB), @jridgewell/remapping (58.0 kB), @jridgewell/resolve-uri (51.9 kB), @jridgewell/sourcemap-codec (85.0 kB), @jridgewell/trace-mapping (143.3 kB), @sveltejs/acorn-typescript (194.2 kB), @types/estree (25.5 kB), @types/trusted-types (8.4 kB), acorn (545.5 kB), aria-query (172.8 kB), axobject-query (108.3 kB), clsx (8.4 kB), devalue (53.2 kB), esm-env (3.7 kB), esrap (91.4 kB), is-reference (3.9 kB), locate-character (5.2 kB), magic-string (151.2 kB), zimmerframe (12.3 kB)

  bunqueue (2, 2.18 MB transitive): croner (151.1 kB), msgpackr (2.03 MB)

  magic-string (1, 85.0 kB transitive): @jridgewell/sourcemap-codec (85.0 kB)

  @joint-ops/hitlimit-bun (1, 18.0 kB transitive): @joint-ops/hitlimit-types (18.0 kB)

  chokidar (1, 22.1 kB transitive): readdirp (22.1 kB)

Lines of code

packages/mochi
Category main PR Δ
Total 41007 41007 0

Unchanged: src/**/*.test.ts (17438), src/Mochi.ts (1725), src/{events,log,logger}.ts (425), src/extensions.ts (313), src/image/** (1743), src/middleware/** (81), src/{types.ts,*.d.ts} (715), src/web-components/** (621), src/debug-bar/** (3414), src/templates/** (1620), Other (12912).

packages/docs
Category main PR Δ
Total 6397 6397 0

Unchanged: Docs (6397).

packages/site
Category main PR Δ
Total 19140 19140 0

Unchanged: src/demos/** (10068), src/components/** (2957), src/lib/** (2457), src/stores/** (26), Other (3632).

packages/demos
Category main PR Δ
Total 3098 3098 0

Unchanged: src/hn/** (1083), Other (2015).

packages/minimal
Category main PR Δ
Total 540 540 0

Unchanged: Other (540).

packages/minimal-rsvelte
Category main PR Δ
Total 549 549 0

Unchanged: Other (549).

packages/support
Category main PR Δ
Total 1806 1806 0

Unchanged: src/**/*.test.ts (359), src/admin/** (381), src/components/** (84), src/*.server.ts (217), src/{index,routes}.ts (197), Other (568).

packages/shared
Category main PR Δ
Total 31 31 0

Unchanged: Other (31).

packages/cli
Category main PR Δ
Total 492 492 0

Unchanged: src/**/*.test.ts (121), src/cli* (138), src/{create,templates,utils}.ts (229), Other (4).

packages/video-animations
Category main PR Δ
Total 708 708 0

Unchanged: src/{frame,anim,theme}.ts (431), src/{render,render-worker,generate}.ts (191), Other (86).

packages/msgpackr-extract-stub
Category main PR Δ
Total 29 29 0

Unchanged: *.test.ts (22), Other (7).

@khromov
khromov merged commit ab5b9e7 into main Jul 29, 2026
6 checks passed
@khromov
khromov deleted the chore/update-svelte-5.56.8 branch July 29, 2026 18:55
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.

1 participant