Releases: canvasxyz/canvas
Releases · canvasxyz/canvas
v0.13.3
v0.13.2
v0.13.1
What's Changed
- Action signatures have changed from (db, { ...args }, { ...ctx }) => {} to (db, ...args) => {} to make it easier to construct typed function calls. You can use
this
to access the context object. Contracts should be updated but applications will continue to be backwards-compatible with previous signed data. - Return results of actions by @joeltg in #384
- Remove IPLD custom action functionality by @joeltg in #383
- Properly process db operations even if called without await by @raykyri in #382
- Add db.link() for updating bidirectional relations by @raykyri in #391
- Add React Native support by @raykyri in #394
- Add ability to include related models in ModelDB queries, and in useLiveQuery() by @raykyri in #376
- Explorer improvements: fix router, fix pagination, fix actions endpoint, add more info to API by @rjwebb
Full Changelog: v0.12.0...v0.13.1
v0.12.0
What's Changed
- Add typings to model operations inside actions, update Canvas type to be generic over ModelSchema by @raykyri in #369
- Add experimental Durable Objects backend for ModelDB and GossipLog @raykyri in #350
- Add
getMany
function to ModelDB by @rjwebb in #349
Full Changelog: v0.11.0...v0.12.0
v0.11.0
What's Changed
- Adds a WebSocket API for GossipLog (@joeltg in #339). This includes a new Express-like API for connecting Canvas runtime and GossipLog instances to peers and servers, that uses hub-and spoke sync over browser-to-server WebSockets. Networking has also been rewritten to be more robust for libp2p mesh topologies.
- Adds ModelDB API support for conditions when calling
count
(@rjwebb in #341) - Adds ModelDB API for clearing tables (@raykyri in #342)
- Adds support for snapshotting the ModelDB state of an application (@raykyri in #343)
Full Changelog: v0.10.10...v0.11.0
v0.10.10
v0.10.9
v0.10.8
v0.10.7
v0.10.6
Changed
- Updates to GossipSub configuration based on network testing
- Upgrade libp2p dependencies
- Fixes to sync: prevent syncs from terminating early after 3 seconds
- Fix bug in getSession()
- Simplify integration with libp2p by moving libp2p creation to GossipLog