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
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.