Skip to content

Releases: replicate/replicate-javascript

v0.32.1

29 Aug 13:03
e7a1aac

Choose a tag to compare

What's Changed

  • Fix validateWebhook backwards incompatibility with older Node.js by @jakedahn in #298
  • Handle Fetch Headers and subscriptable JS object separately by @mattt in #300

New Contributors

Full Changelog: v0.32.0...v0.32.1

v0.32.0

25 Jul 19:21
ac75077

Choose a tag to compare

What's Changed

  • Pin to Node 22.4 in CI workflow by @mattt in #293
  • Revert "Pin to Node 22.4 in CI workflow" by @mattt in #294
  • Add support for models.search endpoint by @mattt in #292

Full Changelog: v0.31.1...v0.32.0

v0.31.1

05 Jul 18:16
4c04a57

Choose a tag to compare

What's Changed

  • Re-raise 4xx responses from server when uploading files by @aron in #284
  • Document alternate interface to validateWebhook() by @aron in #285
  • Document 100MiB file upload limit by @mattt in #287
  • Add integration test for Deno by @mattt in #281
  • Fix Deno integration test by @mattt in #282
  • Document supported platforms by @mattt in #280
  • Run integration tests with replicate/canary model by @mattt in #283

Full Changelog: v0.31.0...v0.31.1

v0.31.0

03 Jul 22:49
9121805

Choose a tag to compare

What's Changed

  • Add support for deployments.delete endpoint by @mattt in #279
  • Export files methods to client by @mattt in #278

Full Changelog: v0.30.2...v0.31.0

v0.30.2

10 Jun 11:06
4689e2b

Choose a tag to compare

This release fixes some issues with automatic file uploads.

What's Changed

  • Delete explicit Content-Type for FormData input by @mattt in #268
  • Update blob creation to handle Buffer inputs correctly in createFile by @mattt in #269

Full Changelog: v0.30.1...v0.30.2

v0.30.1

29 May 18:04
0d7a60b

Choose a tag to compare

What's Changed

  • Update README with troubleshooting section by @zeke in #264
  • Fix regression in how array input values are transformed by @mattt in #266

Full Changelog: v0.30.0...v0.30.1

v0.30.0

22 May 21:08
3db8800

Choose a tag to compare

The notable change in this release is support for Replicate's new (write-only) files API. By default, each binary input is uploaded and replaced with a URL to the created file. Before the inputs are sent to the model to be run, Replicate's API rewrites the URL to make the file downloadable.

From the perspective of the caller, the out-of-the-box experience is the same: You pass a file handle or blog as an input, and that's it — everything just works. And with the files API, things work much better for larger files, whose data URI encoding can cause write timeouts and other problems.

What's Changed

  • docs: document validateWebhook by @zeke in #259
  • document Node.js 18 requirement by @zeke in #260
  • add a Pull Request template by @zeke in #263
  • Add support for files API endpoints by @mattt in #184

Full Changelog: v0.29.4...v0.30.0

v0.29.4

03 May 20:02
5ba8d17

Choose a tag to compare

What's Changed

  • Prevent signal parameter from being passed alongside input when calling replicate.stream by @mattt in #254

Full Changelog: v0.29.3...v0.29.4

v0.29.3

02 May 21:34
bb5ddaf

Choose a tag to compare

What's Changed

  • Remove use of optional chaining in client by @mattt in #253
  • Add Node 22 to CI test matrix by @mattt in #252
  • Remove the node protocol from the require statement by @aron in #250

Full Changelog: v0.29.2...v0.29.3

v0.29.2

02 May 13:04
c1fd920

Choose a tag to compare

What's Changed

  • Fix passing abort signal into run method by @aron in #251
  • Use Bearer authorization scheme by @mattt in #246
  • Fix broken link in README by @zeke in #236

Full Changelog: v0.29.1...v0.29.2