diff --git a/.changeset/ten-mice-clean.md b/.changeset/ten-mice-clean.md new file mode 100644 index 000000000..81ee8dccf --- /dev/null +++ b/.changeset/ten-mice-clean.md @@ -0,0 +1,5 @@ +--- +"@opennextjs/cloudflare": patch +--- + +Implement next mode for d1 tag cache that will reduce write diff --git a/examples/common/apps.ts b/examples/common/apps.ts index ee320f238..c61bdf347 100644 --- a/examples/common/apps.ts +++ b/examples/common/apps.ts @@ -12,6 +12,8 @@ const apps = [ "app-pages-router", "app-router", "pages-router", + // overrides + "d1-tag-next", // bugs "gh-119", "gh-219", diff --git a/examples/common/config-e2e.ts b/examples/common/config-e2e.ts index 17c8cfc0d..9996f2614 100644 --- a/examples/common/config-e2e.ts +++ b/examples/common/config-e2e.ts @@ -13,6 +13,8 @@ export function configurePlaywright( isWorker = true, // Tests with multiple browsers multipleBrowsers = false, + // Whether to run tests in single file in parallel + parallel = true, } = {} ) { const port = getAppPort(app, { isWorker }); @@ -60,7 +62,7 @@ export function configurePlaywright( /* ignore runtime specific tests */ testIgnore: isWorker ? "*next.spec.ts" : "*cloudflare.spec.ts", /* Run tests in files in parallel */ - fullyParallel: true, + fullyParallel: parallel, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: isCI, /* Retry on CI only */ diff --git a/examples/overrides/d1-tag-next/.gitignore b/examples/overrides/d1-tag-next/.gitignore new file mode 100644 index 000000000..3f753f293 --- /dev/null +++ b/examples/overrides/d1-tag-next/.gitignore @@ -0,0 +1,47 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/versions + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# env files (can opt-in for committing if needed) +.env* + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +# playwright +/test-results/ +/playwright-report/ +/blob-report/ +/playwright/.cache/ diff --git a/examples/overrides/d1-tag-next/app/action.ts b/examples/overrides/d1-tag-next/app/action.ts new file mode 100644 index 000000000..76441c9a4 --- /dev/null +++ b/examples/overrides/d1-tag-next/app/action.ts @@ -0,0 +1,11 @@ +"use server"; + +import { revalidatePath, revalidateTag } from "next/cache"; + +export async function revalidateTagAction() { + revalidateTag("date"); +} + +export async function revalidatePathAction() { + revalidatePath("/"); +} diff --git a/examples/overrides/d1-tag-next/app/components/revalidationButtons.tsx b/examples/overrides/d1-tag-next/app/components/revalidationButtons.tsx new file mode 100644 index 000000000..a84652a4c --- /dev/null +++ b/examples/overrides/d1-tag-next/app/components/revalidationButtons.tsx @@ -0,0 +1,27 @@ +"use client"; + +import { revalidateTagAction, revalidatePathAction } from "../action"; + +export default function RevalidationButtons() { + return ( +
+ + + +
+ ); +} diff --git a/examples/overrides/d1-tag-next/app/favicon.ico b/examples/overrides/d1-tag-next/app/favicon.ico new file mode 100644 index 000000000..718d6fea4 Binary files /dev/null and b/examples/overrides/d1-tag-next/app/favicon.ico differ diff --git a/examples/overrides/d1-tag-next/app/globals.css b/examples/overrides/d1-tag-next/app/globals.css new file mode 100644 index 000000000..6e6f12f33 --- /dev/null +++ b/examples/overrides/d1-tag-next/app/globals.css @@ -0,0 +1,14 @@ +html, +body { + max-width: 100vw; + overflow-x: hidden; + height: 100vh; + display: flex; + flex-direction: column; +} + +footer { + padding: 1rem; + display: flex; + justify-content: end; +} diff --git a/examples/overrides/d1-tag-next/app/layout.tsx b/examples/overrides/d1-tag-next/app/layout.tsx new file mode 100644 index 000000000..d3d960b2f --- /dev/null +++ b/examples/overrides/d1-tag-next/app/layout.tsx @@ -0,0 +1,28 @@ +import type { Metadata } from "next"; +import "./globals.css"; + +import { getCloudflareContext } from "@opennextjs/cloudflare"; + +export const metadata: Metadata = { + title: "SSG App", + description: "An app in which all the routes are SSG'd", +}; + +export default async function RootLayout({ + children, +}: Readonly<{ + children: React.ReactNode; +}>) { + const cloudflareContext = await getCloudflareContext({ + async: true, + }); + + return ( + + + {children} + + + + ); +} diff --git a/examples/overrides/d1-tag-next/app/page.module.css b/examples/overrides/d1-tag-next/app/page.module.css new file mode 100644 index 000000000..1217984e8 --- /dev/null +++ b/examples/overrides/d1-tag-next/app/page.module.css @@ -0,0 +1,17 @@ +.page { + display: grid; + grid-template-rows: 20px 1fr 20px; + align-items: center; + justify-items: center; + flex: 1; + border: 3px solid gray; + margin: 1rem; + margin-block-end: 0; +} + +.main { + display: flex; + flex-direction: column; + gap: 32px; + grid-row-start: 2; +} diff --git a/examples/overrides/d1-tag-next/app/page.tsx b/examples/overrides/d1-tag-next/app/page.tsx new file mode 100644 index 000000000..19ff70ad8 --- /dev/null +++ b/examples/overrides/d1-tag-next/app/page.tsx @@ -0,0 +1,26 @@ +import { unstable_cache } from "next/cache"; +import styles from "./page.module.css"; +import RevalidationButtons from "./components/revalidationButtons"; + +const fetchedDateCb = unstable_cache( + async () => { + return Date.now(); + }, + ["date"], + { tags: ["date"] } +); + +export default async function Home() { + const fetchedDate = await fetchedDateCb(); + return ( +
+
+

Hello from a Statically generated page

+

{Date.now()}

+

{fetchedDate}

+ + +
+
+ ); +} diff --git a/examples/overrides/d1-tag-next/e2e/base.spec.ts b/examples/overrides/d1-tag-next/e2e/base.spec.ts new file mode 100644 index 000000000..8e003c42e --- /dev/null +++ b/examples/overrides/d1-tag-next/e2e/base.spec.ts @@ -0,0 +1,47 @@ +import { test, expect } from "@playwright/test"; + +test.describe("d1-tag-next", () => { + test("the index page should work", async ({ page }) => { + await page.goto("/"); + await expect(page.getByText("Hello from a Statically generated page")).toBeVisible(); + }); + + test("the index page should keep the same date on reload", async ({ page }) => { + await page.goto("/"); + const date = await page.getByTestId("date-local").textContent(); + expect(date).not.toBeNull(); + await page.reload(); + const newDate = await page.getByTestId("date-local").textContent(); + expect(date).toEqual(newDate); + }); + + test("the index page should revalidate the date on click on revalidateTag", async ({ page }) => { + await page.goto("/"); + const date = await page.getByTestId("date-fetched").textContent(); + await page.getByTestId("revalidate-tag").click(); + await page.waitForTimeout(100); + const newDate = await page.getByTestId("date-fetched").textContent(); + expect(date).not.toEqual(newDate); + }); + + test("the index page should revalidate the date on click on revalidatePath", async ({ page }) => { + await page.goto("/"); + const date = await page.getByTestId("date-fetched").textContent(); + await page.getByTestId("revalidate-path").click(); + await page.waitForTimeout(100); + const newDate = await page.getByTestId("date-fetched").textContent(); + expect(date).not.toEqual(newDate); + }); + + test("the index page should keep the same date on reload after revalidation", async ({ page }) => { + await page.goto("/"); + const initialDate = await page.getByTestId("date-fetched").textContent(); + await page.getByTestId("revalidate-tag").click(); + await page.waitForTimeout(100); + const date = await page.getByTestId("date-fetched").textContent(); + expect(initialDate).not.toEqual(date); + await page.reload(); + const newDate = await page.getByTestId("date-fetched").textContent(); + expect(date).toEqual(newDate); + }); +}); diff --git a/examples/overrides/d1-tag-next/e2e/playwright.config.ts b/examples/overrides/d1-tag-next/e2e/playwright.config.ts new file mode 100644 index 000000000..5413ac145 --- /dev/null +++ b/examples/overrides/d1-tag-next/e2e/playwright.config.ts @@ -0,0 +1,4 @@ +import { configurePlaywright } from "../../../common/config-e2e"; + +// Here we don't want to run the tests in parallel +export default configurePlaywright("d1-tag-next", { isCI: !!process.env.CI, parallel: false }); diff --git a/examples/overrides/d1-tag-next/next.config.ts b/examples/overrides/d1-tag-next/next.config.ts new file mode 100644 index 000000000..4b075e442 --- /dev/null +++ b/examples/overrides/d1-tag-next/next.config.ts @@ -0,0 +1,11 @@ +import type { NextConfig } from "next"; +import { initOpenNextCloudflareForDev } from "@opennextjs/cloudflare"; + +initOpenNextCloudflareForDev(); + +const nextConfig: NextConfig = { + typescript: { ignoreBuildErrors: true }, + eslint: { ignoreDuringBuilds: true }, +}; + +export default nextConfig; diff --git a/examples/overrides/d1-tag-next/open-next.config.ts b/examples/overrides/d1-tag-next/open-next.config.ts new file mode 100644 index 000000000..b41b414b0 --- /dev/null +++ b/examples/overrides/d1-tag-next/open-next.config.ts @@ -0,0 +1,8 @@ +import { defineCloudflareConfig } from "@opennextjs/cloudflare"; +import kvIncrementalCache from "@opennextjs/cloudflare/kv-cache"; +import d1NextTagCache from "@opennextjs/cloudflare/d1-next-tag-cache"; + +export default defineCloudflareConfig({ + incrementalCache: kvIncrementalCache, + tagCache: d1NextTagCache, +}); diff --git a/examples/overrides/d1-tag-next/package.json b/examples/overrides/d1-tag-next/package.json new file mode 100644 index 000000000..01bdf5662 --- /dev/null +++ b/examples/overrides/d1-tag-next/package.json @@ -0,0 +1,30 @@ +{ + "name": "d1-tag-next", + "version": "0.1.0", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint", + "d1:clean": "wrangler d1 execute NEXT_CACHE_D1 --command \"DROP TABLE IF EXISTS revalidations\"", + "d1:setup": "wrangler d1 execute NEXT_CACHE_D1 --command \"CREATE TABLE IF NOT EXISTS revalidations (tag TEXT NOT NULL, revalidatedAt INTEGER NOT NULL, UNIQUE(tag) ON CONFLICT REPLACE);\"", + "build:worker": "opennextjs-cloudflare && pnpm d1:clean && pnpm d1:setup", + "preview": "pnpm build:worker && pnpm wrangler dev", + "e2e": "playwright test -c e2e/playwright.config.ts" + }, + "dependencies": { + "react": "^19.0.0", + "react-dom": "^19.0.0", + "next": "15.1.7" + }, + "devDependencies": { + "@opennextjs/cloudflare": "workspace:*", + "@playwright/test": "catalog:", + "@types/node": "catalog:", + "@types/react": "^19", + "@types/react-dom": "^19", + "typescript": "catalog:", + "wrangler": "catalog:" + } +} diff --git a/examples/overrides/d1-tag-next/tsconfig.json b/examples/overrides/d1-tag-next/tsconfig.json new file mode 100644 index 000000000..d8b93235f --- /dev/null +++ b/examples/overrides/d1-tag-next/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES2017", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/examples/overrides/d1-tag-next/wrangler.jsonc b/examples/overrides/d1-tag-next/wrangler.jsonc new file mode 100644 index 000000000..f2122ede4 --- /dev/null +++ b/examples/overrides/d1-tag-next/wrangler.jsonc @@ -0,0 +1,27 @@ +{ + "$schema": "node_modules/wrangler/config-schema.json", + "main": ".open-next/worker.js", + "name": "ssg-app", + "compatibility_date": "2025-02-04", + "compatibility_flags": ["nodejs_compat"], + "assets": { + "directory": ".open-next/assets", + "binding": "ASSETS" + }, + "vars": { + "APP_VERSION": "1.2.345" + }, + "kv_namespaces": [ + { + "binding": "NEXT_CACHE_WORKERS_KV", + "id": "" + } + ], + "d1_databases": [ + { + "binding": "NEXT_CACHE_D1", + "database_id": "NEXT_CACHE_D1", + "database_name": "NEXT_CACHE_D1" + } + ] +} diff --git a/packages/cloudflare/src/api/constants.ts b/packages/cloudflare/src/api/constants.ts new file mode 100644 index 000000000..2fbe40555 --- /dev/null +++ b/packages/cloudflare/src/api/constants.ts @@ -0,0 +1 @@ +export const DEFAULT_NEXT_CACHE_D1_REVALIDATIONS_TABLE = "revalidations"; diff --git a/packages/cloudflare/src/api/d1-next-tag-cache.ts b/packages/cloudflare/src/api/d1-next-tag-cache.ts new file mode 100644 index 000000000..224d6f54a --- /dev/null +++ b/packages/cloudflare/src/api/d1-next-tag-cache.ts @@ -0,0 +1,82 @@ +import { debug, error } from "@opennextjs/aws/adapters/logger.js"; +import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js"; +import type { NextModeTagCache } from "@opennextjs/aws/types/overrides.js"; +import { RecoverableError } from "@opennextjs/aws/utils/error.js"; + +import { getCloudflareContext } from "./cloudflare-context.js"; +import { DEFAULT_NEXT_CACHE_D1_REVALIDATIONS_TABLE } from "./constants.js"; + +export class D1NextModeTagCache implements NextModeTagCache { + readonly mode = "nextMode" as const; + readonly name = "d1-next-mode-tag-cache"; + + async hasBeenRevalidated(tags: string[], lastModified?: number): Promise { + const { isDisabled, db, tables } = this.getConfig(); + if (isDisabled) return false; + try { + const result = await db + .prepare( + `SELECT COUNT(*) as cnt FROM ${JSON.stringify(tables.revalidations)} WHERE tag IN (${tags.map(() => "?").join(", ")}) AND revalidatedAt > ? LIMIT 1` + ) + .bind(...tags.map((tag) => this.getCacheKey(tag)), lastModified ?? Date.now()) + .first<{ cnt: number }>(); + if (!result) throw new RecoverableError(`D1 select failed for ${tags}`); + + return result.cnt > 0; + } catch (e) { + error(e); + // By default we don't want to crash here, so we return false + // We still log the error though so we can debug it + return false; + } + } + + async writeTags(tags: string[]): Promise { + const { isDisabled, db, tables } = this.getConfig(); + if (isDisabled) return Promise.resolve(); + const result = await db.batch( + tags.map((tag) => + db + .prepare(`INSERT INTO ${JSON.stringify(tables.revalidations)} (tag, revalidatedAt) VALUES (?, ?)`) + .bind(this.getCacheKey(tag), Date.now()) + ) + ); + if (!result) throw new RecoverableError(`D1 insert failed for ${tags}`); + } + + private getConfig() { + const cfEnv = getCloudflareContext().env; + const db = cfEnv.NEXT_CACHE_D1; + + if (!db) debug("No D1 database found"); + + const isDisabled = !!(globalThis as unknown as { openNextConfig: OpenNextConfig }).openNextConfig + .dangerous?.disableTagCache; + + if (!db || isDisabled) { + return { isDisabled: true as const }; + } + + return { + isDisabled: false as const, + db, + tables: { + revalidations: cfEnv.NEXT_CACHE_D1_REVALIDATIONS_TABLE ?? DEFAULT_NEXT_CACHE_D1_REVALIDATIONS_TABLE, + }, + }; + } + + protected removeBuildId(key: string) { + return key.replace(`${this.getBuildId()}/`, ""); + } + + protected getCacheKey(key: string) { + return `${this.getBuildId()}/${key}`.replaceAll("//", "/"); + } + + protected getBuildId() { + return process.env.NEXT_BUILD_ID ?? "no-build-id"; + } +} + +export default new D1NextModeTagCache(); diff --git a/packages/cloudflare/src/api/d1-tag-cache.ts b/packages/cloudflare/src/api/d1-tag-cache.ts index 149e969d2..b32ea6d05 100644 --- a/packages/cloudflare/src/api/d1-tag-cache.ts +++ b/packages/cloudflare/src/api/d1-tag-cache.ts @@ -4,6 +4,7 @@ import type { OriginalTagCache } from "@opennextjs/aws/types/overrides.js"; import { RecoverableError } from "@opennextjs/aws/utils/error.js"; import { getCloudflareContext } from "./cloudflare-context.js"; +import { DEFAULT_NEXT_CACHE_D1_REVALIDATIONS_TABLE } from "./constants.js"; /** * An instance of the Tag Cache that uses a D1 binding (`NEXT_CACHE_D1`) as it's underlying data store. @@ -154,7 +155,7 @@ class D1TagCache implements OriginalTagCache { db, tables: { tags: cfEnv.NEXT_CACHE_D1_TAGS_TABLE ?? "tags", - revalidations: cfEnv.NEXT_CACHE_D1_REVALIDATIONS_TABLE ?? "revalidations", + revalidations: cfEnv.NEXT_CACHE_D1_REVALIDATIONS_TABLE ?? DEFAULT_NEXT_CACHE_D1_REVALIDATIONS_TABLE, }, }; } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7b31632af..f286e9005 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -683,6 +683,40 @@ importers: specifier: 'catalog:' version: 3.114.1(@cloudflare/workers-types@4.20250224.0) + examples/overrides/d1-tag-next: + dependencies: + next: + specifier: 15.1.7 + version: 15.1.7(@opentelemetry/api@1.9.0)(@playwright/test@1.47.0)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + react: + specifier: ^19.0.0 + version: 19.0.0 + react-dom: + specifier: ^19.0.0 + version: 19.0.0(react@19.0.0) + devDependencies: + '@opennextjs/cloudflare': + specifier: workspace:* + version: link:../../../packages/cloudflare + '@playwright/test': + specifier: 'catalog:' + version: 1.47.0 + '@types/node': + specifier: 'catalog:' + version: 22.2.0 + '@types/react': + specifier: ^19 + version: 19.0.8 + '@types/react-dom': + specifier: ^19 + version: 19.0.3(@types/react@19.0.8) + typescript: + specifier: 'catalog:' + version: 5.7.3 + wrangler: + specifier: 'catalog:' + version: 3.114.1(@cloudflare/workers-types@4.20250224.0) + examples/playground14: dependencies: next: @@ -16146,7 +16180,7 @@ snapshots: debug: 4.3.6 enhanced-resolve: 5.17.1 eslint: 8.57.1 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0)(eslint@8.57.1))(eslint@8.57.1) fast-glob: 3.3.2 get-tsconfig: 4.8.0 is-bun-module: 1.2.1 @@ -16165,7 +16199,7 @@ snapshots: debug: 4.3.6 enhanced-resolve: 5.17.1 eslint: 8.57.1 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1) fast-glob: 3.3.2 get-tsconfig: 4.8.0 is-bun-module: 1.2.1 @@ -16184,7 +16218,7 @@ snapshots: debug: 4.3.6 enhanced-resolve: 5.17.1 eslint: 9.11.1(jiti@1.21.6) - eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@9.11.1(jiti@1.21.6)) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@9.11.1(jiti@1.21.6)))(eslint@9.11.1(jiti@1.21.6)) fast-glob: 3.3.2 get-tsconfig: 4.8.0 is-bun-module: 1.2.1 @@ -16203,7 +16237,7 @@ snapshots: debug: 4.3.6 enhanced-resolve: 5.17.1 eslint: 9.19.0(jiti@1.21.6) - eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@9.19.0(jiti@1.21.6)) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@9.19.0(jiti@1.21.6)))(eslint@9.19.0(jiti@1.21.6)) fast-glob: 3.3.2 get-tsconfig: 4.8.0 is-bun-module: 1.2.1 @@ -16216,7 +16250,18 @@ snapshots: - eslint-import-resolver-webpack - supports-color - eslint-module-utils@2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1): + eslint-module-utils@2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0)(eslint@8.57.1))(eslint@8.57.1): + dependencies: + debug: 3.2.7 + optionalDependencies: + '@typescript-eslint/parser': 8.7.0(eslint@8.57.1)(typescript@5.7.3) + eslint: 8.57.1 + eslint-import-resolver-node: 0.3.9 + eslint-import-resolver-typescript: 3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0)(eslint@8.57.1) + transitivePeerDependencies: + - supports-color + + eslint-module-utils@2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1): dependencies: debug: 3.2.7 optionalDependencies: @@ -16227,7 +16272,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.11.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@9.11.1(jiti@1.21.6)): + eslint-module-utils@2.11.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@9.11.1(jiti@1.21.6)))(eslint@9.11.1(jiti@1.21.6)): dependencies: debug: 3.2.7 optionalDependencies: @@ -16238,7 +16283,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.11.0(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@9.19.0(jiti@1.21.6)): + eslint-module-utils@2.11.0(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@9.19.0(jiti@1.21.6)))(eslint@9.19.0(jiti@1.21.6)): dependencies: debug: 3.2.7 optionalDependencies: @@ -16249,7 +16294,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1): dependencies: debug: 3.2.7 optionalDependencies: @@ -16260,7 +16305,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@9.11.1(jiti@1.21.6)): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@9.11.1(jiti@1.21.6)))(eslint@9.11.1(jiti@1.21.6)): dependencies: debug: 3.2.7 optionalDependencies: @@ -16271,7 +16316,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.0(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@9.19.0(jiti@1.21.6)): + eslint-module-utils@2.12.0(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@9.19.0(jiti@1.21.6)))(eslint@9.19.0(jiti@1.21.6)): dependencies: debug: 3.2.7 optionalDependencies: @@ -16293,7 +16338,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1) + eslint-module-utils: 2.11.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.30.0)(eslint@8.57.1))(eslint@8.57.1) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -16321,7 +16366,7 @@ snapshots: doctrine: 2.1.0 eslint: 8.57.1 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@8.57.1) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@8.57.1)(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@8.57.1))(eslint@8.57.1) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -16350,7 +16395,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.11.1(jiti@1.21.6) eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@9.11.1(jiti@1.21.6)) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@9.11.1(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@9.11.1(jiti@1.21.6)))(eslint@9.11.1(jiti@1.21.6)) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 @@ -16379,7 +16424,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.19.0(jiti@1.21.6) eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3)(eslint@9.19.0(jiti@1.21.6)) + eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.6.3(@typescript-eslint/parser@8.7.0(eslint@9.19.0(jiti@1.21.6))(typescript@5.7.3))(eslint-import-resolver-node@0.3.9)(eslint-plugin-import@2.31.0)(eslint@9.19.0(jiti@1.21.6)))(eslint@9.19.0(jiti@1.21.6)) hasown: 2.0.2 is-core-module: 2.15.1 is-glob: 4.0.3 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 866d972e4..c03004c4d 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,6 +3,7 @@ packages: - examples/* - examples/e2e/* - examples/bugs/* + - examples/overrides/* - "!examples/common" - benchmarking