v0.3.0
This release lands support for running Canvas apps entirely in the browser, along with improvements to the underlying libp2p networking stack!
What's New
@canvas-js/core
can be bundled and imported from the browser. Browser cores use IndexedDB for persisting messages, and an in-memory WASM SQLite database for the model store. You can provide acore: Core
instance directly to the<Canvas />
element instead of a host API URL, and use the rest of the hooks exactly the same way. See the example in examples/chat-browser!- Upgrade to libp2p v0.43.0 with the new Circuit Relay v2 implementation
Breaking Changes
- The
--listen
CLI argument is now a string /ws multiaddr, not a port number. This makes it possible to control the network interface in addition to the port. - The WebSocket API has been redesigned as a more minimal server-to-client event stream.
- The
ApplicationData
interface has been updated to include peering and merkle root metadata.