Skip to content

Commit

Permalink
Add note about client upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Feb 20, 2024
1 parent eec9d60 commit 86d9fe9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/pages/get-started/upgrade-holochain.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@ npm install --workspace tests @holochain/client@^0.16.9
This will not install version `0.16.9` if a newer version has been released. Check your `package-lock.json` to see exactly what version got installed. It will be `0.16.x` because the `^` constraint only permits patch upgrades, so you will get a version that's compatible with Holochain 0.2.
!!!

One notable change in the client is that it now requires a URL rather than a string when connecting to Holochain. You should change

```js
this.client = await AppAgentWebsocket.connect('', 'myHapp');
```

To this

```js
this.client = await AppAgentWebsocket.connect(new URL('http://UNUSED'), 'myHapp');
```

#### Update `@holochain/tryorama`

In your project's `tests/package.json` you will find a dependency on `@holochain/tryorama`. This should be using `0.11.x`, which is the version compatible with Holochain 0.1. To work with Holochain 0.2, you need to update to `0.15.x`.
Expand Down

0 comments on commit 86d9fe9

Please sign in to comment.