Skip to content

Commit 9f7bc47

Browse files
author
web3blind
committed
Bump bottom nav cache after tray cleanup
1 parent bc35598 commit 9f7bc47

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
<script src="js/ui/components/progress-bar.js?v=20260712b"></script>
180180
<script src="js/ui/components/toast.js?v=20260711b"></script>
181181
<script src="js/ui/components/modal.js"></script>
182-
<script src="js/ui/components/nav.js?v=20260712a"></script>
182+
<script src="js/ui/components/nav.js?v=20260712b"></script>
183183
<script src="js/ui/components/battle-narrator.js?v=20260712b"></script>
184184

185185
<!-- UI Screens -->

app/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Viz Magic — Service Worker
2-
var CACHE_NAME = 'viz-magic-v44';
2+
var CACHE_NAME = 'viz-magic-v45';
33
var ASSETS = [
44
'/',
55
'/index.html',

tests/player-bug-regressions.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ test('high-traffic UI narration, screen announcements, and inventory stat labels
343343

344344
test('service worker updates quickly and keeps navigations network-first', function () {
345345
const swJs = read('app/sw.js');
346-
assert.ok(/viz-magic-v44/.test(swJs), 'service worker cache version should be bumped');
346+
assert.ok(/viz-magic-v45/.test(swJs), 'service worker cache version should be bumped');
347347
assert.ok(/self\.skipWaiting\(\)/.test(swJs), 'service worker should activate new cache without waiting for all tabs to close');
348348
assert.ok(/self\.clients\.claim\(\)/.test(swJs), 'service worker should claim clients after activation');
349349
assert.ok(/event\.request\.mode === 'navigate'[\s\S]*fetch\(event\.request\)/.test(swJs), 'navigation requests should prefer network to avoid stale cached index');
@@ -392,7 +392,7 @@ test('mobile entry helpers cover keyboard paste, home-screen shortcut, nav parit
392392
assert.ok(/SoundManager\.setVolume\(sfxVolume \/ 100\)/.test(read('app/js/ui/screens/settings.js')), 'settings should apply stored SFX volume on render');
393393
assert.ok(/localStorage\.setItem\(STORAGE_PREFIX \+ 'sfx_volume'/.test(read('app/js/ui/sound.js')), 'sound manager should persist SFX volume');
394394
assert.ok(/var volume = _getStoredNumber\('sfx_volume', 0\.5\)/.test(read('app/js/ui/sound.js')), 'sound manager should restore persisted SFX volume');
395-
assert.ok(/viz-magic-v44/.test(read('app/sw.js')), 'service worker cache should be bumped for UI changes');
395+
assert.ok(/viz-magic-v45/.test(read('app/sw.js')), 'service worker cache should be bumped for UI changes');
396396
});
397397

398398

@@ -454,7 +454,7 @@ test('magical weather is labelled and affects hunts', function () {
454454
assert.ok(/i18n\/en.js\?v=20260712k/.test(indexHtml), 'English weather copy must be cache-busted');
455455
assert.ok(/home.js\?v=20260712h/.test(indexHtml), 'home forecast layout must be cache-busted');
456456
assert.ok(/quests.js\?v=20260712a/.test(indexHtml), 'quest-limit UX must be cache-busted');
457-
assert.ok(/nav.js\?v=20260712a/.test(indexHtml), 'bottom tray nav must be cache-busted');
457+
assert.ok(/nav.js\?v=20260712b/.test(indexHtml), 'bottom tray nav must be cache-busted');
458458
assert.ok(/leaderboard.js\?v=20260712c/.test(indexHtml), 'leaderboard narrator fix must be cache-busted');
459459
assert.ok(/world-events.js\?v=20260712h/.test(indexHtml), 'world events forecast pool must be cache-busted');
460460
assert.ok(/main.css\?v=20260712j/.test(indexHtml), 'forecast grid CSS must be cache-busted');

0 commit comments

Comments
 (0)