Implement local version check for updates - #928
azayrahmad wants to merge 1 commit into
Conversation
- Added `scripts/generate_version.js` to create `public/version.json` from `package.json`. - Updated `package.json` to generate `version.json` during `dev` and `build`. - Added `src/system/version-utils.js` for reliable, cache-busting version fetching. - Integrated version check into `src/system/os-init.js` boot sequence. - Updated `AboutApp` to use the new local version check instead of GitHub API. - Added `writeBootMessage` to `src/system/boot-screen.js`. - Ignored `public/version.json` in `.gitignore`. This change avoids GitHub API rate limits and ensures users are notified of new deployments immediately on boot. Co-authored-by: azayrahmad <10110227+azayrahmad@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR implements a local versioning system to reliably detect new deployments without hitting GitHub API rate limits.
Key changes:
scripts/generate_version.jsextracts the version frompackage.jsonand createspublic/version.jsonduring the build process.src/system/version-utils.jsimplementsgetLatestVersionwithcache: 'no-store'and timestamp query parameters to bypass any caching layers (browser, CDN, or Service Worker).version.jsonis generated during the build, ensuring it always reflects the version frompackage.jsonin the deployed environment.PR created automatically by Jules for task 10048426452564394857 started by @azayrahmad