Skip to content

@gradio/client@2.4.0

Choose a tag to compare

@gradio-pr-bot gradio-pr-bot released this 29 Jul 19:34
0fd56c1

Features

  • #13601 0ee5cc8 - Preserve browser-visible proxy origins for frontend assets and API requests, and retain app-level FastAPI root paths. Thanks @abidlabs!
  • #13657 a10b1d7 - Fix private Space connections and error handling in the JS client: accept the deprecated hf_token option as an alias for token, raise clear errors when a Space is private or missing, tolerate malformed /info payloads instead of crashing with "Cannot read properties of undefined (reading 'map')", and make predict() reject with real Error objects instead of plain status objects that surface as unhandled promise rejections. Thanks @abidlabs!
  • #13620 5200235 - Fix chained events after cancellation and while the browser tab is hidden. Thanks @abidlabs!
  • #13667 2d753d0 - oauth: let API callers supply a token for endpoints that take a gr.OAuthToken, via oauth_token on the Python and JS clients — sent only to endpoints that declare they need one. Thanks @abidlabs!

Fixes

  • #13656 7205856 - Preserve original filenames and MIME types when uploading File/Blob objects via the JS client, and use handle_file in the auto-generated JavaScript API snippets. Thanks @abidlabs!
  • #13655 e29c824 - Ship a real browser bundle for the documented CDN path (dist/index.min.js) and a CommonJS entry (dist/index.cjs via the require exports condition) for @gradio/client. Thanks @abidlabs!
  • #13627 3b12faa - Keep in-flight events and generators working when an app is hot-reloaded (gradio app.py). Thanks @abidlabs!