diff --git a/.changeset/chilly-dryers-begin.md b/.changeset/chilly-dryers-begin.md deleted file mode 100644 index 40ce3f52..00000000 --- a/.changeset/chilly-dryers-begin.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -"@opennextjs/cloudflare": minor ---- - -introduce new `initOpenNextCloudflareForDev` utility and make `getCloudflareContext` synchronous - -this change introduces a new `initOpenNextCloudflareForDev` function that must called in the [Next.js config file](https://nextjs.org/docs/app/api-reference/config/next-config-js) to integrate the Next.js dev server with the open-next Cloudflare adapter. - -Also makes `getCloudflareContext` synchronous. - -Additionally the `getCloudflareContext` can now work during local development (`next dev`) in the edge runtime (including middlewares). - -Moving forward we'll recommend that all applications include the use of the `initOpenNextCloudflareForDev` utility in their config file (there is no downside in doing so and it only effect local development). - -Example: - -```js -// next.config.mjs - -import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare"; - -initOpenNextCloudflareForDev(); - -/** @type {import('next').NextConfig} */ -const nextConfig = {}; - -export default nextConfig; -``` diff --git a/.changeset/quick-timers-fail.md b/.changeset/quick-timers-fail.md deleted file mode 100644 index be6af030..00000000 --- a/.changeset/quick-timers-fail.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@opennextjs/cloudflare": patch ---- - -fix: @vercel/og failing due to using the node version. - -Patches usage of the @vercel/og library to require the edge runtime version, and enables importing of the fallback font. diff --git a/packages/cloudflare/CHANGELOG.md b/packages/cloudflare/CHANGELOG.md index f9542fac..2b62b404 100644 --- a/packages/cloudflare/CHANGELOG.md +++ b/packages/cloudflare/CHANGELOG.md @@ -1,5 +1,40 @@ # @opennextjs/cloudflare +## 0.4.0 + +### Minor Changes + +- 8de2c04: introduce new `initOpenNextCloudflareForDev` utility and make `getCloudflareContext` synchronous + + this change introduces a new `initOpenNextCloudflareForDev` function that must called in the [Next.js config file](https://nextjs.org/docs/app/api-reference/config/next-config-js) to integrate the Next.js dev server with the open-next Cloudflare adapter. + + Also makes `getCloudflareContext` synchronous. + + Additionally the `getCloudflareContext` can now work during local development (`next dev`) in the edge runtime (including middlewares). + + Moving forward we'll recommend that all applications include the use of the `initOpenNextCloudflareForDev` utility in their config file (there is no downside in doing so and it only effect local development). + + Example: + + ```js + // next.config.mjs + + import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare"; + + initOpenNextCloudflareForDev(); + + /** @type {import('next').NextConfig} */ + const nextConfig = {}; + + export default nextConfig; + ``` + +### Patch Changes + +- 4ec334a: fix: @vercel/og failing due to using the node version. + + Patches usage of the @vercel/og library to require the edge runtime version, and enables importing of the fallback font. + ## 0.3.10 ### Patch Changes diff --git a/packages/cloudflare/package.json b/packages/cloudflare/package.json index 24b57b45..c6c041b3 100644 --- a/packages/cloudflare/package.json +++ b/packages/cloudflare/package.json @@ -1,7 +1,7 @@ { "name": "@opennextjs/cloudflare", "description": "Cloudflare builder for next apps", - "version": "0.3.10", + "version": "0.4.0", "type": "module", "scripts": { "clean": "rimraf dist",