@inkandswitch/patchwork-bootloader 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # @inkandswitch/patchwork-bootloader
2
2
 
3
+ ## 0.4.4
4
+
5
+ ### Patch Changes
6
+
7
+ - c01e1f3: Switch the service worker's active cache name before copying the default cache into it, so fetches landing mid-copy aren't deleted with the old cache. Guard the message handler against payload-less messages, and drop the `window.killsw` debug hook.
8
+ - Updated dependencies [caca06f]
9
+ - Updated dependencies [c01e1f3]
10
+ - @inkandswitch/patchwork-filesystem@0.2.2
11
+ - @inkandswitch/patchwork-providers@0.4.2
12
+ - @inkandswitch/patchwork-elements@4.0.1
13
+
14
+ ## 0.4.3
15
+
16
+ ### Patch Changes
17
+
18
+ - bd9cd3d: Reliability and boot-speed fixes:
19
+
20
+ - The service worker no longer blocks responses on cache writes (they move to
21
+ `waitUntil`), page caching writes its three entries in parallel, non-GET
22
+ requests bypass the worker entirely, cache-write failures (e.g. quota) are
23
+ always logged, the cache is capped at 2000 entries with oldest-first
24
+ trimming, and boot requests persistent storage so cache growth can't trip
25
+ origin-wide eviction of user data.
26
+ - `automerge.wasm` is fetched under one URL from both the tab and the
27
+ automerge worker (the `?main`/`?worker` tracing query strings defeated the
28
+ HTTP cache, the SW cache, and the sites' preload — the ~3MB body downloaded
29
+ twice).
30
+ - Tabs now recover when the automerge SharedWorker dies or its connection is
31
+ stranded. Previously death was only logged and tabs silently stopped syncing
32
+ until reload. Silence alone never tears anything down (a slow-booting or
33
+ busy worker delivers everything queued once it catches up): a silent port
34
+ first starts a non-destructive probe — a second connection to the same
35
+ instance — and only when the probe gets a `hello` while the original port
36
+ stays silent (proving a live instance with a stranded port) is the worker
37
+ handle recreated, with sync-state subscriptions replayed and every
38
+ subscriber's repo re-wired onto a fresh port. This rescues boots whose
39
+ initial SharedWorker port comes up deaf (~6s), including in hidden
40
+ background tabs; a port `close` event still recovers immediately.
41
+ - The worker no longer rescans every doc handle on every
42
+ `subduction-remote-heads` event (quadratic during sync bursts); it tracks
43
+ just the reported doc.
44
+ - `ModuleWatcher` announces are generation-tracked, so a stale retry of an
45
+ older module version can no longer land after a newer version and roll the
46
+ registry back.
47
+ - `resolveAccountHandle` never overwrites a valid stored account pointer when
48
+ `repo.find` fails: it retries briefly and then throws, instead of silently
49
+ creating a fresh account and orphaning the user's workspace.
50
+ - `OverlayRepo` no longer memoizes rejected resolutions: a `find` that failed
51
+ because the doc (or its keyhive access) hadn't synced yet used to pin every
52
+ later `find` of that url to the same cached rejection, so the views' "retry
53
+ once access syncs" recovery could never reach the base repo. Rejections now
54
+ evict and the next `find` re-resolves. `findWithProgress().subscribe` also
55
+ no longer leaks its inner subscription (or fires the callback) when
56
+ unsubscribed before the resolution settles.
57
+
58
+ - Updated dependencies [bd9cd3d]
59
+ - @inkandswitch/patchwork-filesystem@0.2.1
60
+ - @inkandswitch/patchwork-plugins@1.0.1
61
+ - @inkandswitch/patchwork-providers@0.4.1
62
+
3
63
  ## 0.4.2
4
64
 
5
65
  ### Patch Changes