From 933dcc8f20201fcbc3826776cb3a45bca8a0591d Mon Sep 17 00:00:00 2001 From: Wei Ouyang Date: Sun, 25 Aug 2024 19:42:05 -0700 Subject: [PATCH] Uprade hypha-rpc to 0.20.31 --- CHANGELOG.md | 8 ++++++++ docs/getting-started.md | 2 +- docs/migration-guide.md | 10 +++++----- docs/service-type-annotation.md | 2 +- helm-chart/hypha-server/values.yaml | 2 +- hypha/VERSION | 2 +- hypha/templates/hypha-core-app/hypha-app-webpython.js | 2 +- hypha/templates/ws/index.html | 2 +- requirements.txt | 2 +- setup.py | 2 +- 10 files changed, 21 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92ffbf1c..94963a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Hypha Change Log +### 0.20.31 + + - Upgrade hypha-rpc to fix ssl issue with the hypha-rpc client. + +### 0.20.30 + + - Fix server crashing bug when websocket.send is called after the connection is closed. + ### 0.20.20 - Fix static files not included in the package diff --git a/docs/getting-started.md b/docs/getting-started.md index cc9c877c..b7312eb5 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -218,7 +218,7 @@ svc = await get_remote_service("http://localhost:9527/ws-user-scintillating-lawy Include the following script in your HTML file to load the `hypha-rpc` client: ```html - + ``` Use the following code in JavaScript to connect to the server and access an existing service: diff --git a/docs/migration-guide.md b/docs/migration-guide.md index 03341a68..29bca713 100644 --- a/docs/migration-guide.md +++ b/docs/migration-guide.md @@ -15,7 +15,7 @@ To connect to the server, instead of installing the `imjoy-rpc` module, you will pip install -U hypha-rpc # new install ``` -We also changed our versioning strategy, we use the same version number for the server and client, so it's easier to match the client and server versions. For example, `hypha-rpc` version `0.20.30` is compatible with Hypha server version `0.20.30`. +We also changed our versioning strategy, we use the same version number for the server and client, so it's easier to match the client and server versions. For example, `hypha-rpc` version `0.20.31` is compatible with Hypha server version `0.20.31`. #### 2. Change the imports to use `hypha-rpc` @@ -128,10 +128,10 @@ loop.run_forever() To connect to the server, instead of using the `imjoy-rpc` module, you will need to use the `hypha-rpc` module. The `hypha-rpc` module is a standalone module that provides the RPC connection to the Hypha server. You can include it in your HTML using a script tag: ```html - + ``` -We also changed our versioning strategy, we use the same version number for the server and client, so it's easier to match the client and server versions. For example, `hypha-rpc` version `0.20.30` is compatible with Hypha server version `0.20.30`. +We also changed our versioning strategy, we use the same version number for the server and client, so it's easier to match the client and server versions. For example, `hypha-rpc` version `0.20.31` is compatible with Hypha server version `0.20.31`. #### 2. Change the connection method and use camelCase for service function names @@ -149,7 +149,7 @@ Here is a suggested list of search and replace operations to update your code: Here is an example of how the updated code might look: ```html - + + +