holochain-client-js

A JavaScript client for the Holochain Conductor API

OTHER License

Downloads
6.5K
Stars
257
Committers
23

Bot releases are hidden (Show)

holochain-client-js - v0.17.0-rc.0 Latest Release

Published by jost-s 5 months ago

Added

  • Test for Rust enum serialization.

Changed

holochain-client-js - v0.18.0-dev.1

Published by jost-s 5 months ago

Added

  • App id to AppClient and AppWebsocket.
  • Optional function parameter for a custom zome transformer in AppWebsocket.
holochain-client-js - v0.18.0-dev.0

Published by jost-s 6 months ago

Added

  • Test for Rust enum serialization.

Changed

holochain-client-js - v0.17.0-dev.12

Published by ThetaSinner 6 months ago

Fixed

  • Invalid module references which caused the client to fail to import in Node environments.
holochain-client-js - v0.17.0-dev.11

Published by ThetaSinner 6 months ago

Changed

  • BREAKING Changed Appwebsocket.connect() to take a single parameter AppWebsocketConnectionOptions that includes the AppAuthenticationToken as an optional property. The AppAuthenticationToken can be omitted if it is provided by the window.__HC_LAUNCHER_ENV__ variable.
  • BREAKING The legacy framework specific zome call signing methods signZomeCallTauri and signZomeCallElectron have been removed. Runtimes like Launcher now mandatorily need to provide a window.__HC_ZOME_CALL_SIGNER__ object to have zome calls be automatically signed.
  • New optional parameter to attachAppInterface to bind the app interface to a specific app.
  • BREAKING The admin call listAppInterfaces now returns a list of AppInterfaceInfo instead of a list of ports.
holochain-client-js - v0.17.0-dev.10

Published by ThetaSinner 6 months ago

Added

  • BREAKING Connecting an app websocket now requires an authentication token which can be obtained from the admin websocket using AdminWebsocket#issueAppAuthenticationToken.

Changed

  • BREAKING Merged the app and app-agent websockets into a single AppWebsocket class. Following the addition of the authentication token, the two types were well enough aligned that there was no longer a need to keep them separate.
  • BREAKING App calls that previously required an InstalledAppId no longer require one because the websocket will be authenticated with an app already, so the app interface no longer requires you to tell it which app you are calling.
holochain-client-js - v0.16.11

Published by jost-s 6 months ago

Fixed

  • Replace all IPv4 addresses 127.0.0.1 by localhost.
holochain-client-js - v0.17.0-dev.9

Published by jost-s 6 months ago

Fixed

  • Replace all IPv4 addresses 127.0.0.1 by localhost.
holochain-client-js - v0.17.0-dev.8

Published by jost-s 7 months ago

Changed

  • Websocket client: Specify origin parameter when establishing app websocket connections to protect localhost from cross origin attacks in browser scripts.
  • Websocket client: Add allowed_origins parameter to AdminWebsocket.attachAppInterface to specify allowed origins.
  • Consistently throw HolochainErrors throughout with specific error names and messages.
holochain-client-js - v0.17.0-dev.7

Published by jost-s 8 months ago

Fixed

  • Type: AppInfoResponse can be null if the requested app is not found.
holochain-client-js - v0.16.10

Published by jost-s 8 months ago

Fixed

  • Type: AppInfoResponse can be null if the requested app is not found.
holochain-client-js - v0.17.0-dev.6

Published by jost-s 8 months ago

Changed

  • BREAKING: Websocket.connect() functions' mandatory url parameter is replaced by an optional options object, which contains optional properties url and defaultTimeout. Calling connect if the url is not defined by parameter, nor by launcher environment will throw an error. Order of parameters in the AppAgentWebsocket.connect function is changed, so the required parameter goes first.
holochain-client-js - v0.16.9

Published by jost-s 9 months ago

Fixed

  • Work around cell_id being a proxy object in Vue.
holochain-client-js - v0.17.0-dev.5

Published by jost-s 9 months ago

Fixed

  • Work around cell_id being a proxy object in Vue.
holochain-client-js - v0.12.8

Published by jost-s 9 months ago

Fixed

  • work around cell_id being a proxy object in Vue
holochain-client-js - v0.16.8

Published by jost-s 9 months ago

Changed

  • Decouple host zome call signer from environment. Now a zome call signer can be provided separatedly from the environment that the client is used in.
holochain-client-js - v0.12.6

Published by jost-s 9 months ago

Changed

  • Decouple host zome call signer from environment. Now a zome call signer can be provided separatedly from the environment that the client is used in.
holochain-client-js - v0.17.0-dev.4

Published by jost-s 9 months ago

Changed

  • Decouple host zome call signer from environment. Now a zome call signer can be provided separatedly from the environment that the client is used in.
holochain-client-js - v0.16.7

Published by jost-s 11 months ago

Added

  • Utility functions for slicing hashes into their components: sliceHashType, sliceCore32, sliceDhtLocation
  • Utility functions for generating hashes from components: dhtLocationFrom32, hashFrom32AndType:

Changed

  • Utility functions fakeAgentPubKey, fakeEntryHash, fakeActionHash and fakeDnaHash now generate valid hashes with a valid final 4 bytes
  • Utility functions fakeAgentPubKey, fakeEntryHash, fakeActionHash and fakeDnaHash now optionally take a single parameter coreByte which if defined will be repeated for all core 32 bytes of the hash
holochain-client-js - v0.17.0-dev.3

Published by jost-s 11 months ago

Added

  • Utility functions for slicing hashes into their components: sliceHashType, sliceCore32, sliceDhtLocation
  • Utility functions for generating hashes from components: dhtLocationFrom32, hashFrom32AndType:

Changed

  • Utility functions fakeAgentPubKey, fakeEntryHash, fakeActionHash and fakeDnaHash now generate valid hashes with a valid final 4 bytes
  • Utility functions fakeAgentPubKey, fakeEntryHash, fakeActionHash and fakeDnaHash now optionally take a single parameter coreByte which if defined will be repeated for all core 32 bytes of the hash