You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 78ace75
Browse filesBrowse the repository at this point in the historyBrowse files
- The package ships ESM and CommonJS builds through `exports`; deep imports into `dist/` no longer resolve.
9
+
- The stored version is saved only when the cache is cleared, so `isLatestVersion` stays `false` until the reload.
10
+
-`lazyRetry(fn, 0)` makes one attempt instead of retrying forever.
11
+
-`debug` receives `error: unknown` and always receives `state`.
12
+
13
+
See [Upgrading from 0.x](README.md#upgrading-from-0x).
14
+
15
+
### Features
16
+
17
+
-`onUpdate` (`'prompt' | 'reload' | 'flag'`) decides what a check that finds a newer build does. `auto` still works and is deprecated.
18
+
-`prompt` asks the user to reload with your own component, which receives `UpdatePromptProps`; `promptOnChunkError` asks before reloading for a chunk error too.
19
+
-`reloadWhenHidden` reloads into a new build when the tab goes to the background, and checks once on the way.
20
+
-`canReload` holds back reloads the user did not start.
21
+
-`blocking={false}` renders the app before the first check.
22
+
- A tab that gets focus back after a whole `duration` checks at once.
23
+
- Next.js support: the bundle is marked `'use client'`, renders on the server and hydrates without a mismatch; Turbopack chunk errors are recognised.
24
+
-`defaultErrorCheckers` and `isCacheError` are exported.
25
+
26
+
### Fixes
27
+
28
+
-`lazyRetry` no longer retries forever on `0`, and keeps its result type.
29
+
- Chunk errors from Vite, mini-css-extract-plugin, native dynamic `import()` in every major browser, and chunks answered with HTML are recognised; 0.2 knew only webpack and one SyntaxError form.
0 commit comments