Skip to content

Commit

Permalink
Merge pull request #35 from Holo-Host/rc-0.5.0
Browse files Browse the repository at this point in the history
Release 0.5.0
  • Loading branch information
robbiecarlton committed Mar 15, 2021
2 parents d5dd039 + c05b388 commit 447bb25
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.5.0] - 2021-03-15
### Added
- `holoInfo` method to get host url from `chaperone` [(#34)][]

[(#34)]: https://github.com/Holo-Host/web-sdk/pull/34

## [0.4.0] - 2021-03-02
### Added
- added signals.
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ Call a zome function on the respective DNA instance.
### `.appInfo( installed_app_id ) -> Promise<any>`
Calls appInfo on the conductor with the provided id.

### `.holoInfo() -> Promise<any>`
Returns `{
url: string
}`

### `.signIn() -> Promise<boolean>`
Trigger Chaperone's sign-in prompt.

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@holo-host/web-sdk",
"version": "0.4.0",
"version": "0.5.0",
"description": "Standard development kit for creating Web UIs that work with Holo Hosting.",
"main": "src/index.js",
"module": "src/index.js",
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ class Connection extends EventEmitter {
async signOut() {
return await this.child.run("signOut");
}

async holoInfo() {
return await this.child.run("holoInfo");
}
}

Connection.AUTONOMOUS = 1;
Expand Down

0 comments on commit 447bb25

Please sign in to comment.