Skip to content

Commit

Permalink
Version Packages (#660)
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
github-actions[bot] and github-actions[bot] authored Feb 13, 2024
1 parent 84e661d commit 687a39c
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 49 deletions.
30 changes: 0 additions & 30 deletions .changeset/healthy-yaks-look.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/loud-hounds-suffer.md

This file was deleted.

2 changes: 2 additions & 0 deletions packages/eslint-plugin-next-on-pages/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# eslint-plugin-next-on-pages

## 1.9.0

## 1.8.6

## 1.8.5
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next-on-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-next-on-pages",
"version": "1.8.6",
"version": "1.9.0",
"main": "dist/index.js",
"scripts": {
"prebuild": "rimraf dist",
Expand Down
45 changes: 45 additions & 0 deletions packages/next-on-pages/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# @cloudflare/next-on-pages

## 1.9.0

### Minor Changes

- 5712c57: Add new `getRequestContext` utility

Introduce a new `getRequestContext` utility that allows developer to get access not only
to their Cloudflare `env` but also to their `cf` and `ctx` objects

The utility can only be used in server-only code (meaning that it is incompatible with
Pages-router components).

Usage example:

```ts
// app/api/hello/route.js

import { getRequestContext } from '@cloudflare/next-on-pages';

export const runtime = 'edge';

export async function GET(request) {
const {
env,
cf,
ctx: { waitUntil },
} = getRequestContext();
// ...
}
```

- 06de52e: add new `setupDevPlatform` while deprecating `setupDevBindings`

Previously developers would provide their bindings as inline options passed to
the `setupDevBindings` function (see: https://github.com/cloudflare/next-on-pages/tree/main/internal-packages/next-dev#how-to-use-the-module)

Such function has been deprecated and the new `setupDevPlatform` has been added instead as its replacement, the latter does not
require users to use inline options but it reads and gathers the binding definitions from the user's `wrangler.toml` file instead,
this is:

- consistent with the newly introduced `getBindingsProxy` utility (which is actually being used here under the hood)
(https://developers.cloudflare.com/workers/wrangler/api/#getbindingsproxy)
- more convenient for users, since `wrangler pages dev` is also going to read the `wrangler.toml` file, making users
only need to declare the bindings at most once for local development instead of twice

## 1.8.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/next-on-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cloudflare/next-on-pages",
"version": "1.8.6",
"version": "1.9.0",
"bin": "./bin/index.js",
"exports": {
".": "./dist/api/index.js",
Expand Down

0 comments on commit 687a39c

Please sign in to comment.