Skip to content

Releases: replicate/replicate-javascript

v0.30.0

22 May 21:08
3db8800
Compare
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
Compare
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
Compare
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
Compare
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

v0.29.1

21 Mar 10:54
19a5ca9
Compare
Choose a tag to compare

What's Changed

  • Fix Deployment type definition by @mattt in #232

Full Changelog: v0.29.0...v0.29.1

v0.29.0

19 Mar 09:47
049f77f
Compare
Choose a tag to compare

What's Changed

  • Add integration test for Bun by @mattt in #220
  • Extract CI tarball generation into separate build job by @mattt in #226
  • Add browser integration tests using Playwright by @aron in #222
  • Switch to replicate.stream in Bun integration test by @mattt in #227
  • Add support for new deployment endpoints by @aron in #223
  • Update README with deployments methods by @mattt in #228
  • Unset Bun integration test timeout and automatically retry 3 times by @mattt in #230

Full Changelog: v0.28.1...v0.29.0

v0.28.1

12 Mar 14:11
ba9b94e
Compare
Choose a tag to compare

What's Changed

  • Close the stream when receiving "done" event from the server by @aron in #219
  • Update CI configuration for integration test suite by @mattt in #218

Full Changelog: v0.28.0...v0.28.1

v0.28.0

12 Mar 09:19
3c62031
Compare
Choose a tag to compare

What's Changed

  • Add progress callback example to replicate.run docs by @zeke in #208
  • Add parseProgress helper function by @mattt in #207
  • Run npm run format on integration files by @aron in #212
  • Cloudflare Worker integration test suite by @aron in #215
  • Remove the dependency on node:crypto module by @aron in #216
  • Support CloudFlare workers by @aron in #217
  • Refactor Stream to use eventstream-parser library by @aron in #214

Full Changelog: v0.27.1...v0.28.0

v0.27.1

17 Feb 13:35
497b434
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.27.0...v0.27.1

v0.27.0

16 Feb 16:24
496d55a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.26.0...v0.27.0