Skip to content

Commit

Permalink
Version Packages (#286)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
workers-frameworks and github-actions[bot] authored Jan 27, 2025
1 parent 4ec334a commit 94e5969
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
28 changes: 0 additions & 28 deletions .changeset/chilly-dryers-begin.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/quick-timers-fail.md

This file was deleted.

35 changes: 35 additions & 0 deletions packages/cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 94e5969

Please sign in to comment.