- The package ships its MIT
LICENSE, and its author, homepage and issue links are up to date. - The README opens with the new logo, and its images load on npmjs.com too.
- Releases are published from GitHub Actions through npm Trusted Publishing, with a provenance statement.
- React 18 or newer is required.
- The package ships ESM and CommonJS builds through
exports; deep imports intodist/no longer resolve. - The stored version is saved only when the cache is cleared, so
isLatestVersionstaysfalseuntil the reload. lazyRetry(fn, 0)makes one attempt instead of retrying forever.debugreceiveserror: unknownand always receivesstate.
See Upgrading from 0.x.
onUpdate('prompt' | 'reload' | 'flag') decides what a check that finds a newer build does.autostill works and is deprecated.promptasks the user to reload with your own component, which receivesUpdatePromptProps;promptOnChunkErrorasks before reloading for a chunk error too.reloadWhenHiddenreloads into a new build when the tab goes to the background, and checks once on the way.canReloadholds back reloads the user did not start.blocking={false}renders the app before the first check.- A tab that gets focus back after a whole
durationchecks at once. - Next.js support: the bundle is marked
'use client', renders on the server and hydrates without a mismatch; Turbopack chunk errors are recognised. defaultErrorCheckersandisCacheErrorare exported.
lazyRetryno longer retries forever on0, and keeps its result type.- 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.