Skip to content

v4.0.0-beta.4

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 10 Oct 06:50
· 543 commits to main since this release
a179811

The fourth prerelease of ic-reactor 4, published under npm's beta dist-tag (latest stays on 3.x). It adds:

  • client.resendOf(error, canister, method, { dedupedBy }), which offers a write whose outcome is unknown again, with the bytes it sent, to the same canister, as the same account;
  • isReactorError(error, canister, method), which narrows a direct call's error to that method's Err;
  • in the Vite plugin, canisterId and network on a canister entry: a missing didFile is fetched from the canister's certified candid:service at build time, and re-fetched only with IC_REACTOR_FETCH;
  • docs for keeping the IC stack out of the first load with React.lazy.

Nothing in it breaks beta.3 code, and the candid-core pins are unchanged (@candid-core/schema 0.3.0, @candid-core/cli 0.2.0, exactly). What changed, and what each package now contains: CHANGELOG, core, react, vite-plugin 4.0.0-beta.4.

What's Changed

  • ci(size): set core's limit at its size and measure core with its peers by @b3hr4d in #859
  • feat(vite-plugin): fetch a missing didFile from the live canister (#852, phase 1) by @b3hr4d in #860
  • feat(core): isReactorError(error, canister, method) narrows a direct call's error to the method's Err by @b3hr4d in #862
  • docs: show React.lazy keeping the IC stack out of the first load by @b3hr4d in #863
  • feat(core): offer a deduplicated write again with client.resendOf by @b3hr4d in #864
  • chore(release): 4.0.0-beta.4 by @b3hr4d in #865

Full Changelog: v4.0.0-beta.3...v4.0.0-beta.4