diff --git a/docs/getting-started.md b/docs/getting-started.md index 9c352f70..a1a6bb1b 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -220,7 +220,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 -<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.46/dist/hypha-rpc-websocket.min.js"></script> +<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.47/dist/hypha-rpc-websocket.min.js"></script> ``` 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 fbba9d5d..198c6168 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.46` is compatible with Hypha server version `0.20.46`. +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.47` is compatible with Hypha server version `0.20.47`. #### 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 -<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.46/dist/hypha-rpc-websocket.min.js"></script> +<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.47/dist/hypha-rpc-websocket.min.js"></script> ``` -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.46` is compatible with Hypha server version `0.20.46`. +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.47` is compatible with Hypha server version `0.20.47`. #### 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 -<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.46/dist/hypha-rpc-websocket.min.js"></script> +<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.47/dist/hypha-rpc-websocket.min.js"></script> <script> async function main(){ const server = await hyphaWebsocketClient.connectToServer({"server_url": "https://hypha.amun.ai"}); @@ -197,7 +197,7 @@ We created a tutorial to introduce this new feature: [service type annotation](. Here is a quick example in JavaScript: ```html -<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.46/dist/hypha-rpc-websocket.min.js"></script> +<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.47/dist/hypha-rpc-websocket.min.js"></script> <script> async function main(){ diff --git a/docs/service-type-annotation.md b/docs/service-type-annotation.md index 78f42244..6c92c172 100644 --- a/docs/service-type-annotation.md +++ b/docs/service-type-annotation.md @@ -134,7 +134,7 @@ if __name__ == "__main__": **JavaScript Client: Service Usage** ```html -<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.46/dist/hypha-rpc-websocket.min.js"></script> +<script src="https://cdn.jsdelivr.net/npm/hypha-rpc@0.20.47/dist/hypha-rpc-websocket.min.js"></script> <script> async function main() { const server = await hyphaWebsocketClient.connectToServer({"server_url": "https://hypha.amun.ai"}); diff --git a/helm-charts/aks-hypha.md b/helm-charts/aks-hypha.md index e1882474..ff0df978 100644 --- a/helm-charts/aks-hypha.md +++ b/helm-charts/aks-hypha.md @@ -146,7 +146,7 @@ replicaCount: 1 image: repository: ghcr.io/amun-ai/hypha pullPolicy: IfNotPresent - tag: "0.20.46" + tag: "0.20.47" serviceAccount: create: true diff --git a/helm-charts/hypha-server/Chart.yaml b/helm-charts/hypha-server/Chart.yaml index 7bf1b200..99ffdc01 100644 --- a/helm-charts/hypha-server/Chart.yaml +++ b/helm-charts/hypha-server/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.20.46 +version: 0.20.47 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm-charts/hypha-server/values.yaml b/helm-charts/hypha-server/values.yaml index 9db5c1fb..0ca0de18 100644 --- a/helm-charts/hypha-server/values.yaml +++ b/helm-charts/hypha-server/values.yaml @@ -8,7 +8,7 @@ image: repository: ghcr.io/amun-ai/hypha pullPolicy: IfNotPresent # Overrides the image tag whose default is the chart appVersion. - tag: "0.20.46" + tag: "0.20.47" imagePullSecrets: [] nameOverride: "" diff --git a/hypha/VERSION b/hypha/VERSION index 3b61d05f..3851de84 100644 --- a/hypha/VERSION +++ b/hypha/VERSION @@ -1,3 +1,3 @@ { - "version": "0.20.46.post1" + "version": "0.20.47" } diff --git a/hypha/templates/hypha-core-app/hypha-app-webpython.js b/hypha/templates/hypha-core-app/hypha-app-webpython.js index 6205c970..05bf0872 100644 --- a/hypha/templates/hypha-core-app/hypha-app-webpython.js +++ b/hypha/templates/hypha-core-app/hypha-app-webpython.js @@ -27,7 +27,7 @@ loadPyodide().then(async (pyodide) => { pyodide.setStderr({ batched: (msg) => console.error(msg) }); await pyodide.loadPackage("micropip"); const micropip = pyodide.pyimport("micropip"); - await micropip.install('hypha-rpc==0.20.46'); + await micropip.install('hypha-rpc==0.20.47'); const isWindow = typeof window !== "undefined"; setTimeout(() => { diff --git a/hypha/templates/ws/index.html b/hypha/templates/ws/index.html index 4877207b..4a174312 100644 --- a/hypha/templates/ws/index.html +++ b/hypha/templates/ws/index.html @@ -160,7 +160,7 @@ <body class="bg-black text-white font-poppins"> <div id="app"></div> <script type="module"> - import { HyphaCore } from "https://cdn.jsdelivr.net/npm/hypha-core@0.20.46/dist/hypha-core.mjs"; + import { HyphaCore } from "https://cdn.jsdelivr.net/npm/hypha-core@0.20.47/dist/hypha-core.mjs"; const defaultService = { getServerConfig(context){ diff --git a/requirements.txt b/requirements.txt index 1db6ca98..816c1c2e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ aiofiles==23.2.1 websockets==13.1 base58==2.1.1 fastapi==0.106.0 -hypha-rpc==0.20.46 +hypha-rpc==0.20.47 jinja2==3.1.4 lxml==4.9.3 msgpack==1.0.8 diff --git a/setup.py b/setup.py index 1d44aa28..d9220043 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ REQUIREMENTS = [ "aiofiles", "fastapi>=0.70.0,<=0.106.0", - "hypha-rpc>=0.20.46", + "hypha-rpc>=0.20.47", "msgpack>=1.0.2", "numpy", "pydantic[email]>=2.6.1",