@gradio/client 2.0.4 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/browser.js +569 -541
- package/dist/client.d.ts +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/helpers/api_info.d.ts.map +1 -1
- package/dist/helpers/zerogpu.d.ts +3 -0
- package/dist/helpers/zerogpu.d.ts.map +1 -0
- package/dist/index.js +45 -9
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/submit.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +8 -4
- package/src/helpers/api_info.ts +4 -1
- package/src/helpers/zerogpu.ts +40 -0
- package/src/test/api_info.test.ts +12 -5
- package/src/test/apply_diff.test.ts +1 -0
- package/src/test/data.test.ts +194 -118
- package/src/test/handlers.ts +0 -6
- package/src/test/init.test.ts +6 -3
- package/src/test/init_helpers.test.ts +7 -4
- package/src/test/mock_eventsource.ts +1 -1
- package/src/test/post_data.test.ts +7 -3
- package/src/test/server.ts +28 -3
- package/src/test/spaces.test.ts +6 -3
- package/src/test/stream.test.ts +17 -11
- package/src/test/upload_files.test.ts +7 -4
- package/src/test/view_api.test.ts +6 -3
- package/src/types.ts +3 -0
- package/src/utils/submit.ts +12 -6
- package/vite.config.ts +104 -0
- package/vite.config.js +0 -52
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @gradio/client
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- [#13176](https://github.com/gradio-app/gradio/pull/13176) [`45c4ecd`](https://github.com/gradio-app/gradio/commit/45c4ecd25fc83c7ee0210d216df1bc4bd509e622) - Add `@gr.cache()` decorator for caching deterministic functions, as as well as a lower-level `gr.Cache` that uses dependency injection. Thanks @abidlabs!
|
|
8
|
+
|
|
9
|
+
### Fixes
|
|
10
|
+
|
|
11
|
+
- [#13210](https://github.com/gradio-app/gradio/pull/13210) [`4005b93`](https://github.com/gradio-app/gradio/commit/4005b93dd59d7e0d144619986f01e900659b3d0b) - Fix ZeroGPU handling for `gr.Server`. Thanks @abidlabs!
|
|
12
|
+
|
|
13
|
+
## 2.1.0
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- [#12929](https://github.com/gradio-app/gradio/pull/12929) [`978bc6e`](https://github.com/gradio-app/gradio/commit/978bc6ea5094aa11e10994cdd662c4c663a86a83) - Add server functions support to gr.HTML. Thanks @aliabid94!
|
|
18
|
+
- [#12907](https://github.com/gradio-app/gradio/pull/12907) [`3e625a0`](https://github.com/gradio-app/gradio/commit/3e625a0ecfab6e74b7561b68adbe55341ecbc47a) - Better error handling when connection to server is lost. Thanks @abidlabs!
|
|
19
|
+
|
|
3
20
|
## 2.0.4
|
|
4
21
|
|
|
5
22
|
### Fixes
|