[PR #5928] [MERGED] 🐛 Fix Service Worker: New hash every build #40647

Closed
opened 2026-04-23 13:28:28 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/5928
Author: @lelemm
Created: 10/15/2025
Status: Merged
Merged: 10/15/2025
Merged by: @lelemm

Base: masterHead: bugfix/force-plugins-service-force-hash


📝 Commits (6)

📊 Changes

3 files changed (+11 additions, -3 deletions)

View changed files

📝 packages/plugins-service/bin/build-service-worker (+1 -1)
📝 packages/plugins-service/vite.config.mts (+3 -2)
upcoming-release-notes/5928.md (+7 -0)

📄 Description

Introduction of the plugin service worker is impacting the app to recognize new versions. It was generating using [hash] syntax for vite. But hash is the checksum of the file. Since this file won't change and it's part of the service worker, it's keeping the same hash but we have changes on the "rest" of the sw.

This PR forces a new hash every build to ensure that any changes to the SW will be catch by the browser.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/5928 **Author:** [@lelemm](https://github.com/lelemm) **Created:** 10/15/2025 **Status:** ✅ Merged **Merged:** 10/15/2025 **Merged by:** [@lelemm](https://github.com/lelemm) **Base:** `master` ← **Head:** `bugfix/force-plugins-service-force-hash` --- ### 📝 Commits (6) - [`2c5002d`](https://github.com/actualbudget/actual/commit/2c5002dae88b3a49a19644d601205f542884a3d4) New hash every build - [`dcdf0ea`](https://github.com/actualbudget/actual/commit/dcdf0ea2cf32aecd8bac6c2d544aa97271403f9d) Add release notes for PR #5928 - [`057e7ef`](https://github.com/actualbudget/actual/commit/057e7ef522e6a052a54d980ad03ab588e7d8bb3a) trigger actions - [`f1ee1b2`](https://github.com/actualbudget/actual/commit/f1ee1b2994ab522ec267b732c43fd7717d12b3cc) Changed from TS to MTS - [`82b4618`](https://github.com/actualbudget/actual/commit/82b4618bcd685f2d6cb5d825a452e7a65071ead2) [autofix.ci] apply automated fixes - [`5c6b725`](https://github.com/actualbudget/actual/commit/5c6b725c7b1f58922d965193b4093ab3e8073652) [autofix.ci] apply automated fixes (attempt 2/3) ### 📊 Changes **3 files changed** (+11 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/plugins-service/bin/build-service-worker` (+1 -1) 📝 `packages/plugins-service/vite.config.mts` (+3 -2) ➕ `upcoming-release-notes/5928.md` (+7 -0) </details> ### 📄 Description Introduction of the plugin service worker is impacting the app to recognize new versions. It was generating using `[hash]` syntax for vite. But hash is the checksum of the file. Since this file won't change and it's part of the service worker, it's keeping the same hash but we have changes on the "rest" of the sw. This PR forces a new hash every build to ensure that any changes to the SW will be catch by the browser. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 13:28:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#40647