Skip to content

Commit abd2eb8

Browse files
committed
Fixed types
1 parent 7d7cb41 commit abd2eb8

File tree

6 files changed

+8
-10
lines changed

6 files changed

+8
-10
lines changed

packages/nextjs-cache-handler/package-lock.json

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

packages/nextjs-cache-handler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"next",
1919
"redis"
2020
],
21-
"version": "2.0.0-canary11",
21+
"version": "2.0.0-canary12",
2222
"type": "module",
2323
"license": "MIT",
2424
"description": "Next.js cache handlers",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const REVALIDATED_TAGS_KEY = "__revalidated_tags__";
1+
export const REVALIDATED_TAGS_KEY = "__revalidated_tags__";

packages/nextjs-cache-handler/src/handlers/cache-handler.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {
2020
type IncrementalCachedPageValue,
2121
type GetIncrementalResponseCacheContext,
2222
type GetIncrementalFetchCacheContext,
23-
CachedRouteKind,
2423
IncrementalCacheValue,
2524
} from "next/dist/server/response-cache/types";
2625

@@ -189,7 +188,7 @@ export class CacheHandler implements NextCacheHandler {
189188

190189
const value: IncrementalCacheValue &
191190
Pick<IncrementalCachedPageValue, "pageData"> = {
192-
kind: CachedRouteKind.APP_PAGE,
191+
kind: "APP_PAGE" as unknown as any,
193192
html: pageHtmlFile,
194193
pageData,
195194
postponed: undefined,

packages/nextjs-cache-handler/src/instrumentation/register-initial-cache.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { PrerenderManifest } from "next/dist/build";
55
import { CACHE_ONE_YEAR } from "next/dist/lib/constants";
66
import {
77
CachedFetchValue,
8-
CachedRouteKind,
98
CachedRouteValue,
109
IncrementalCachedAppPageValue,
1110
IncrementalCachedPageValue,
@@ -204,7 +203,7 @@ export async function registerInitialCache(
204203

205204
try {
206205
const value: CachedRouteValue = {
207-
kind: CachedRouteKind.APP_ROUTE,
206+
kind: "APP_ROUTE" as unknown as any,
208207
body,
209208
headers: meta.headers,
210209
status: meta.status,
@@ -293,7 +292,7 @@ export async function registerInitialCache(
293292
try {
294293
const value: IncrementalCachedAppPageValue &
295294
Pick<IncrementalCachedPageValue, "pageData"> = {
296-
kind: CachedRouteKind.APP_PAGE,
295+
kind: "APP_PAGE" as unknown as any,
297296
html,
298297
pageData,
299298
postponed: meta?.postponed,

packages/nextjs-cache-handler/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"declarationMap": true,
77
"esModuleInterop": true,
88
"incremental": false,
9-
"isolatedModules": false,
9+
"isolatedModules": true,
1010
"lib": ["es2022", "DOM", "DOM.Iterable"],
1111
"moduleDetection": "force",
1212
"noUncheckedIndexedAccess": true,

0 commit comments

Comments
 (0)