Skip to content

Commit 685da6c

Browse files
1 parent e3b0f51 commit 685da6c

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
lines changed

.changeset/lovely-bugs-flow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@opennextjs/cloudflare": patch
3+
---
4+
5+
bump `@opennextjs/aws` dependency to `https://pkg.pr.new/@opennextjs/aws@755`

packages/cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"dependencies": {
7474
"@ast-grep/napi": "^0.34.1",
7575
"@dotenvx/dotenvx": "catalog:",
76-
"@opennextjs/aws": "https://pkg.pr.new/@opennextjs/aws@748",
76+
"@opennextjs/aws": "https://pkg.pr.new/@opennextjs/aws@755",
7777
"enquirer": "^2.4.1",
7878
"glob": "catalog:",
7979
"yaml": "^2.7.0"

packages/cloudflare/src/api/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ export function defineCloudflareConfig(options: CloudflareConfigOptions = {}): O
8383

8484
function resolveOverride<T extends IncrementalCache | TagCache | Queue>(
8585
value: T | (() => T | Promise<T>) | undefined
86-
): (() => Promise<T>) | "dummy" {
86+
): (() => T | Promise<T>) | "dummy" {
8787
if (!value) {
8888
return "dummy";
8989
}
9090

9191
if (typeof value === "function") {
92-
return async () => await value();
92+
return () => value();
9393
}
9494

9595
return async () => value;

packages/cloudflare/src/api/d1-tag-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { debug, error } from "@opennextjs/aws/adapters/logger.js";
22
import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js";
3-
import type { TagCache } from "@opennextjs/aws/types/overrides.js";
3+
import type { OriginalTagCache } from "@opennextjs/aws/types/overrides.js";
44
import { RecoverableError } from "@opennextjs/aws/utils/error.js";
55

66
import { getCloudflareContext } from "./cloudflare-context.js";
@@ -22,7 +22,7 @@ import { getCloudflareContext } from "./cloudflare-context.js";
2222
* and `revalidatedAt`. The table name can be configured with `NEXT_CACHE_D1_REVALIDATIONS_TABLE`
2323
* environment variable.
2424
*/
25-
class D1TagCache implements TagCache {
25+
class D1TagCache implements OriginalTagCache {
2626
public readonly name = "d1-tag-cache";
2727

2828
public async getByPath(rawPath: string): Promise<string[]> {

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)