From ccedd3f2263228b990d9b6c159aac5499231e426 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Fri, 5 Jul 2024 03:33:53 -0700 Subject: [PATCH 1/2] Document supported platforms --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 797af77..808a712 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,17 @@ and everything else you can do with > For more information about how to build a web application > check out our ["Build a website with Next.js"](https://replicate.com/docs/get-started/nextjs) guide. -## Installation +## Supported platforms + +- [Node.js](https://nodejs.org) >= 18 +- [Bun](https://bun.sh) >= 1.0 -This library requires Node.js >= 18. +You can also use this client library on most serverless platforms, including +[Cloudflare Workers](https://developers.cloudflare.com/workers/), +[Vercel functions](https://vercel.com/docs/functions), and +[AWS Lambda](https://aws.amazon.com/lambda/). + +## Installation Install it from npm: @@ -230,7 +238,7 @@ By default, the `globalThis.fetch` function is used, which is available on [Node.js 18](https://nodejs.org/en/blog/announcements/v18-release-announce#fetch-experimental) and later, as well as [Cloudflare Workers](https://developers.cloudflare.com/workers/runtime-apis/fetch/), -[Vercel Edge Functions](https://vercel.com/docs/concepts/functions/edge-functions), +[Vercel Functions](https://vercel.com/docs/functions), and other environments. On earlier versions of Node.js From 59ced71b31e8a62fe11aa71781d2193c70f77737 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Fri, 5 Jul 2024 05:05:15 -0700 Subject: [PATCH 2/2] Document support for Deno >= 1.28 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 808a712..0f26281 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ and everything else you can do with - [Node.js](https://nodejs.org) >= 18 - [Bun](https://bun.sh) >= 1.0 +- [Deno](https://deno.com) >= 1.28 You can also use this client library on most serverless platforms, including [Cloudflare Workers](https://developers.cloudflare.com/workers/),