Skip to content

chore: remove dead updater service, localize update fallbacks, fix vitest config warnings - #56

Merged
dylanh724 merged 5 commits into
mainfrom
chore/update-notes-cleanup
Dec 3, 2026
Merged

dylanh724 merged 5 commits into
mainfrom
chore/update-notes-cleanup

Conversation

@dylanh724

@dylanh724 dylanh724 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Cleanup found while confirming that the update modal already hides ### Developers notes behind the "Show developer changes" checkbox. No change to that behavior.

  • Dead code removed: src/lib/services/updater.ts had no importers. It showed raw release notes in a native dialog, which would have bypassed the Developers filter if anyone wired it back up. Its orphaned locale keys (update.versionAvailable, update.releaseNotesTitle) are removed from all three locales.
  • Localized two hardcoded English strings in src/lib/stores/updater.ts: the "Bug fixes and improvements." fallback now uses the existing update.defaultNotes, and the "release notes not included in this build" message uses a new update.notesNotBundled key (en, zh-TW, zh-CN).
  • Vitest config warnings fixed: vitest.config.js passed the removed hot plugin option and let the standalone svelte() plugin look for a svelte.config.js that SvelteKit 3 no longer uses. Now configFile: false and compilerOptions.hmr: false.
  • Doc fix: CLAUDE.md said the in-app notes are sent "minus ### Developers". CrabNebula gets every released section with Developers included (the modal hides it); only the echophrase-releases GitHub Release strips it.
  • Dependabot: lockfile-only bump of the transitive cookie crate to 0.18.3 (GHSA-8wcq-xq25-7fhm). The three zip alerts and the glib alert are not fixed here: zip 4 comes from tauri-plugin-updater 2.12 and the fix (2.14.1) needs Tauri core 2.12, and glib 0.18 is pinned by Tauri's GTK3 stack on Linux.

No CHANGELOG entry: nothing here is user-visible beyond two fallback strings now being translated.

Test plan

  • Rust CI (Linux + Windows) on the cookie lockfile bump; not built locally

  • bun run test:chunked: 8/8 chunks pass, and neither vite-plugin-svelte warning is printed any more

  • svelte-check (pre-commit): 0 errors, 0 warnings

  • eslint on src/lib/stores/updater.ts

  • Not done: opening the update modal in the running app (Debug panel mock update) to eyeball the checkbox and the new fallback string

  • Not done: native-speaker review of the zh-TW / zh-CN text for update.notesNotBundled

CrabNebula gets every released CHANGELOG section with Developers included (the update modal hides it); only the echophrase-releases GitHub Release strips it.
src/lib/services/updater.ts had no importers and showed raw release notes in a native dialog, bypassing the Developers filter. Drop it with its orphaned locale keys (update.versionAvailable, update.releaseNotesTitle), and route the two hardcoded English fallbacks in stores/updater.ts through the locale files.
The standalone svelte() plugin warned about the removed `hot` option and logged that no Svelte config file exists (SvelteKit 3 keeps it inline in vite.config.js). Use compilerOptions.hmr and configFile: false instead.
Lockfile-only patch bump of a transitive dependency of tauri and wry.
Also document in CLAUDE.md that lockfile changes need the regenerated attribution committed in the same PR, and the generator's side effects.
@dylanh724
dylanh724 merged commit dfccb8a into main Dec 3, 2026
6 checks passed
@dylanh724
dylanh724 deleted the chore/update-notes-cleanup branch December 3, 2026 05: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