Skip to content

v0.15.0

Compare
Choose a tag to compare
@raykyri raykyri released this 22 May 05:31
· 61 commits to main since this release

Breaking Changes

  • Class contracts have replaced object contracts as the main, recommended way of configuring Canvas applications. Action APIs have not changed. See the docs for more details.
  • ConnectSIWE and ConnectSIWF buttons are now returned from useSIWE() and useSIWF() hooks, respectively.

Other Changes

  • Adds model-only contracts, specified as an object { models } where each model defines $rules for creating, updating, and deleting models.
  • Adds a db.id() call for generating sha256 hash ids.
  • Adds a db.random() call for generating random numbers in JS.
  • Allow db.create() to be called without a primary key.
  • Expose getSigner() and signerKeys on the core Canvas class.
  • Adds row-level editing to the network explorer.

Bug Fixes and Improvements

  • Fixes for useLiveQuery() around includes.
  • Fixes a crash when an action doesn't await database operations inside a transaction.
  • Fixes and issue with db.get() when a null value is returned.
  • The experimental synchronous loader has been moved to @canvas-js/core/sync and can be called with new Canvas({ topic, contract }). It is still not recommended for general public usage.