Skip to content

v4.0.0-beta.5

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Oct 15:35
· 558 commits to main since this release
9927e81

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

  • the candid-core pair published on 2026-10-10, pinned exactly: @candid-core/schema 0.4.0 (core's peer) and @candid-core/cli 0.3.0 (the Vite plugin's). Each method of a generated Actor now carries its mode;
  • client.queryOptions reads that mode: an update or a oneway method of a generated Actor does not compile there (#851). An idempotent update still opts in with { update: "idempotent" }, and queryOptions<A, any> keeps the run-time check where TypeScript cannot tell a read;
  • in the Vite plugin, methods on a canister entry: a fetched didFile is written as the live interface projected to the methods the app calls (#852, phase 2);
  • in the Vite plugin, the live check: verify: "live" on an entry, or IC_REACTOR_VERIFY, checks a didFile on disk against the canister's certified interface when a build or dev server starts. The plugin's options are now checked strictly: a misspelled key, a null or a value of the wrong type is refused rather than ignored.

Upgrading from beta.4: move all three @ic-reactor/* packages and the candid-core pair in one npm install, regenerate every module, and expect the queryOptions compile errors listed. No @ic-reactor/* export is added or removed. The steps, and what each package now contains: CHANGELOG, core, react, vite-plugin 4.0.0-beta.5.

What's Changed

  • chore: pin candid-core schema 0.4.0 and cli 0.3.0, and move v4 to 4.0.0-beta.5 by @b3hr4d in #866
  • feat(core): refuse update and oneway methods in queryOptions at compile time by @b3hr4d in #868
  • feat(vite-plugin): methods projection and the live check (#852, phase 2) by @b3hr4d in #867
  • chore(release): 4.0.0-beta.5 by @b3hr4d in #869

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