From b1ce1b24b32b3d81a960caaeb858cf7216301a70 Mon Sep 17 00:00:00 2001 From: Zack Tanner <1939140+ztanner@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:51:20 -0700 Subject: [PATCH 1/6] docs: fix skipTrailingSlashRedirect middleware example (#65220) The example here only updates the pathname, but the redirect path is determined by taking the `req.nextUrl` object and stringifying it, which means it would return the wrong redirect location. Closes NEXT-3260 --- .../01-routing/14-middleware.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/02-app/01-building-your-application/01-routing/14-middleware.mdx b/docs/02-app/01-building-your-application/01-routing/14-middleware.mdx index 456d699d6803c..ddee8ad7b966b 100644 --- a/docs/02-app/01-building-your-application/01-routing/14-middleware.mdx +++ b/docs/02-app/01-building-your-application/01-routing/14-middleware.mdx @@ -541,8 +541,9 @@ export default async function middleware(req) { !pathname.endsWith('/') && !pathname.match(/((?!\.well-known(?:\/.*)?)(?:[^/]+\/)*[^/]+\.\w+)/) ) { - req.nextUrl.pathname += '/' - return NextResponse.redirect(req.nextUrl) + return NextResponse.redirect( + new URL(`${req.nextUrl.pathname}/`, req.nextUrl) + ) } } ``` From 34a96e126a212c060ef0b48feb2b648b40f39f3a Mon Sep 17 00:00:00 2001 From: vercel-release-bot Date: Tue, 30 Apr 2024 23:21:55 +0000 Subject: [PATCH 2/6] v14.3.0-canary.33 --- lerna.json | 2 +- packages/create-next-app/package.json | 2 +- packages/eslint-config-next/package.json | 4 ++-- packages/eslint-plugin-next/package.json | 2 +- packages/font/package.json | 2 +- packages/next-bundle-analyzer/package.json | 2 +- packages/next-codemod/package.json | 2 +- packages/next-env/package.json | 2 +- packages/next-mdx/package.json | 2 +- packages/next-plugin-storybook/package.json | 2 +- packages/next-polyfill-module/package.json | 2 +- packages/next-polyfill-nomodule/package.json | 2 +- packages/next-swc/package.json | 2 +- packages/next/package.json | 12 ++++++------ packages/react-refresh-utils/package.json | 2 +- packages/third-parties/package.json | 4 ++-- pnpm-lock.yaml | 14 +++++++------- 17 files changed, 30 insertions(+), 30 deletions(-) diff --git a/lerna.json b/lerna.json index b42536a0ff072..d83770ef30b4c 100644 --- a/lerna.json +++ b/lerna.json @@ -16,5 +16,5 @@ "registry": "https://registry.npmjs.org/" } }, - "version": "14.3.0-canary.32" + "version": "14.3.0-canary.33" } diff --git a/packages/create-next-app/package.json b/packages/create-next-app/package.json index 08d99fae40660..d10d4516b55f5 100644 --- a/packages/create-next-app/package.json +++ b/packages/create-next-app/package.json @@ -1,6 +1,6 @@ { "name": "create-next-app", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "keywords": [ "react", "next", diff --git a/packages/eslint-config-next/package.json b/packages/eslint-config-next/package.json index 00d13482b6fe9..0bbebd5e2149a 100644 --- a/packages/eslint-config-next/package.json +++ b/packages/eslint-config-next/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-next", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "description": "ESLint configuration used by Next.js.", "main": "index.js", "license": "MIT", @@ -10,7 +10,7 @@ }, "homepage": "https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config", "dependencies": { - "@next/eslint-plugin-next": "14.3.0-canary.32", + "@next/eslint-plugin-next": "14.3.0-canary.33", "@rushstack/eslint-patch": "^1.3.3", "@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0", "eslint-import-resolver-node": "^0.3.6", diff --git a/packages/eslint-plugin-next/package.json b/packages/eslint-plugin-next/package.json index 729c6b657603d..6e5bfe65f579e 100644 --- a/packages/eslint-plugin-next/package.json +++ b/packages/eslint-plugin-next/package.json @@ -1,6 +1,6 @@ { "name": "@next/eslint-plugin-next", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "description": "ESLint plugin for Next.js.", "main": "dist/index.js", "license": "MIT", diff --git a/packages/font/package.json b/packages/font/package.json index ebdd24f174e7c..3c019f1f85e38 100644 --- a/packages/font/package.json +++ b/packages/font/package.json @@ -1,6 +1,6 @@ { "name": "@next/font", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "repository": { "url": "vercel/next.js", "directory": "packages/font" diff --git a/packages/next-bundle-analyzer/package.json b/packages/next-bundle-analyzer/package.json index 8ab6ad1222f85..2149056338b68 100644 --- a/packages/next-bundle-analyzer/package.json +++ b/packages/next-bundle-analyzer/package.json @@ -1,6 +1,6 @@ { "name": "@next/bundle-analyzer", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "main": "index.js", "types": "index.d.ts", "license": "MIT", diff --git a/packages/next-codemod/package.json b/packages/next-codemod/package.json index dc54851e92e4f..c87e3e249663a 100644 --- a/packages/next-codemod/package.json +++ b/packages/next-codemod/package.json @@ -1,6 +1,6 @@ { "name": "@next/codemod", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "license": "MIT", "repository": { "type": "git", diff --git a/packages/next-env/package.json b/packages/next-env/package.json index e9de7736dac55..353b2933e4737 100644 --- a/packages/next-env/package.json +++ b/packages/next-env/package.json @@ -1,6 +1,6 @@ { "name": "@next/env", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "keywords": [ "react", "next", diff --git a/packages/next-mdx/package.json b/packages/next-mdx/package.json index 0f669193a1960..d85842efd4121 100644 --- a/packages/next-mdx/package.json +++ b/packages/next-mdx/package.json @@ -1,6 +1,6 @@ { "name": "@next/mdx", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "main": "index.js", "license": "MIT", "repository": { diff --git a/packages/next-plugin-storybook/package.json b/packages/next-plugin-storybook/package.json index 832fce11ce4dc..eb4bb4e10b13f 100644 --- a/packages/next-plugin-storybook/package.json +++ b/packages/next-plugin-storybook/package.json @@ -1,6 +1,6 @@ { "name": "@next/plugin-storybook", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "repository": { "url": "vercel/next.js", "directory": "packages/next-plugin-storybook" diff --git a/packages/next-polyfill-module/package.json b/packages/next-polyfill-module/package.json index fe88113f0be36..bb10331aab1ba 100644 --- a/packages/next-polyfill-module/package.json +++ b/packages/next-polyfill-module/package.json @@ -1,6 +1,6 @@ { "name": "@next/polyfill-module", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)", "main": "dist/polyfill-module.js", "license": "MIT", diff --git a/packages/next-polyfill-nomodule/package.json b/packages/next-polyfill-nomodule/package.json index 5f716621f6138..00b160ddec93f 100644 --- a/packages/next-polyfill-nomodule/package.json +++ b/packages/next-polyfill-nomodule/package.json @@ -1,6 +1,6 @@ { "name": "@next/polyfill-nomodule", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "description": "A polyfill for non-dead, nomodule browsers.", "main": "dist/polyfill-nomodule.js", "license": "MIT", diff --git a/packages/next-swc/package.json b/packages/next-swc/package.json index dd93bb5df8c74..b757cbe3dba99 100644 --- a/packages/next-swc/package.json +++ b/packages/next-swc/package.json @@ -1,6 +1,6 @@ { "name": "@next/swc", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "private": true, "scripts": { "clean": "node ../../scripts/rm.mjs native", diff --git a/packages/next/package.json b/packages/next/package.json index 38f2246e68a50..f1b6fde58c843 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -1,6 +1,6 @@ { "name": "next", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "description": "The React Framework", "main": "./dist/server/next.js", "license": "MIT", @@ -93,7 +93,7 @@ ] }, "dependencies": { - "@next/env": "14.3.0-canary.32", + "@next/env": "14.3.0-canary.33", "@swc/helpers": "0.5.11", "busboy": "1.6.0", "caniuse-lite": "^1.0.30001579", @@ -153,10 +153,10 @@ "@jest/types": "29.5.0", "@mswjs/interceptors": "0.23.0", "@napi-rs/triples": "1.2.0", - "@next/polyfill-module": "14.3.0-canary.32", - "@next/polyfill-nomodule": "14.3.0-canary.32", - "@next/react-refresh-utils": "14.3.0-canary.32", - "@next/swc": "14.3.0-canary.32", + "@next/polyfill-module": "14.3.0-canary.33", + "@next/polyfill-nomodule": "14.3.0-canary.33", + "@next/react-refresh-utils": "14.3.0-canary.33", + "@next/swc": "14.3.0-canary.33", "@opentelemetry/api": "1.6.0", "@playwright/test": "1.41.2", "@taskr/clear": "1.1.0", diff --git a/packages/react-refresh-utils/package.json b/packages/react-refresh-utils/package.json index beb8cd2315db3..c0d5069364f97 100644 --- a/packages/react-refresh-utils/package.json +++ b/packages/react-refresh-utils/package.json @@ -1,6 +1,6 @@ { "name": "@next/react-refresh-utils", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "description": "An experimental package providing utilities for React Refresh.", "repository": { "url": "vercel/next.js", diff --git a/packages/third-parties/package.json b/packages/third-parties/package.json index dadf927bcafde..e1a65ccbe2038 100644 --- a/packages/third-parties/package.json +++ b/packages/third-parties/package.json @@ -1,6 +1,6 @@ { "name": "@next/third-parties", - "version": "14.3.0-canary.32", + "version": "14.3.0-canary.33", "repository": { "url": "vercel/next.js", "directory": "packages/third-parties" @@ -26,7 +26,7 @@ "third-party-capital": "1.0.20" }, "devDependencies": { - "next": "14.3.0-canary.32", + "next": "14.3.0-canary.33", "outdent": "0.8.0", "prettier": "2.5.1" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 22057879fe717..430956d317ccc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -744,7 +744,7 @@ importers: packages/eslint-config-next: dependencies: '@next/eslint-plugin-next': - specifier: 14.3.0-canary.32 + specifier: 14.3.0-canary.33 version: link:../eslint-plugin-next '@rushstack/eslint-patch': specifier: ^1.3.3 @@ -806,7 +806,7 @@ importers: packages/next: dependencies: '@next/env': - specifier: 14.3.0-canary.32 + specifier: 14.3.0-canary.33 version: link:../next-env '@swc/helpers': specifier: 0.5.11 @@ -931,16 +931,16 @@ importers: specifier: 1.2.0 version: 1.2.0 '@next/polyfill-module': - specifier: 14.3.0-canary.32 + specifier: 14.3.0-canary.33 version: link:../next-polyfill-module '@next/polyfill-nomodule': - specifier: 14.3.0-canary.32 + specifier: 14.3.0-canary.33 version: link:../next-polyfill-nomodule '@next/react-refresh-utils': - specifier: 14.3.0-canary.32 + specifier: 14.3.0-canary.33 version: link:../react-refresh-utils '@next/swc': - specifier: 14.3.0-canary.32 + specifier: 14.3.0-canary.33 version: link:../next-swc '@opentelemetry/api': specifier: 1.6.0 @@ -1555,7 +1555,7 @@ importers: version: 1.0.20 devDependencies: next: - specifier: 14.3.0-canary.32 + specifier: 14.3.0-canary.33 version: link:../next outdent: specifier: 0.8.0 From 77706b68a749ebb6cdb5f165c9300f5ea0d868ea Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Wed, 1 May 2024 07:21:50 +0200 Subject: [PATCH 3/6] Turbopack: rename source map prefix (#64965) ### What? see https://github.com/vercel/turbo/pull/8034 ### Why? ### How? --- Cargo.lock | 70 +++++++++---------- Cargo.toml | 6 +- .../crates/napi/src/next_api/project.rs | 3 +- packages/next/package.json | 2 +- pnpm-lock.yaml | 8 +-- 5 files changed, 45 insertions(+), 44 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 856b21cbf9e92..6d77129c402c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -321,7 +321,7 @@ dependencies = [ [[package]] name = "auto-hash-map" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "serde", "smallvec", @@ -3085,7 +3085,7 @@ dependencies = [ [[package]] name = "node-file-trace" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "serde", @@ -6934,7 +6934,7 @@ dependencies = [ [[package]] name = "turbo-tasks" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "async-trait", @@ -6965,7 +6965,7 @@ dependencies = [ [[package]] name = "turbo-tasks-build" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "cargo-lock", @@ -6977,7 +6977,7 @@ dependencies = [ [[package]] name = "turbo-tasks-bytes" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "bytes", @@ -6991,7 +6991,7 @@ dependencies = [ [[package]] name = "turbo-tasks-env" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "dotenvs", @@ -7005,7 +7005,7 @@ dependencies = [ [[package]] name = "turbo-tasks-fetch" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "lazy_static", @@ -7021,7 +7021,7 @@ dependencies = [ [[package]] name = "turbo-tasks-fs" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "auto-hash-map", @@ -7053,7 +7053,7 @@ dependencies = [ [[package]] name = "turbo-tasks-hash" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "base16", "hex", @@ -7065,7 +7065,7 @@ dependencies = [ [[package]] name = "turbo-tasks-macros" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "proc-macro-error", @@ -7078,7 +7078,7 @@ dependencies = [ [[package]] name = "turbo-tasks-macros-shared" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "proc-macro2", "quote", @@ -7088,7 +7088,7 @@ dependencies = [ [[package]] name = "turbo-tasks-malloc" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "mimalloc", ] @@ -7096,7 +7096,7 @@ dependencies = [ [[package]] name = "turbo-tasks-memory" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "auto-hash-map", @@ -7121,7 +7121,7 @@ dependencies = [ [[package]] name = "turbopack" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "async-recursion", @@ -7151,7 +7151,7 @@ dependencies = [ [[package]] name = "turbopack-binding" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "auto-hash-map", "mdxjs", @@ -7191,7 +7191,7 @@ dependencies = [ [[package]] name = "turbopack-browser" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7214,7 +7214,7 @@ dependencies = [ [[package]] name = "turbopack-cli-utils" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "clap", @@ -7231,7 +7231,7 @@ dependencies = [ [[package]] name = "turbopack-core" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "async-recursion", @@ -7260,7 +7260,7 @@ dependencies = [ [[package]] name = "turbopack-css" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7287,7 +7287,7 @@ dependencies = [ [[package]] name = "turbopack-dev-server" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "async-compression", @@ -7323,7 +7323,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "async-trait", @@ -7358,7 +7358,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript-hmr-protocol" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "serde", "serde_json", @@ -7369,7 +7369,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript-plugins" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "async-trait", @@ -7393,7 +7393,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript-runtime" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "indoc", @@ -7409,7 +7409,7 @@ dependencies = [ [[package]] name = "turbopack-env" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7425,7 +7425,7 @@ dependencies = [ [[package]] name = "turbopack-image" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "base64 0.21.4", @@ -7444,7 +7444,7 @@ dependencies = [ [[package]] name = "turbopack-json" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "serde", @@ -7459,7 +7459,7 @@ dependencies = [ [[package]] name = "turbopack-mdx" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "mdxjs", @@ -7474,7 +7474,7 @@ dependencies = [ [[package]] name = "turbopack-node" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "async-stream", @@ -7508,7 +7508,7 @@ dependencies = [ [[package]] name = "turbopack-nodejs" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7528,7 +7528,7 @@ dependencies = [ [[package]] name = "turbopack-resolve" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7546,7 +7546,7 @@ dependencies = [ [[package]] name = "turbopack-static" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "serde", @@ -7562,7 +7562,7 @@ dependencies = [ [[package]] name = "turbopack-swc-utils" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "swc_core", "turbo-tasks", @@ -7573,7 +7573,7 @@ dependencies = [ [[package]] name = "turbopack-trace-utils" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "crossbeam-channel", @@ -7589,7 +7589,7 @@ dependencies = [ [[package]] name = "turbopack-wasm" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240429.1#d9676c02cd63a32b0ce54a53a9573e369ffed181" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-240430.2#ca175f127d57c68a2466e16c52d16aa3a5e815b6" dependencies = [ "anyhow", "indexmap 1.9.3", diff --git a/Cargo.toml b/Cargo.toml index 1c864e00973fa..644798b39f15e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,11 +37,11 @@ swc_core = { version = "0.90.33", features = [ testing = { version = "0.35.22" } # Turbo crates -turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240429.1" } +turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240430.2" } # [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros.. -turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240429.1" } +turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240430.2" } # [TODO]: need to refactor embed_directory! macro usage in next-core -turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240429.1" } +turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240430.2" } # General Deps diff --git a/packages/next-swc/crates/napi/src/next_api/project.rs b/packages/next-swc/crates/napi/src/next_api/project.rs index 1e2c64de86485..396f6ad2b6c58 100644 --- a/packages/next-swc/crates/napi/src/next_api/project.rs +++ b/packages/next-swc/crates/napi/src/next_api/project.rs @@ -35,6 +35,7 @@ use turbopack_binding::{ issue::PlainIssue, source_map::Token, version::{PartialUpdate, TotalUpdate, Update, VersionState}, + SOURCE_MAP_PREFIX, }, ecmascript_hmr_protocol::{ClientUpdateInstruction, ResourceIdentifier}, trace_utils::{ @@ -921,7 +922,7 @@ pub async fn project_trace_source( } }; - let Some(source_file) = original_file.strip_prefix("/turbopack/") else { + let Some(source_file) = original_file.strip_prefix(SOURCE_MAP_PREFIX) else { bail!("Original file ({}) outside project", original_file) }; diff --git a/packages/next/package.json b/packages/next/package.json index f1b6fde58c843..115a73368bd33 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -200,7 +200,7 @@ "@types/ws": "8.2.0", "@vercel/ncc": "0.34.0", "@vercel/nft": "0.26.4", - "@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240429.1", + "@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240430.2", "acorn": "8.5.0", "amphtml-validator": "1.0.35", "anser": "1.4.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 430956d317ccc..37f3f80eccdd1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1072,8 +1072,8 @@ importers: specifier: 0.26.4 version: 0.26.4 '@vercel/turbopack-ecmascript-runtime': - specifier: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240429.1 - version: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240429.1' + specifier: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240430.2 + version: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240430.2' acorn: specifier: 8.5.0 version: 8.5.0 @@ -25773,8 +25773,8 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240429.1': - resolution: {tarball: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240429.1} + '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240430.2': + resolution: {tarball: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-240430.2} name: '@vercel/turbopack-ecmascript-runtime' version: 0.0.0 dependencies: From 7bd39f7b01572a7ea14950a46e8d6cfd7b36ed68 Mon Sep 17 00:00:00 2001 From: DuC <88233704+imddc@users.noreply.github.com> Date: Wed, 1 May 2024 15:00:25 +0800 Subject: [PATCH 4/6] docs(app-routing-layoutsand-template): use the correct path (#65085) The import path of the context is different. Does this cause ambiguity? I'm not sure if this is intentional by the author. --------- Co-authored-by: Sam Ko --- .../01-routing/03-layouts-and-templates.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/02-app/01-building-your-application/01-routing/03-layouts-and-templates.mdx b/docs/02-app/01-building-your-application/01-routing/03-layouts-and-templates.mdx index 214685ca0a60a..55e7052a9c0b3 100644 --- a/docs/02-app/01-building-your-application/01-routing/03-layouts-and-templates.mdx +++ b/docs/02-app/01-building-your-application/01-routing/03-layouts-and-templates.mdx @@ -215,7 +215,7 @@ export default function Page() { > **Good to know**: You should **not** manually add `` tags such as `` and `<meta>` to root layouts. Instead, use the [Metadata API](/docs/app/api-reference/functions/generate-metadata) which automatically handles advanced requirements such as streaming and de-duplicating `<head>` elements. -Learn more about available metadata options in the [API reference](/docs/app/api-reference/functions/generate-metadata) +Learn more about available metadata options in the [API reference](/docs/app/api-reference/functions/generate-metadata). ### Active Nav Links @@ -223,7 +223,7 @@ You can use the [usePathname()](/docs/app/api-reference/functions/use-pathname) Since `usePathname()` is a client hook, you need to extract the nav links into a Client Component, which can be imported into your layout or template: -```tsx filename="app/components/nav-links.tsx" switcher +```tsx filename="app/ui/nav-links.tsx" switcher 'use client' import { usePathname } from 'next/navigation' @@ -249,7 +249,7 @@ export function Links() { } ``` -```jsx filename="app/components/nav-links.js" switcher +```jsx filename="app/ui/nav-links.js" switcher 'use client' import { usePathname } from 'next/navigation' From 9f9428d81e249c99cac3f160a299a1cba9061b94 Mon Sep 17 00:00:00 2001 From: Vercel Release Bot <88769842+vercel-release-bot@users.noreply.github.com> Date: Wed, 1 May 2024 04:57:48 -0400 Subject: [PATCH 5/6] Update Turbopack production test manifest (#65225) This auto-generated PR updates the production integration test manifest used when testing Turbopack. --- test/turbopack-build-tests-manifest.json | 379 +++-------------------- 1 file changed, 51 insertions(+), 328 deletions(-) diff --git a/test/turbopack-build-tests-manifest.json b/test/turbopack-build-tests-manifest.json index d61395b0dad3e..38e08bbbba840 100644 --- a/test/turbopack-build-tests-manifest.json +++ b/test/turbopack-build-tests-manifest.json @@ -148,7 +148,6 @@ "app-dir action handling fetch actions should handle revalidateTag", "app-dir action handling fetch actions should invalidate client cache on other routes when cookies.set is called", "app-dir action handling fetch actions should invalidate client cache when path is revalidated", - "app-dir action handling fetch actions should invalidate client cache when tag is revalidated", "app-dir action handling fetch actions should revalidate when cookies.set is called", "app-dir action handling fetch actions should revalidate when cookies.set is called in a client action", "app-dir action handling fetch actions should store revalidation data in the prefetch cache", @@ -169,6 +168,8 @@ "app-dir action handling should log a warning when a server action is not found but an id is provided", "app-dir action handling should not block navigation events while a server action is in flight", "app-dir action handling should not block router.back() while a server action is in flight", + "app-dir action handling should not error when a forwarded action triggers a redirect (edge)", + "app-dir action handling should not error when a forwarded action triggers a redirect (node)", "app-dir action handling should not log errors for non-action form POSTs", "app-dir action handling should only submit action once when resubmitting an action after navigation", "app-dir action handling should push new route when redirecting", @@ -192,6 +193,7 @@ "app-dir action handling should work with interception routes" ], "failed": [ + "app-dir action handling fetch actions should invalidate client cache when tag is revalidated", "app-dir action handling should not expose action content in sourcemaps" ], "pending": [ @@ -475,7 +477,8 @@ "app-dir with middleware Mutate request headers for next/headers Adds new headers", "app-dir with middleware Mutate request headers for next/headers Deletes headers", "app-dir with middleware Mutate request headers for next/headers Supports draft mode", - "app-dir with middleware Mutate request headers for next/headers Updates headers" + "app-dir with middleware Mutate request headers for next/headers Updates headers", + "app-dir with middleware should be possible to modify cookies & read them in an RSC in a single request" ], "failed": [ "app-dir with middleware should filter correctly after middleware rewrite" @@ -1048,6 +1051,15 @@ "flakey": [], "runtimeError": false }, + "test/e2e/app-dir/app/flying-shuttle.test.ts": { + "passed": [], + "failed": [ + "should output updated trace files should have file hashes in trace files" + ], + "pending": [], + "flakey": [], + "runtimeError": false + }, "test/e2e/app-dir/app/index.test.ts": { "passed": [], "failed": [ @@ -1166,15 +1178,6 @@ "flakey": [], "runtimeError": false }, - "test/e2e/app-dir/app/flying-shuttle.test.ts": { - "passed": [], - "failed": [ - "should output updated trace files should have file hashes in trace files" - ], - "pending": [], - "flakey": [], - "runtimeError": false - }, "test/e2e/app-dir/app/standalone-gsp.test.ts": { "passed": [], "failed": [ @@ -1502,7 +1505,8 @@ "app dir - next/dynamic should generate correct client manifest for dynamic chunks", "app dir - next/dynamic should handle next/dynamic in SSR correctly", "app dir - next/dynamic should handle next/dynamic in hydration correctly", - "app dir - next/dynamic should handle ssr: false in pages when appDir is enabled" + "app dir - next/dynamic should handle ssr: false in pages when appDir is enabled", + "app dir - next/dynamic should not render loading by default" ], "failed": [ "app dir - next/dynamic no SSR should not render client component imported through ssr: false in client components in edge runtime" @@ -2241,6 +2245,9 @@ }, "test/e2e/app-dir/parallel-route-not-found/parallel-route-not-found.test.ts": { "passed": [ + "parallel-route-not-found should handle `notFound()` in a slot", + "parallel-route-not-found should handle `notFound()` in a slot with no `children` slot", + "parallel-route-not-found should handle `notFound()` in generateMetadata on a page that also renders a parallel route", "parallel-route-not-found should handle a layout that attempts to render a missing parallel route", "parallel-route-not-found should handle multiple missing parallel routes", "parallel-route-not-found should render the page & slots if all parallel routes are found" @@ -2295,6 +2302,15 @@ "flakey": [], "runtimeError": false }, + "test/e2e/app-dir/parallel-routes-breadcrumbs/parallel-routes-breadcrumbs.test.ts": { + "passed": [ + "parallel-routes-breadcrumbs should provide an unmatched catch-all route with params" + ], + "failed": [], + "pending": [], + "flakey": [], + "runtimeError": false + }, "test/e2e/app-dir/parallel-routes-catchall-children-slot/parallel-routes-catchall-children-slot.test.ts": { "passed": [ "parallel-routes-catchall-children-slot should match the @children slot for a page before attempting to match the catchall" @@ -2659,6 +2675,13 @@ "flakey": [], "runtimeError": false }, + "test/e2e/app-dir/ppr-unstable-cache/ppr-unstable-cache.test.ts": { + "passed": ["ppr-unstable-cache should not cache inner fetch calls"], + "failed": [], + "pending": [], + "flakey": [], + "runtimeError": false + }, "test/e2e/app-dir/ppr/ppr.test.ts": { "passed": [ "ppr /no-suspense/node/gsp/[slug] should serve the static & dynamic parts", @@ -5068,6 +5091,7 @@ "Prerender should not supply query values to params or useRouter non-dynamic page SSR", "Prerender should not throw error for on-demand revalidate for SSR path", "Prerender should of formatted build output correctly", + "Prerender should on-demand revalidate for fallback: blocking with onlyGenerated if generated", "Prerender should on-demand revalidate for revalidate: false", "Prerender should on-demand revalidate that returns notFound: true", "Prerender should only show warning once per page when large amount of page data is returned", @@ -5093,7 +5117,6 @@ "Prerender should navigate between pages successfully", "Prerender should not error when rewriting to fallback dynamic SSG page", "Prerender should not show error for invalid JSON returned from getStaticProps on SSR", - "Prerender should on-demand revalidate for fallback: blocking with onlyGenerated if generated", "Prerender should output traces", "Prerender should parse query values on mount correctly", "Prerender should render correctly for SSG pages that starts with api-docs", @@ -6305,6 +6328,8 @@ "CLI Usage dev -p reserved", "CLI Usage dev Allow retry if default port is already in use", "CLI Usage dev NODE_OPTIONS='--inspect'", + "CLI Usage dev NODE_OPTIONS='--require=file with spaces to --require.js'", + "CLI Usage dev NODE_OPTIONS='--require=file with spaces to-require-with-node-require-option.js'", "CLI Usage dev PORT=0", "CLI Usage dev custom directory", "CLI Usage dev invalid directory", @@ -10733,7 +10758,6 @@ "with contentDispositionType attachment Production Mode Server support with next.config.js should fail when width is not in next.config.js", "with contentDispositionType attachment Production Mode Server support with next.config.js should handle concurrent requests", "with contentDispositionType attachment Production Mode Server support with next.config.js should handle non-ascii characters in image url", - "with contentDispositionType attachment Production Mode Server support with next.config.js should have sharp missing warning", "with contentDispositionType attachment Production Mode Server support with next.config.js should maintain animated gif", "with contentDispositionType attachment Production Mode Server support with next.config.js should maintain animated png", "with contentDispositionType attachment Production Mode Server support with next.config.js should maintain animated png 2", @@ -10747,8 +10771,6 @@ "with contentDispositionType attachment Production Mode Server support with next.config.js should not allow svg with comma header", "with contentDispositionType attachment Production Mode Server support with next.config.js should not allow svg with uppercase header", "with contentDispositionType attachment Production Mode Server support with next.config.js should not allow vector svg", - "with contentDispositionType attachment Production Mode Server support with next.config.js should not change the color type of a png", - "with contentDispositionType attachment Production Mode Server support with next.config.js should not have sharp outdated warning", "with contentDispositionType attachment Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", "with contentDispositionType attachment Production Mode Server support with next.config.js should resize absolute url from localhost", "with contentDispositionType attachment Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -10803,9 +10825,6 @@ "with contentDispositionType attachment dev support with next.config.js should not allow svg with comma header", "with contentDispositionType attachment dev support with next.config.js should not allow svg with uppercase header", "with contentDispositionType attachment dev support with next.config.js should not allow vector svg", - "with contentDispositionType attachment dev support with next.config.js should not change the color type of a png", - "with contentDispositionType attachment dev support with next.config.js should not have sharp missing warning", - "with contentDispositionType attachment dev support with next.config.js should not have sharp outdated warning", "with contentDispositionType attachment dev support with next.config.js should not resize if requested width is larger than original source image", "with contentDispositionType attachment dev support with next.config.js should resize absolute url from localhost", "with contentDispositionType attachment dev support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -10892,7 +10911,6 @@ "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should fail when width is not in next.config.js", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should handle concurrent requests", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should handle non-ascii characters in image url", - "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should have sharp missing warning", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should maintain animated gif", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should maintain animated png", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should maintain animated png 2", @@ -10906,8 +10924,6 @@ "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not allow svg with comma header", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not allow svg with uppercase header", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not allow vector svg", - "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not change the color type of a png", - "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not have sharp outdated warning", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should resize absolute url from localhost", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -10920,6 +10936,7 @@ "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should return home page", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should set 304 status without body when etag matches if-none-match", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for external image", + "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for internal image", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should use cached image file when parameters are the same for animated gif", "with minimumCacheTTL of 5 sec dev support with next.config.js should automatically detect image type when content-type is octet-stream", "with minimumCacheTTL of 5 sec dev support with next.config.js should compress avif smaller than webp at q=100", @@ -10961,9 +10978,6 @@ "with minimumCacheTTL of 5 sec dev support with next.config.js should not allow svg with comma header", "with minimumCacheTTL of 5 sec dev support with next.config.js should not allow svg with uppercase header", "with minimumCacheTTL of 5 sec dev support with next.config.js should not allow vector svg", - "with minimumCacheTTL of 5 sec dev support with next.config.js should not change the color type of a png", - "with minimumCacheTTL of 5 sec dev support with next.config.js should not have sharp missing warning", - "with minimumCacheTTL of 5 sec dev support with next.config.js should not have sharp outdated warning", "with minimumCacheTTL of 5 sec dev support with next.config.js should not resize if requested width is larger than original source image", "with minimumCacheTTL of 5 sec dev support with next.config.js should resize absolute url from localhost", "with minimumCacheTTL of 5 sec dev support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -10981,74 +10995,7 @@ "with minimumCacheTTL of 5 sec dev support with next.config.js should use cached image file when parameters are the same for animated gif" ], "failed": [ - "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should set cache-control to immutable for static images", - "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for internal image" - ], - "pending": [], - "flakey": [], - "runtimeError": false - }, - "test/integration/image-optimizer/test/old-sharp.test.ts": { - "passed": [ - "with outdated sharp Production Mode Server support with next.config.js should automatically detect image type when content-type is octet-stream", - "with outdated sharp Production Mode Server support with next.config.js should compress avif smaller than webp at q=100", - "with outdated sharp Production Mode Server support with next.config.js should compress avif smaller than webp at q=50", - "with outdated sharp Production Mode Server support with next.config.js should compress avif smaller than webp at q=75", - "with outdated sharp Production Mode Server support with next.config.js should downlevel webp format to jpeg for old Safari", - "with outdated sharp Production Mode Server support with next.config.js should emit blur svg when width is 8 in dev but not prod", - "with outdated sharp Production Mode Server support with next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with outdated sharp Production Mode Server support with next.config.js should error if the image file does not exist", - "with outdated sharp Production Mode Server support with next.config.js should error if the resource isn't a valid image", - "with outdated sharp Production Mode Server support with next.config.js should fail when domain is not defined in next.config.js", - "with outdated sharp Production Mode Server support with next.config.js should fail when internal url is not an image", - "with outdated sharp Production Mode Server support with next.config.js should fail when q is greater than 100", - "with outdated sharp Production Mode Server support with next.config.js should fail when q is less than 1", - "with outdated sharp Production Mode Server support with next.config.js should fail when q is missing", - "with outdated sharp Production Mode Server support with next.config.js should fail when q is not a number", - "with outdated sharp Production Mode Server support with next.config.js should fail when url fails to load an image", - "with outdated sharp Production Mode Server support with next.config.js should fail when url has file protocol", - "with outdated sharp Production Mode Server support with next.config.js should fail when url has ftp protocol", - "with outdated sharp Production Mode Server support with next.config.js should fail when url is missing", - "with outdated sharp Production Mode Server support with next.config.js should fail when w is 0", - "with outdated sharp Production Mode Server support with next.config.js should fail when w is less than 0", - "with outdated sharp Production Mode Server support with next.config.js should fail when w is missing", - "with outdated sharp Production Mode Server support with next.config.js should fail when w is not a number", - "with outdated sharp Production Mode Server support with next.config.js should fail when width is not in next.config.js", - "with outdated sharp Production Mode Server support with next.config.js should handle concurrent requests", - "with outdated sharp Production Mode Server support with next.config.js should handle non-ascii characters in image url", - "with outdated sharp Production Mode Server support with next.config.js should have sharp outdated warning", - "with outdated sharp Production Mode Server support with next.config.js should maintain animated gif", - "with outdated sharp Production Mode Server support with next.config.js should maintain animated png", - "with outdated sharp Production Mode Server support with next.config.js should maintain animated png 2", - "with outdated sharp Production Mode Server support with next.config.js should maintain animated webp", - "with outdated sharp Production Mode Server support with next.config.js should maintain bmp", - "with outdated sharp Production Mode Server support with next.config.js should maintain ico format", - "with outdated sharp Production Mode Server support with next.config.js should maintain jpg format for old Safari", - "with outdated sharp Production Mode Server support with next.config.js should maintain png format for old Safari", - "with outdated sharp Production Mode Server support with next.config.js should normalize invalid status codes", - "with outdated sharp Production Mode Server support with next.config.js should not allow svg with application header", - "with outdated sharp Production Mode Server support with next.config.js should not allow svg with comma header", - "with outdated sharp Production Mode Server support with next.config.js should not allow svg with uppercase header", - "with outdated sharp Production Mode Server support with next.config.js should not allow vector svg", - "with outdated sharp Production Mode Server support with next.config.js should not have sharp missing warning", - "with outdated sharp Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", - "with outdated sharp Production Mode Server support with next.config.js should resize absolute url from localhost", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url and old Chrome accept header as webp", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url and png accept header", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url and webp Firefox accept header", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url with invalid accept header as gif", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url with invalid accept header as png", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url with invalid accept header as tiff", - "with outdated sharp Production Mode Server support with next.config.js should return home page", - "with outdated sharp Production Mode Server support with next.config.js should set 304 status without body when etag matches if-none-match", - "with outdated sharp Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for external image", - "with outdated sharp Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with outdated sharp Production Mode Server support with next.config.js should use cached image file when parameters are the same for animated gif" - ], - "failed": [ - "with outdated sharp Production Mode Server support with next.config.js should handle custom sharp usage", - "with outdated sharp Production Mode Server support with next.config.js should set cache-control to immutable for static images" + "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should set cache-control to immutable for static images" ], "pending": [], "flakey": [], @@ -11089,8 +11036,6 @@ "with latest sharp Production Mode Server support w/o next.config.js should not allow svg with comma header", "with latest sharp Production Mode Server support w/o next.config.js should not allow svg with uppercase header", "with latest sharp Production Mode Server support w/o next.config.js should not allow vector svg", - "with latest sharp Production Mode Server support w/o next.config.js should not have sharp missing warning", - "with latest sharp Production Mode Server support w/o next.config.js should not have sharp outdated warning", "with latest sharp Production Mode Server support w/o next.config.js should not resize if requested width is larger than original source image", "with latest sharp Production Mode Server support w/o next.config.js should resize relative url and old Chrome accept header as webp", "with latest sharp Production Mode Server support w/o next.config.js should resize relative url and png accept header", @@ -11142,8 +11087,6 @@ "with latest sharp Production Mode Server support with next.config.js should not allow svg with comma header", "with latest sharp Production Mode Server support with next.config.js should not allow svg with uppercase header", "with latest sharp Production Mode Server support with next.config.js should not allow vector svg", - "with latest sharp Production Mode Server support with next.config.js should not have sharp missing warning", - "with latest sharp Production Mode Server support with next.config.js should not have sharp outdated warning", "with latest sharp Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", "with latest sharp Production Mode Server support with next.config.js should resize absolute url from localhost", "with latest sharp Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -11191,8 +11134,6 @@ "with latest sharp dev support w/o next.config.js should not allow svg with comma header", "with latest sharp dev support w/o next.config.js should not allow svg with uppercase header", "with latest sharp dev support w/o next.config.js should not allow vector svg", - "with latest sharp dev support w/o next.config.js should not have sharp missing warning", - "with latest sharp dev support w/o next.config.js should not have sharp outdated warning", "with latest sharp dev support w/o next.config.js should not resize if requested width is larger than original source image", "with latest sharp dev support w/o next.config.js should resize relative url and old Chrome accept header as webp", "with latest sharp dev support w/o next.config.js should resize relative url and png accept header", @@ -11245,8 +11186,6 @@ "with latest sharp dev support with next.config.js should not allow svg with comma header", "with latest sharp dev support with next.config.js should not allow svg with uppercase header", "with latest sharp dev support with next.config.js should not allow vector svg", - "with latest sharp dev support with next.config.js should not have sharp missing warning", - "with latest sharp dev support with next.config.js should not have sharp outdated warning", "with latest sharp dev support with next.config.js should not resize if requested width is larger than original source image", "with latest sharp dev support with next.config.js should resize absolute url from localhost", "with latest sharp dev support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -11265,234 +11204,12 @@ ], "failed": [ "with latest sharp Production Mode Server support w/o next.config.js should set cache-control to immutable for static images", - "with latest sharp Production Mode Server support with next.config.js should handle custom sharp usage", "with latest sharp Production Mode Server support with next.config.js should set cache-control to immutable for static images" ], "pending": [], "flakey": [], "runtimeError": false }, - "test/integration/image-optimizer/test/squoosh.test.ts": { - "passed": [ - "with squoosh Production Mode Server support w/o next.config.js should downlevel avif format to jpeg for old Safari", - "with squoosh Production Mode Server support w/o next.config.js should downlevel webp format to jpeg for old Safari", - "with squoosh Production Mode Server support w/o next.config.js should emit blur svg when width is 8 in dev but not prod", - "with squoosh Production Mode Server support w/o next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with squoosh Production Mode Server support w/o next.config.js should error if the image file does not exist", - "with squoosh Production Mode Server support w/o next.config.js should error if the resource isn't a valid image", - "with squoosh Production Mode Server support w/o next.config.js should fail when domain is not defined in next.config.js", - "with squoosh Production Mode Server support w/o next.config.js should fail when internal url is not an image", - "with squoosh Production Mode Server support w/o next.config.js should fail when q is greater than 100", - "with squoosh Production Mode Server support w/o next.config.js should fail when q is less than 1", - "with squoosh Production Mode Server support w/o next.config.js should fail when q is missing", - "with squoosh Production Mode Server support w/o next.config.js should fail when q is not a number", - "with squoosh Production Mode Server support w/o next.config.js should fail when url has file protocol", - "with squoosh Production Mode Server support w/o next.config.js should fail when url has ftp protocol", - "with squoosh Production Mode Server support w/o next.config.js should fail when url is missing", - "with squoosh Production Mode Server support w/o next.config.js should fail when w is 0", - "with squoosh Production Mode Server support w/o next.config.js should fail when w is less than 0", - "with squoosh Production Mode Server support w/o next.config.js should fail when w is missing", - "with squoosh Production Mode Server support w/o next.config.js should fail when w is not a number", - "with squoosh Production Mode Server support w/o next.config.js should fail when width is not in next.config.js", - "with squoosh Production Mode Server support w/o next.config.js should handle non-ascii characters in image url", - "with squoosh Production Mode Server support w/o next.config.js should have sharp missing warning", - "with squoosh Production Mode Server support w/o next.config.js should maintain animated gif", - "with squoosh Production Mode Server support w/o next.config.js should maintain animated png", - "with squoosh Production Mode Server support w/o next.config.js should maintain animated png 2", - "with squoosh Production Mode Server support w/o next.config.js should maintain animated webp", - "with squoosh Production Mode Server support w/o next.config.js should maintain bmp", - "with squoosh Production Mode Server support w/o next.config.js should maintain ico format", - "with squoosh Production Mode Server support w/o next.config.js should maintain jpg format for old Safari", - "with squoosh Production Mode Server support w/o next.config.js should maintain png format for old Safari", - "with squoosh Production Mode Server support w/o next.config.js should not allow svg with application header", - "with squoosh Production Mode Server support w/o next.config.js should not allow svg with comma header", - "with squoosh Production Mode Server support w/o next.config.js should not allow svg with uppercase header", - "with squoosh Production Mode Server support w/o next.config.js should not allow vector svg", - "with squoosh Production Mode Server support w/o next.config.js should not change the color type of a png", - "with squoosh Production Mode Server support w/o next.config.js should not have sharp outdated warning", - "with squoosh Production Mode Server support w/o next.config.js should not resize if requested width is larger than original source image", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url and old Chrome accept header as webp", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url and png accept header", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url and webp Firefox accept header", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url with invalid accept header as gif", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url with invalid accept header as png", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url with invalid accept header as tiff", - "with squoosh Production Mode Server support w/o next.config.js should return home page", - "with squoosh Production Mode Server support w/o next.config.js should set 304 status without body when etag matches if-none-match", - "with squoosh Production Mode Server support w/o next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with squoosh Production Mode Server support w/o next.config.js should use cached image file when parameters are the same for animated gif", - "with squoosh Production Mode Server support with next.config.js should automatically detect image type when content-type is octet-stream", - "with squoosh Production Mode Server support with next.config.js should compress avif smaller than webp at q=100", - "with squoosh Production Mode Server support with next.config.js should compress avif smaller than webp at q=50", - "with squoosh Production Mode Server support with next.config.js should compress avif smaller than webp at q=75", - "with squoosh Production Mode Server support with next.config.js should downlevel avif format to jpeg for old Safari", - "with squoosh Production Mode Server support with next.config.js should downlevel webp format to jpeg for old Safari", - "with squoosh Production Mode Server support with next.config.js should emit blur svg when width is 8 in dev but not prod", - "with squoosh Production Mode Server support with next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with squoosh Production Mode Server support with next.config.js should error if the image file does not exist", - "with squoosh Production Mode Server support with next.config.js should error if the resource isn't a valid image", - "with squoosh Production Mode Server support with next.config.js should fail when domain is not defined in next.config.js", - "with squoosh Production Mode Server support with next.config.js should fail when internal url is not an image", - "with squoosh Production Mode Server support with next.config.js should fail when q is greater than 100", - "with squoosh Production Mode Server support with next.config.js should fail when q is less than 1", - "with squoosh Production Mode Server support with next.config.js should fail when q is missing", - "with squoosh Production Mode Server support with next.config.js should fail when q is not a number", - "with squoosh Production Mode Server support with next.config.js should fail when url fails to load an image", - "with squoosh Production Mode Server support with next.config.js should fail when url has file protocol", - "with squoosh Production Mode Server support with next.config.js should fail when url has ftp protocol", - "with squoosh Production Mode Server support with next.config.js should fail when url is missing", - "with squoosh Production Mode Server support with next.config.js should fail when w is 0", - "with squoosh Production Mode Server support with next.config.js should fail when w is less than 0", - "with squoosh Production Mode Server support with next.config.js should fail when w is missing", - "with squoosh Production Mode Server support with next.config.js should fail when w is not a number", - "with squoosh Production Mode Server support with next.config.js should fail when width is not in next.config.js", - "with squoosh Production Mode Server support with next.config.js should handle concurrent requests", - "with squoosh Production Mode Server support with next.config.js should handle non-ascii characters in image url", - "with squoosh Production Mode Server support with next.config.js should have sharp missing warning", - "with squoosh Production Mode Server support with next.config.js should maintain animated gif", - "with squoosh Production Mode Server support with next.config.js should maintain animated png", - "with squoosh Production Mode Server support with next.config.js should maintain animated png 2", - "with squoosh Production Mode Server support with next.config.js should maintain animated webp", - "with squoosh Production Mode Server support with next.config.js should maintain bmp", - "with squoosh Production Mode Server support with next.config.js should maintain ico format", - "with squoosh Production Mode Server support with next.config.js should maintain jpg format for old Safari", - "with squoosh Production Mode Server support with next.config.js should maintain png format for old Safari", - "with squoosh Production Mode Server support with next.config.js should normalize invalid status codes", - "with squoosh Production Mode Server support with next.config.js should not allow svg with application header", - "with squoosh Production Mode Server support with next.config.js should not allow svg with comma header", - "with squoosh Production Mode Server support with next.config.js should not allow svg with uppercase header", - "with squoosh Production Mode Server support with next.config.js should not allow vector svg", - "with squoosh Production Mode Server support with next.config.js should not change the color type of a png", - "with squoosh Production Mode Server support with next.config.js should not have sharp outdated warning", - "with squoosh Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", - "with squoosh Production Mode Server support with next.config.js should resize absolute url from localhost", - "with squoosh Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", - "with squoosh Production Mode Server support with next.config.js should resize relative url and old Chrome accept header as webp", - "with squoosh Production Mode Server support with next.config.js should resize relative url and png accept header", - "with squoosh Production Mode Server support with next.config.js should resize relative url and webp Firefox accept header", - "with squoosh Production Mode Server support with next.config.js should resize relative url with invalid accept header as gif", - "with squoosh Production Mode Server support with next.config.js should resize relative url with invalid accept header as png", - "with squoosh Production Mode Server support with next.config.js should resize relative url with invalid accept header as tiff", - "with squoosh Production Mode Server support with next.config.js should return home page", - "with squoosh Production Mode Server support with next.config.js should set 304 status without body when etag matches if-none-match", - "with squoosh Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for external image", - "with squoosh Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with squoosh Production Mode Server support with next.config.js should use cached image file when parameters are the same for animated gif", - "with squoosh dev support w/o next.config.js should downlevel avif format to jpeg for old Safari", - "with squoosh dev support w/o next.config.js should downlevel webp format to jpeg for old Safari", - "with squoosh dev support w/o next.config.js should emit blur svg when width is 8 in dev but not prod", - "with squoosh dev support w/o next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with squoosh dev support w/o next.config.js should error if the image file does not exist", - "with squoosh dev support w/o next.config.js should error if the resource isn't a valid image", - "with squoosh dev support w/o next.config.js should fail when domain is not defined in next.config.js", - "with squoosh dev support w/o next.config.js should fail when internal url is not an image", - "with squoosh dev support w/o next.config.js should fail when q is greater than 100", - "with squoosh dev support w/o next.config.js should fail when q is less than 1", - "with squoosh dev support w/o next.config.js should fail when q is missing", - "with squoosh dev support w/o next.config.js should fail when q is not a number", - "with squoosh dev support w/o next.config.js should fail when url has file protocol", - "with squoosh dev support w/o next.config.js should fail when url has ftp protocol", - "with squoosh dev support w/o next.config.js should fail when url is missing", - "with squoosh dev support w/o next.config.js should fail when w is 0", - "with squoosh dev support w/o next.config.js should fail when w is less than 0", - "with squoosh dev support w/o next.config.js should fail when w is missing", - "with squoosh dev support w/o next.config.js should fail when w is not a number", - "with squoosh dev support w/o next.config.js should fail when width is not in next.config.js", - "with squoosh dev support w/o next.config.js should handle non-ascii characters in image url", - "with squoosh dev support w/o next.config.js should maintain animated gif", - "with squoosh dev support w/o next.config.js should maintain animated png", - "with squoosh dev support w/o next.config.js should maintain animated png 2", - "with squoosh dev support w/o next.config.js should maintain animated webp", - "with squoosh dev support w/o next.config.js should maintain bmp", - "with squoosh dev support w/o next.config.js should maintain ico format", - "with squoosh dev support w/o next.config.js should maintain jpg format for old Safari", - "with squoosh dev support w/o next.config.js should maintain png format for old Safari", - "with squoosh dev support w/o next.config.js should not allow svg with application header", - "with squoosh dev support w/o next.config.js should not allow svg with comma header", - "with squoosh dev support w/o next.config.js should not allow svg with uppercase header", - "with squoosh dev support w/o next.config.js should not allow vector svg", - "with squoosh dev support w/o next.config.js should not change the color type of a png", - "with squoosh dev support w/o next.config.js should not have sharp missing warning", - "with squoosh dev support w/o next.config.js should not have sharp outdated warning", - "with squoosh dev support w/o next.config.js should not resize if requested width is larger than original source image", - "with squoosh dev support w/o next.config.js should resize relative url and old Chrome accept header as webp", - "with squoosh dev support w/o next.config.js should resize relative url and png accept header", - "with squoosh dev support w/o next.config.js should resize relative url and webp Firefox accept header", - "with squoosh dev support w/o next.config.js should resize relative url with invalid accept header as gif", - "with squoosh dev support w/o next.config.js should resize relative url with invalid accept header as png", - "with squoosh dev support w/o next.config.js should resize relative url with invalid accept header as tiff", - "with squoosh dev support w/o next.config.js should return home page", - "with squoosh dev support w/o next.config.js should set 304 status without body when etag matches if-none-match", - "with squoosh dev support w/o next.config.js should set cache-control to immutable for static images", - "with squoosh dev support w/o next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with squoosh dev support w/o next.config.js should use cached image file when parameters are the same for animated gif", - "with squoosh dev support with next.config.js should automatically detect image type when content-type is octet-stream", - "with squoosh dev support with next.config.js should compress avif smaller than webp at q=100", - "with squoosh dev support with next.config.js should compress avif smaller than webp at q=50", - "with squoosh dev support with next.config.js should compress avif smaller than webp at q=75", - "with squoosh dev support with next.config.js should downlevel avif format to jpeg for old Safari", - "with squoosh dev support with next.config.js should downlevel webp format to jpeg for old Safari", - "with squoosh dev support with next.config.js should emit blur svg when width is 8 in dev but not prod", - "with squoosh dev support with next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with squoosh dev support with next.config.js should error if the image file does not exist", - "with squoosh dev support with next.config.js should error if the resource isn't a valid image", - "with squoosh dev support with next.config.js should fail when domain is not defined in next.config.js", - "with squoosh dev support with next.config.js should fail when internal url is not an image", - "with squoosh dev support with next.config.js should fail when q is greater than 100", - "with squoosh dev support with next.config.js should fail when q is less than 1", - "with squoosh dev support with next.config.js should fail when q is missing", - "with squoosh dev support with next.config.js should fail when q is not a number", - "with squoosh dev support with next.config.js should fail when url fails to load an image", - "with squoosh dev support with next.config.js should fail when url has file protocol", - "with squoosh dev support with next.config.js should fail when url has ftp protocol", - "with squoosh dev support with next.config.js should fail when url is missing", - "with squoosh dev support with next.config.js should fail when w is 0", - "with squoosh dev support with next.config.js should fail when w is less than 0", - "with squoosh dev support with next.config.js should fail when w is missing", - "with squoosh dev support with next.config.js should fail when w is not a number", - "with squoosh dev support with next.config.js should fail when width is not in next.config.js", - "with squoosh dev support with next.config.js should handle concurrent requests", - "with squoosh dev support with next.config.js should handle non-ascii characters in image url", - "with squoosh dev support with next.config.js should maintain animated gif", - "with squoosh dev support with next.config.js should maintain animated png", - "with squoosh dev support with next.config.js should maintain animated png 2", - "with squoosh dev support with next.config.js should maintain animated webp", - "with squoosh dev support with next.config.js should maintain bmp", - "with squoosh dev support with next.config.js should maintain ico format", - "with squoosh dev support with next.config.js should maintain jpg format for old Safari", - "with squoosh dev support with next.config.js should maintain png format for old Safari", - "with squoosh dev support with next.config.js should normalize invalid status codes", - "with squoosh dev support with next.config.js should not allow svg with application header", - "with squoosh dev support with next.config.js should not allow svg with comma header", - "with squoosh dev support with next.config.js should not allow svg with uppercase header", - "with squoosh dev support with next.config.js should not allow vector svg", - "with squoosh dev support with next.config.js should not change the color type of a png", - "with squoosh dev support with next.config.js should not have sharp missing warning", - "with squoosh dev support with next.config.js should not have sharp outdated warning", - "with squoosh dev support with next.config.js should not resize if requested width is larger than original source image", - "with squoosh dev support with next.config.js should resize absolute url from localhost", - "with squoosh dev support with next.config.js should resize relative url and new Chrome accept header as avif", - "with squoosh dev support with next.config.js should resize relative url and old Chrome accept header as webp", - "with squoosh dev support with next.config.js should resize relative url and png accept header", - "with squoosh dev support with next.config.js should resize relative url and webp Firefox accept header", - "with squoosh dev support with next.config.js should resize relative url with invalid accept header as gif", - "with squoosh dev support with next.config.js should resize relative url with invalid accept header as png", - "with squoosh dev support with next.config.js should resize relative url with invalid accept header as tiff", - "with squoosh dev support with next.config.js should return home page", - "with squoosh dev support with next.config.js should set 304 status without body when etag matches if-none-match", - "with squoosh dev support with next.config.js should set cache-control to immutable for static images", - "with squoosh dev support with next.config.js should use cache and stale-while-revalidate when query is the same for external image", - "with squoosh dev support with next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with squoosh dev support with next.config.js should use cached image file when parameters are the same for animated gif" - ], - "failed": [ - "with squoosh Production Mode Server support w/o next.config.js should set cache-control to immutable for static images", - "with squoosh Production Mode Server support with next.config.js should set cache-control to immutable for static images" - ], - "pending": [], - "flakey": [], - "runtimeError": false - }, "test/integration/import-assertion/test/index.test.js": { "passed": ["import-assertion dev should handle json assertions"], "failed": [ @@ -12084,15 +11801,14 @@ }, "test/integration/next-image-legacy/custom-resolver/test/index.test.ts": { "passed": [ + "Custom Resolver Tests production mode Client-side Custom Loader Tests Should use a custom resolver for image URL", + "Custom Resolver Tests production mode Client-side Custom Loader Tests should add a srcset based on the custom resolver", + "Custom Resolver Tests production mode Client-side Custom Loader Tests should support the unoptimized attribute", "Custom Resolver Tests production mode SSR Custom Loader Tests Should use a custom resolver for image URL", "Custom Resolver Tests production mode SSR Custom Loader Tests should add a srcset based on the custom resolver", "Custom Resolver Tests production mode SSR Custom Loader Tests should support the unoptimized attribute" ], - "failed": [ - "Custom Resolver Tests production mode Client-side Custom Loader Tests Should use a custom resolver for image URL", - "Custom Resolver Tests production mode Client-side Custom Loader Tests should add a srcset based on the custom resolver", - "Custom Resolver Tests production mode Client-side Custom Loader Tests should support the unoptimized attribute" - ], + "failed": [], "pending": [], "flakey": [], "runtimeError": false @@ -13885,6 +13601,13 @@ "flakey": [], "runtimeError": false }, + "test/integration/sharp-api/test/sharp-api.test.ts": { + "passed": [], + "failed": [], + "pending": ["sharp api should handle custom sharp usage"], + "flakey": [], + "runtimeError": false + }, "test/integration/src-dir-support-double-dir/test/index.test.js": { "passed": [ "Dynamic Routing production mode should render from pages", From d62b68fb041da77509a82e62afd3e275c060562f Mon Sep 17 00:00:00 2001 From: Vercel Release Bot <88769842+vercel-release-bot@users.noreply.github.com> Date: Wed, 1 May 2024 06:02:20 -0400 Subject: [PATCH 6/6] Update Turbopack development test manifest (#65226) This auto-generated PR updates the development integration test manifest used when testing Turbopack. --- test/turbopack-dev-tests-manifest.json | 605 +++++++++---------------- 1 file changed, 217 insertions(+), 388 deletions(-) diff --git a/test/turbopack-dev-tests-manifest.json b/test/turbopack-dev-tests-manifest.json index cbcb6a69c25c4..3976384a00c71 100644 --- a/test/turbopack-dev-tests-manifest.json +++ b/test/turbopack-dev-tests-manifest.json @@ -392,6 +392,11 @@ }, "packages/next/src/lib/metadata/resolvers/resolve-url.test.ts": { "passed": [ + "getSocialImageFallbackMetadataBase fallbackMetadataBase when metadataBase is not present should prefer branch url in preview deployment if presents", + "getSocialImageFallbackMetadataBase fallbackMetadataBase when metadataBase is not present should return local url in local build mode", + "getSocialImageFallbackMetadataBase fallbackMetadataBase when metadataBase is not present should return localhost url in local dev mode", + "getSocialImageFallbackMetadataBase fallbackMetadataBase when metadataBase is not present should return project production url in production deployment", + "getSocialImageFallbackMetadataBase fallbackMetadataBase when metadataBase is not present should return vercel url in preview deployment if only it presents", "metadata: resolveUrl should compose with metadataBase when url is relative or absolute", "metadata: resolveUrl should ignore metadataBase when url is valid URL", "metadata: resolveUrl should return null when url is falsy", @@ -408,6 +413,19 @@ "flakey": [], "runtimeError": false }, + "packages/next/src/lib/typescript/writeConfigurationDefaults.test.ts": { + "passed": [ + "writeConfigurationDefaults() appDir applies suggested and mandatory defaults to existing tsconfig.json and logs them", + "writeConfigurationDefaults() appDir does not warn about disabled strict mode if strict mode was already enabled", + "writeConfigurationDefaults() appDir with tsconfig extends should not add strictNullChecks if base provides it", + "writeConfigurationDefaults() appDir with tsconfig extends should replace includes when base is missing appTypes", + "writeConfigurationDefaults() appDir with tsconfig extends should support empty includes when base provides it" + ], + "failed": [], + "pending": [], + "flakey": [], + "runtimeError": false + }, "packages/next/src/server/app-render/csrf-protection.test.ts": { "passed": [ "isCsrfOriginAllowed should return false when allowedOrigins contains originDomain with non-matching pattern", @@ -735,6 +753,27 @@ "flakey": [], "runtimeError": false }, + "packages/next/src/server/lib/utils.test.ts": { + "passed": [ + "formatNodeOptions wraps values with spaces in quotes", + "getFormattedNodeOptionsWithoutInspect handles options with quotes", + "getFormattedNodeOptionsWithoutInspect handles options with spaces", + "getFormattedNodeOptionsWithoutInspect ignores unrelated options starting with --inspect-", + "getFormattedNodeOptionsWithoutInspect removes --inspect option", + "getFormattedNodeOptionsWithoutInspect removes --inspect option at end of line", + "getFormattedNodeOptionsWithoutInspect removes --inspect option with parameters", + "getFormattedNodeOptionsWithoutInspect removes --inspect-brk option", + "getFormattedNodeOptionsWithoutInspect removes --inspect-brk option with parameters", + "getParsedDebugAddress supports the flag with an equal sign", + "getParsedDebugAddress supports the flag without an equal sign", + "tokenizeArgs splits arguments by spaces", + "tokenizeArgs supports quoted values" + ], + "failed": [], + "pending": [], + "flakey": [], + "runtimeError": false + }, "packages/next/src/server/load-manifest.test.ts": { "passed": [ "loadManifest should cache the manifest when not already cached", @@ -1727,83 +1766,135 @@ "flakey": [], "runtimeError": false }, - "test/development/basic/next-dynamic.test.ts": { - "passed": [ - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import custom loading should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import default behavior should hydrate nested chunks", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import default behavior should render dynamic import components", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import default behavior should render dynamic import components using a function as first parameter", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import default behavior should render even there are no physical chunk exists", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import default behavior should render the component Head content", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import ssr:false option should import and render the ESM module correctly on client side", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import ssr:false option should not render loading on the server side", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import ssr:false option should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import ssr:true option Should render the component on the server side", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import ssr:true option should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import custom loading should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import default behavior should hydrate nested chunks", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import default behavior should render dynamic import components", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import default behavior should render dynamic import components using a function as first parameter", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import default behavior should render even there are no physical chunk exists", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import default behavior should render the component Head content", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import ssr:false option should import and render the ESM module correctly on client side", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import ssr:false option should not render loading on the server side", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import ssr:false option should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import ssr:true option Should render the component on the server side", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import ssr:true option should render the component on client side", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import custom loading should render the component on client side", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import default behavior should hydrate nested chunks", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import default behavior should render dynamic import components", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import default behavior should render dynamic import components using a function as first parameter", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import default behavior should render even there are no physical chunk exists", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import default behavior should render the component Head content", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import ssr:false option should import and render the ESM module correctly on client side", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import ssr:false option should not render loading on the server side", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import ssr:false option should render the component on client side", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import ssr:true option Should render the component on the server side", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import ssr:true option should render the component on client side" - ], - "failed": [], - "pending": [ - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import Multiple modules should only include the rendered module script tag", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import Multiple modules should only load the rendered module in the browser", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import Multiple modules should only render one bundle if component is used multiple times", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import custom chunkfilename should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import custom chunkfilename should render the correct filename", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import custom loading should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import default behavior should hydrate nested chunks", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import default behavior should render dynamic import components", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import default behavior should render dynamic import components using a function as first parameter", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import default behavior should render even there are no physical chunk exists", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import default behavior should render the component Head content", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import ssr:false option should import and render the ESM module correctly on client side", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import ssr:false option should not render loading on the server side", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import ssr:false option should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import ssr:true option Should render the component on the server side", - "basic next/dynamic usage, basePath: \"\" with \"babel\" compiler babel Dynamic import ssr:true option should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import Multiple modules should only include the rendered module script tag", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import Multiple modules should only load the rendered module in the browser", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import Multiple modules should only render one bundle if component is used multiple times", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import custom chunkfilename should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"document.getInitialProps\" compiler document.getInitialProps Dynamic import custom chunkfilename should render the correct filename", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import Multiple modules should only include the rendered module script tag", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import Multiple modules should only load the rendered module in the browser", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import Multiple modules should only render one bundle if component is used multiple times", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import custom chunkfilename should render the component on client side", - "basic next/dynamic usage, basePath: \"\" with \"swc\" compiler swc Dynamic import custom chunkfilename should render the correct filename", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import Multiple modules should only include the rendered module script tag", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import Multiple modules should only load the rendered module in the browser", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import Multiple modules should only render one bundle if component is used multiple times", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import custom chunkfilename should render the component on client side", - "basic next/dynamic usage, basePath: \"/docs\" with \"swc\" compiler swc Dynamic import custom chunkfilename should render the correct filename" + "test/development/basic/next-dynamic/next-dynamic-babel-src-dir.test.ts": { + "passed": [], + "failed": [], + "pending": [ + "next/dynamic Dynamic import Multiple modules should only include the rendered module script tag", + "next/dynamic Dynamic import Multiple modules should only load the rendered module in the browser", + "next/dynamic Dynamic import Multiple modules should only render one bundle if component is used multiple times", + "next/dynamic Dynamic import custom chunkfilename should render the component on client side", + "next/dynamic Dynamic import custom chunkfilename should render the correct filename", + "next/dynamic Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", + "next/dynamic Dynamic import custom loading should render the component on client side", + "next/dynamic Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", + "next/dynamic Dynamic import default behavior should hydrate nested chunks", + "next/dynamic Dynamic import default behavior should render dynamic import components", + "next/dynamic Dynamic import default behavior should render dynamic import components using a function as first parameter", + "next/dynamic Dynamic import default behavior should render even there are no physical chunk exists", + "next/dynamic Dynamic import default behavior should render the component Head content", + "next/dynamic Dynamic import ssr:false option should import and render the ESM module correctly on client side", + "next/dynamic Dynamic import ssr:false option should not render loading on the server side", + "next/dynamic Dynamic import ssr:false option should render the component on client side", + "next/dynamic Dynamic import ssr:true option Should render the component on the server side", + "next/dynamic Dynamic import ssr:true option should render the component on client side" + ], + "flakey": [], + "runtimeError": false + }, + "test/development/basic/next-dynamic/next-dynamic-babel.test.ts": { + "passed": [], + "failed": [], + "pending": [ + "next/dynamic Dynamic import Multiple modules should only include the rendered module script tag", + "next/dynamic Dynamic import Multiple modules should only load the rendered module in the browser", + "next/dynamic Dynamic import Multiple modules should only render one bundle if component is used multiple times", + "next/dynamic Dynamic import custom chunkfilename should render the component on client side", + "next/dynamic Dynamic import custom chunkfilename should render the correct filename", + "next/dynamic Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", + "next/dynamic Dynamic import custom loading should render the component on client side", + "next/dynamic Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", + "next/dynamic Dynamic import default behavior should hydrate nested chunks", + "next/dynamic Dynamic import default behavior should render dynamic import components", + "next/dynamic Dynamic import default behavior should render dynamic import components using a function as first parameter", + "next/dynamic Dynamic import default behavior should render even there are no physical chunk exists", + "next/dynamic Dynamic import default behavior should render the component Head content", + "next/dynamic Dynamic import ssr:false option should import and render the ESM module correctly on client side", + "next/dynamic Dynamic import ssr:false option should not render loading on the server side", + "next/dynamic Dynamic import ssr:false option should render the component on client side", + "next/dynamic Dynamic import ssr:true option Should render the component on the server side", + "next/dynamic Dynamic import ssr:true option should render the component on client side" + ], + "flakey": [], + "runtimeError": false + }, + "test/development/basic/next-dynamic/next-dynamic-base-path.test.ts": { + "passed": [ + "next/dynamic Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", + "next/dynamic Dynamic import custom loading should render the component on client side", + "next/dynamic Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", + "next/dynamic Dynamic import default behavior should hydrate nested chunks", + "next/dynamic Dynamic import default behavior should render dynamic import components", + "next/dynamic Dynamic import default behavior should render dynamic import components using a function as first parameter", + "next/dynamic Dynamic import default behavior should render even there are no physical chunk exists", + "next/dynamic Dynamic import default behavior should render the component Head content", + "next/dynamic Dynamic import ssr:false option should import and render the ESM module correctly on client side", + "next/dynamic Dynamic import ssr:false option should not render loading on the server side", + "next/dynamic Dynamic import ssr:false option should render the component on client side", + "next/dynamic Dynamic import ssr:true option Should render the component on the server side", + "next/dynamic Dynamic import ssr:true option should render the component on client side" + ], + "failed": [], + "pending": [ + "next/dynamic Dynamic import Multiple modules should only include the rendered module script tag", + "next/dynamic Dynamic import Multiple modules should only load the rendered module in the browser", + "next/dynamic Dynamic import Multiple modules should only render one bundle if component is used multiple times", + "next/dynamic Dynamic import custom chunkfilename should render the component on client side", + "next/dynamic Dynamic import custom chunkfilename should render the correct filename" + ], + "flakey": [], + "runtimeError": false + }, + "test/development/basic/next-dynamic/next-dynamic-custom-document.test.ts": { + "passed": [ + "next/dynamic Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", + "next/dynamic Dynamic import custom loading should render the component on client side", + "next/dynamic Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", + "next/dynamic Dynamic import default behavior should hydrate nested chunks", + "next/dynamic Dynamic import default behavior should render dynamic import components", + "next/dynamic Dynamic import default behavior should render dynamic import components using a function as first parameter", + "next/dynamic Dynamic import default behavior should render even there are no physical chunk exists", + "next/dynamic Dynamic import default behavior should render the component Head content", + "next/dynamic Dynamic import ssr:false option should import and render the ESM module correctly on client side", + "next/dynamic Dynamic import ssr:false option should not render loading on the server side", + "next/dynamic Dynamic import ssr:false option should render the component on client side", + "next/dynamic Dynamic import ssr:true option Should render the component on the server side", + "next/dynamic Dynamic import ssr:true option should render the component on client side" + ], + "failed": [], + "pending": [ + "next/dynamic Dynamic import Multiple modules should only include the rendered module script tag", + "next/dynamic Dynamic import Multiple modules should only load the rendered module in the browser", + "next/dynamic Dynamic import Multiple modules should only render one bundle if component is used multiple times", + "next/dynamic Dynamic import custom chunkfilename should render the component on client side", + "next/dynamic Dynamic import custom chunkfilename should render the correct filename" + ], + "flakey": [], + "runtimeError": false + }, + "test/development/basic/next-dynamic/next-dynamic.test.ts": { + "passed": [ + "next/dynamic Dynamic import custom loading should render custom loading on the server side when `ssr:false` and `loading` is provided", + "next/dynamic Dynamic import custom loading should render the component on client side", + "next/dynamic Dynamic import default behavior should SSR nested dynamic components and skip nonSSR ones", + "next/dynamic Dynamic import default behavior should hydrate nested chunks", + "next/dynamic Dynamic import default behavior should render dynamic import components", + "next/dynamic Dynamic import default behavior should render dynamic import components using a function as first parameter", + "next/dynamic Dynamic import default behavior should render even there are no physical chunk exists", + "next/dynamic Dynamic import default behavior should render the component Head content", + "next/dynamic Dynamic import ssr:false option should import and render the ESM module correctly on client side", + "next/dynamic Dynamic import ssr:false option should not render loading on the server side", + "next/dynamic Dynamic import ssr:false option should render the component on client side", + "next/dynamic Dynamic import ssr:true option Should render the component on the server side", + "next/dynamic Dynamic import ssr:true option should render the component on client side" + ], + "failed": [], + "pending": [ + "next/dynamic Dynamic import Multiple modules should only include the rendered module script tag", + "next/dynamic Dynamic import Multiple modules should only load the rendered module in the browser", + "next/dynamic Dynamic import Multiple modules should only render one bundle if component is used multiple times", + "next/dynamic Dynamic import custom chunkfilename should render the component on client side", + "next/dynamic Dynamic import custom chunkfilename should render the correct filename" ], "flakey": [], "runtimeError": false @@ -1848,7 +1939,8 @@ "node builtins should support node.js builtins", "node builtins should support node.js builtins in server component", "node builtins should support node.js builtins prefixed by node:", - "node builtins should support node.js builtins prefixed by node: in server component" + "node builtins should support node.js builtins prefixed by node: in server component", + "node builtins should throw when unsupported builtins are used in middleware" ], "failed": [], "pending": [], @@ -2430,6 +2522,8 @@ "app-dir action handling should log a warning when a server action is not found but an id is provided", "app-dir action handling should not block navigation events while a server action is in flight", "app-dir action handling should not block router.back() while a server action is in flight", + "app-dir action handling should not error when a forwarded action triggers a redirect (edge)", + "app-dir action handling should not error when a forwarded action triggers a redirect (node)", "app-dir action handling should not log errors for non-action form POSTs", "app-dir action handling should only submit action once when resubmitting an action after navigation", "app-dir action handling should push new route when redirecting", @@ -2727,6 +2821,7 @@ "app-dir with middleware Mutate request headers for next/headers Deletes headers", "app-dir with middleware Mutate request headers for next/headers Supports draft mode", "app-dir with middleware Mutate request headers for next/headers Updates headers", + "app-dir with middleware should be possible to modify cookies & read them in an RSC in a single request", "app-dir with middleware should filter correctly after middleware rewrite" ], "failed": [], @@ -3146,6 +3241,15 @@ "flakey": [], "runtimeError": false }, + "test/e2e/app-dir/app/flying-shuttle.test.ts": { + "passed": [ + "should output updated trace files should skip for non-next start" + ], + "failed": [], + "pending": [], + "flakey": [], + "runtimeError": false + }, "test/e2e/app-dir/app/index.test.ts": { "passed": [ "app dir - basic <Link /> should allow linking from app page to pages page", @@ -3581,10 +3685,12 @@ "app dir - next/dynamic no SSR should not render client component imported through ssr: false in client components", "app dir - next/dynamic no SSR should not render client component imported through ssr: false in client components in edge runtime", "app dir - next/dynamic no SSR should support dynamic import with accessing named exports from client component", + "app dir - next/dynamic should directly raise error when dynamic component error on server", "app dir - next/dynamic should generate correct client manifest for dynamic chunks", "app dir - next/dynamic should handle next/dynamic in SSR correctly", "app dir - next/dynamic should handle next/dynamic in hydration correctly", - "app dir - next/dynamic should handle ssr: false in pages when appDir is enabled" + "app dir - next/dynamic should handle ssr: false in pages when appDir is enabled", + "app dir - next/dynamic should not render loading by default" ], "failed": [], "pending": [], @@ -3890,7 +3996,7 @@ "app-dir - logging with default logging should not contain metadata internal segments for dynamic metadata routes", "app-dir - logging with default logging should not contain trailing word page for app router routes", "app-dir - logging with default logging should not log fetch requests at all", - "app-dir - logging with fetches default logging should exlucde Middleware invoked and _rsc requests", + "app-dir - logging with fetches default logging should exclude Middleware invoked and _rsc requests", "app-dir - logging with fetches default logging should log 'skip' cache status with a reason when cache: 'no-cache' is used", "app-dir - logging with fetches default logging should log 'skip' cache status with a reason when revalidate: 0 is used", "app-dir - logging with fetches default logging should log 'skip' cache status with a reason when the browser indicates caching should be ignored", @@ -3898,10 +4004,11 @@ "app-dir - logging with fetches default logging should log requests with correct indentation", "app-dir - logging with fetches default logging should not contain metadata internal segments for dynamic metadata routes", "app-dir - logging with fetches default logging should not contain trailing word page for app router routes", + "app-dir - logging with fetches default logging should not log _rsc query for client navigation RSC request", "app-dir - logging with fetches default logging should only log requests in development mode", "app-dir - logging with fetches default logging should respect request.init.cache when use with fetch input is instance", "app-dir - logging with fetches default logging should show cache reason of noStore when use with fetch", - "app-dir - logging with fetches verbose logging should exlucde Middleware invoked and _rsc requests", + "app-dir - logging with fetches verbose logging should exclude Middleware invoked and _rsc requests", "app-dir - logging with fetches verbose logging should log 'skip' cache status with a reason when cache: 'no-cache' is used", "app-dir - logging with fetches verbose logging should log 'skip' cache status with a reason when revalidate: 0 is used", "app-dir - logging with fetches verbose logging should log 'skip' cache status with a reason when the browser indicates caching should be ignored", @@ -3909,6 +4016,7 @@ "app-dir - logging with fetches verbose logging should log requests with correct indentation", "app-dir - logging with fetches verbose logging should not contain metadata internal segments for dynamic metadata routes", "app-dir - logging with fetches verbose logging should not contain trailing word page for app router routes", + "app-dir - logging with fetches verbose logging should not log _rsc query for client navigation RSC request", "app-dir - logging with fetches verbose logging should only log requests in development mode", "app-dir - logging with fetches verbose logging should respect request.init.cache when use with fetch input is instance", "app-dir - logging with fetches verbose logging should show cache reason of noStore when use with fetch", @@ -4314,6 +4422,9 @@ }, "test/e2e/app-dir/parallel-route-not-found/parallel-route-not-found.test.ts": { "passed": [ + "parallel-route-not-found should handle `notFound()` in a slot", + "parallel-route-not-found should handle `notFound()` in a slot with no `children` slot", + "parallel-route-not-found should handle `notFound()` in generateMetadata on a page that also renders a parallel route", "parallel-route-not-found should handle a layout that attempts to render a missing parallel route", "parallel-route-not-found should handle multiple missing parallel routes", "parallel-route-not-found should not log any warnings for a regular not found page", @@ -4370,6 +4481,15 @@ "flakey": [], "runtimeError": false }, + "test/e2e/app-dir/parallel-routes-breadcrumbs/parallel-routes-breadcrumbs.test.ts": { + "passed": [ + "parallel-routes-breadcrumbs should provide an unmatched catch-all route with params" + ], + "failed": [], + "pending": [], + "flakey": [], + "runtimeError": false + }, "test/e2e/app-dir/parallel-routes-catchall-children-slot/parallel-routes-catchall-children-slot.test.ts": { "passed": [ "parallel-routes-catchall-children-slot should match the @children slot for a page before attempting to match the catchall" @@ -4635,6 +4755,13 @@ "flakey": [], "runtimeError": false }, + "test/e2e/app-dir/ppr-unstable-cache/ppr-unstable-cache.test.ts": { + "passed": [], + "failed": [], + "pending": ["ppr-unstable-cache should not run in dev mode"], + "flakey": [], + "runtimeError": false + }, "test/e2e/app-dir/ppr/ppr.test.ts": { "passed": [ "ppr /no-suspense/node/gsp/[slug] should serve the static & dynamic parts", @@ -8211,6 +8338,8 @@ "CLI Usage dev -p reserved", "CLI Usage dev Allow retry if default port is already in use", "CLI Usage dev NODE_OPTIONS='--inspect'", + "CLI Usage dev NODE_OPTIONS='--require=file with spaces to --require.js'", + "CLI Usage dev NODE_OPTIONS='--require=file with spaces to-require-with-node-require-option.js'", "CLI Usage dev PORT=0", "CLI Usage dev custom directory", "CLI Usage dev invalid directory", @@ -12632,9 +12761,6 @@ "with contentDispositionType attachment dev support with next.config.js should not allow svg with comma header", "with contentDispositionType attachment dev support with next.config.js should not allow svg with uppercase header", "with contentDispositionType attachment dev support with next.config.js should not allow vector svg", - "with contentDispositionType attachment dev support with next.config.js should not change the color type of a png", - "with contentDispositionType attachment dev support with next.config.js should not have sharp missing warning", - "with contentDispositionType attachment dev support with next.config.js should not have sharp outdated warning", "with contentDispositionType attachment dev support with next.config.js should not resize if requested width is larger than original source image", "with contentDispositionType attachment dev support with next.config.js should resize absolute url from localhost", "with contentDispositionType attachment dev support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -12680,7 +12806,6 @@ "with contentDispositionType attachment Production Mode Server support with next.config.js should fail when width is not in next.config.js", "with contentDispositionType attachment Production Mode Server support with next.config.js should handle concurrent requests", "with contentDispositionType attachment Production Mode Server support with next.config.js should handle non-ascii characters in image url", - "with contentDispositionType attachment Production Mode Server support with next.config.js should have sharp missing warning", "with contentDispositionType attachment Production Mode Server support with next.config.js should maintain animated gif", "with contentDispositionType attachment Production Mode Server support with next.config.js should maintain animated png", "with contentDispositionType attachment Production Mode Server support with next.config.js should maintain animated png 2", @@ -12694,8 +12819,6 @@ "with contentDispositionType attachment Production Mode Server support with next.config.js should not allow svg with comma header", "with contentDispositionType attachment Production Mode Server support with next.config.js should not allow svg with uppercase header", "with contentDispositionType attachment Production Mode Server support with next.config.js should not allow vector svg", - "with contentDispositionType attachment Production Mode Server support with next.config.js should not change the color type of a png", - "with contentDispositionType attachment Production Mode Server support with next.config.js should not have sharp outdated warning", "with contentDispositionType attachment Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", "with contentDispositionType attachment Production Mode Server support with next.config.js should resize absolute url from localhost", "with contentDispositionType attachment Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -12792,9 +12915,6 @@ "with minimumCacheTTL of 5 sec dev support with next.config.js should not allow svg with comma header", "with minimumCacheTTL of 5 sec dev support with next.config.js should not allow svg with uppercase header", "with minimumCacheTTL of 5 sec dev support with next.config.js should not allow vector svg", - "with minimumCacheTTL of 5 sec dev support with next.config.js should not change the color type of a png", - "with minimumCacheTTL of 5 sec dev support with next.config.js should not have sharp missing warning", - "with minimumCacheTTL of 5 sec dev support with next.config.js should not have sharp outdated warning", "with minimumCacheTTL of 5 sec dev support with next.config.js should not resize if requested width is larger than original source image", "with minimumCacheTTL of 5 sec dev support with next.config.js should resize absolute url from localhost", "with minimumCacheTTL of 5 sec dev support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -12840,7 +12960,6 @@ "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should fail when width is not in next.config.js", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should handle concurrent requests", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should handle non-ascii characters in image url", - "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should have sharp missing warning", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should maintain animated gif", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should maintain animated png", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should maintain animated png 2", @@ -12854,8 +12973,6 @@ "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not allow svg with comma header", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not allow svg with uppercase header", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not allow vector svg", - "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not change the color type of a png", - "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not have sharp outdated warning", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should resize absolute url from localhost", "with minimumCacheTTL of 5 sec Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -12875,71 +12992,6 @@ "flakey": [], "runtimeError": false }, - "test/integration/image-optimizer/test/old-sharp.test.ts": { - "passed": [], - "failed": [], - "pending": [ - "with outdated sharp Production Mode Server support with next.config.js should automatically detect image type when content-type is octet-stream", - "with outdated sharp Production Mode Server support with next.config.js should compress avif smaller than webp at q=100", - "with outdated sharp Production Mode Server support with next.config.js should compress avif smaller than webp at q=50", - "with outdated sharp Production Mode Server support with next.config.js should compress avif smaller than webp at q=75", - "with outdated sharp Production Mode Server support with next.config.js should downlevel webp format to jpeg for old Safari", - "with outdated sharp Production Mode Server support with next.config.js should emit blur svg when width is 8 in dev but not prod", - "with outdated sharp Production Mode Server support with next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with outdated sharp Production Mode Server support with next.config.js should error if the image file does not exist", - "with outdated sharp Production Mode Server support with next.config.js should error if the resource isn't a valid image", - "with outdated sharp Production Mode Server support with next.config.js should fail when domain is not defined in next.config.js", - "with outdated sharp Production Mode Server support with next.config.js should fail when internal url is not an image", - "with outdated sharp Production Mode Server support with next.config.js should fail when q is greater than 100", - "with outdated sharp Production Mode Server support with next.config.js should fail when q is less than 1", - "with outdated sharp Production Mode Server support with next.config.js should fail when q is missing", - "with outdated sharp Production Mode Server support with next.config.js should fail when q is not a number", - "with outdated sharp Production Mode Server support with next.config.js should fail when url fails to load an image", - "with outdated sharp Production Mode Server support with next.config.js should fail when url has file protocol", - "with outdated sharp Production Mode Server support with next.config.js should fail when url has ftp protocol", - "with outdated sharp Production Mode Server support with next.config.js should fail when url is missing", - "with outdated sharp Production Mode Server support with next.config.js should fail when w is 0", - "with outdated sharp Production Mode Server support with next.config.js should fail when w is less than 0", - "with outdated sharp Production Mode Server support with next.config.js should fail when w is missing", - "with outdated sharp Production Mode Server support with next.config.js should fail when w is not a number", - "with outdated sharp Production Mode Server support with next.config.js should fail when width is not in next.config.js", - "with outdated sharp Production Mode Server support with next.config.js should handle concurrent requests", - "with outdated sharp Production Mode Server support with next.config.js should handle custom sharp usage", - "with outdated sharp Production Mode Server support with next.config.js should handle non-ascii characters in image url", - "with outdated sharp Production Mode Server support with next.config.js should have sharp outdated warning", - "with outdated sharp Production Mode Server support with next.config.js should maintain animated gif", - "with outdated sharp Production Mode Server support with next.config.js should maintain animated png", - "with outdated sharp Production Mode Server support with next.config.js should maintain animated png 2", - "with outdated sharp Production Mode Server support with next.config.js should maintain animated webp", - "with outdated sharp Production Mode Server support with next.config.js should maintain bmp", - "with outdated sharp Production Mode Server support with next.config.js should maintain ico format", - "with outdated sharp Production Mode Server support with next.config.js should maintain jpg format for old Safari", - "with outdated sharp Production Mode Server support with next.config.js should maintain png format for old Safari", - "with outdated sharp Production Mode Server support with next.config.js should normalize invalid status codes", - "with outdated sharp Production Mode Server support with next.config.js should not allow svg with application header", - "with outdated sharp Production Mode Server support with next.config.js should not allow svg with comma header", - "with outdated sharp Production Mode Server support with next.config.js should not allow svg with uppercase header", - "with outdated sharp Production Mode Server support with next.config.js should not allow vector svg", - "with outdated sharp Production Mode Server support with next.config.js should not have sharp missing warning", - "with outdated sharp Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", - "with outdated sharp Production Mode Server support with next.config.js should resize absolute url from localhost", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url and old Chrome accept header as webp", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url and png accept header", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url and webp Firefox accept header", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url with invalid accept header as gif", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url with invalid accept header as png", - "with outdated sharp Production Mode Server support with next.config.js should resize relative url with invalid accept header as tiff", - "with outdated sharp Production Mode Server support with next.config.js should return home page", - "with outdated sharp Production Mode Server support with next.config.js should set 304 status without body when etag matches if-none-match", - "with outdated sharp Production Mode Server support with next.config.js should set cache-control to immutable for static images", - "with outdated sharp Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for external image", - "with outdated sharp Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with outdated sharp Production Mode Server support with next.config.js should use cached image file when parameters are the same for animated gif" - ], - "flakey": [], - "runtimeError": false - }, "test/integration/image-optimizer/test/sharp.test.ts": { "passed": [ "with latest sharp dev support w/o next.config.js should downlevel avif format to jpeg for old Safari", @@ -12975,8 +13027,6 @@ "with latest sharp dev support w/o next.config.js should not allow svg with comma header", "with latest sharp dev support w/o next.config.js should not allow svg with uppercase header", "with latest sharp dev support w/o next.config.js should not allow vector svg", - "with latest sharp dev support w/o next.config.js should not have sharp missing warning", - "with latest sharp dev support w/o next.config.js should not have sharp outdated warning", "with latest sharp dev support w/o next.config.js should not resize if requested width is larger than original source image", "with latest sharp dev support w/o next.config.js should resize relative url and old Chrome accept header as webp", "with latest sharp dev support w/o next.config.js should resize relative url and png accept header", @@ -13029,8 +13079,6 @@ "with latest sharp dev support with next.config.js should not allow svg with comma header", "with latest sharp dev support with next.config.js should not allow svg with uppercase header", "with latest sharp dev support with next.config.js should not allow vector svg", - "with latest sharp dev support with next.config.js should not have sharp missing warning", - "with latest sharp dev support with next.config.js should not have sharp outdated warning", "with latest sharp dev support with next.config.js should not resize if requested width is larger than original source image", "with latest sharp dev support with next.config.js should resize absolute url from localhost", "with latest sharp dev support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -13082,8 +13130,6 @@ "with latest sharp Production Mode Server support w/o next.config.js should not allow svg with comma header", "with latest sharp Production Mode Server support w/o next.config.js should not allow svg with uppercase header", "with latest sharp Production Mode Server support w/o next.config.js should not allow vector svg", - "with latest sharp Production Mode Server support w/o next.config.js should not have sharp missing warning", - "with latest sharp Production Mode Server support w/o next.config.js should not have sharp outdated warning", "with latest sharp Production Mode Server support w/o next.config.js should not resize if requested width is larger than original source image", "with latest sharp Production Mode Server support w/o next.config.js should resize relative url and old Chrome accept header as webp", "with latest sharp Production Mode Server support w/o next.config.js should resize relative url and png accept header", @@ -13122,7 +13168,6 @@ "with latest sharp Production Mode Server support with next.config.js should fail when w is not a number", "with latest sharp Production Mode Server support with next.config.js should fail when width is not in next.config.js", "with latest sharp Production Mode Server support with next.config.js should handle concurrent requests", - "with latest sharp Production Mode Server support with next.config.js should handle custom sharp usage", "with latest sharp Production Mode Server support with next.config.js should handle non-ascii characters in image url", "with latest sharp Production Mode Server support with next.config.js should maintain animated gif", "with latest sharp Production Mode Server support with next.config.js should maintain animated png", @@ -13137,8 +13182,6 @@ "with latest sharp Production Mode Server support with next.config.js should not allow svg with comma header", "with latest sharp Production Mode Server support with next.config.js should not allow svg with uppercase header", "with latest sharp Production Mode Server support with next.config.js should not allow vector svg", - "with latest sharp Production Mode Server support with next.config.js should not have sharp missing warning", - "with latest sharp Production Mode Server support with next.config.js should not have sharp outdated warning", "with latest sharp Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", "with latest sharp Production Mode Server support with next.config.js should resize absolute url from localhost", "with latest sharp Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", @@ -13158,227 +13201,6 @@ "flakey": [], "runtimeError": false }, - "test/integration/image-optimizer/test/squoosh.test.ts": { - "passed": [ - "with squoosh dev support w/o next.config.js should downlevel avif format to jpeg for old Safari", - "with squoosh dev support w/o next.config.js should downlevel webp format to jpeg for old Safari", - "with squoosh dev support w/o next.config.js should emit blur svg when width is 8 in dev but not prod", - "with squoosh dev support w/o next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with squoosh dev support w/o next.config.js should error if the image file does not exist", - "with squoosh dev support w/o next.config.js should error if the resource isn't a valid image", - "with squoosh dev support w/o next.config.js should fail when domain is not defined in next.config.js", - "with squoosh dev support w/o next.config.js should fail when internal url is not an image", - "with squoosh dev support w/o next.config.js should fail when q is greater than 100", - "with squoosh dev support w/o next.config.js should fail when q is less than 1", - "with squoosh dev support w/o next.config.js should fail when q is missing", - "with squoosh dev support w/o next.config.js should fail when q is not a number", - "with squoosh dev support w/o next.config.js should fail when url has file protocol", - "with squoosh dev support w/o next.config.js should fail when url has ftp protocol", - "with squoosh dev support w/o next.config.js should fail when url is missing", - "with squoosh dev support w/o next.config.js should fail when w is 0", - "with squoosh dev support w/o next.config.js should fail when w is less than 0", - "with squoosh dev support w/o next.config.js should fail when w is missing", - "with squoosh dev support w/o next.config.js should fail when w is not a number", - "with squoosh dev support w/o next.config.js should fail when width is not in next.config.js", - "with squoosh dev support w/o next.config.js should handle non-ascii characters in image url", - "with squoosh dev support w/o next.config.js should maintain animated gif", - "with squoosh dev support w/o next.config.js should maintain animated png", - "with squoosh dev support w/o next.config.js should maintain animated png 2", - "with squoosh dev support w/o next.config.js should maintain animated webp", - "with squoosh dev support w/o next.config.js should maintain bmp", - "with squoosh dev support w/o next.config.js should maintain ico format", - "with squoosh dev support w/o next.config.js should maintain jpg format for old Safari", - "with squoosh dev support w/o next.config.js should maintain png format for old Safari", - "with squoosh dev support w/o next.config.js should not allow svg with application header", - "with squoosh dev support w/o next.config.js should not allow svg with comma header", - "with squoosh dev support w/o next.config.js should not allow svg with uppercase header", - "with squoosh dev support w/o next.config.js should not allow vector svg", - "with squoosh dev support w/o next.config.js should not change the color type of a png", - "with squoosh dev support w/o next.config.js should not have sharp missing warning", - "with squoosh dev support w/o next.config.js should not have sharp outdated warning", - "with squoosh dev support w/o next.config.js should not resize if requested width is larger than original source image", - "with squoosh dev support w/o next.config.js should resize relative url and old Chrome accept header as webp", - "with squoosh dev support w/o next.config.js should resize relative url and png accept header", - "with squoosh dev support w/o next.config.js should resize relative url and webp Firefox accept header", - "with squoosh dev support w/o next.config.js should resize relative url with invalid accept header as gif", - "with squoosh dev support w/o next.config.js should resize relative url with invalid accept header as png", - "with squoosh dev support w/o next.config.js should resize relative url with invalid accept header as tiff", - "with squoosh dev support w/o next.config.js should return home page", - "with squoosh dev support w/o next.config.js should set 304 status without body when etag matches if-none-match", - "with squoosh dev support w/o next.config.js should set cache-control to immutable for static images", - "with squoosh dev support w/o next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with squoosh dev support w/o next.config.js should use cached image file when parameters are the same for animated gif", - "with squoosh dev support with next.config.js should automatically detect image type when content-type is octet-stream", - "with squoosh dev support with next.config.js should compress avif smaller than webp at q=100", - "with squoosh dev support with next.config.js should compress avif smaller than webp at q=50", - "with squoosh dev support with next.config.js should compress avif smaller than webp at q=75", - "with squoosh dev support with next.config.js should downlevel avif format to jpeg for old Safari", - "with squoosh dev support with next.config.js should downlevel webp format to jpeg for old Safari", - "with squoosh dev support with next.config.js should emit blur svg when width is 8 in dev but not prod", - "with squoosh dev support with next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with squoosh dev support with next.config.js should error if the image file does not exist", - "with squoosh dev support with next.config.js should error if the resource isn't a valid image", - "with squoosh dev support with next.config.js should fail when domain is not defined in next.config.js", - "with squoosh dev support with next.config.js should fail when internal url is not an image", - "with squoosh dev support with next.config.js should fail when q is greater than 100", - "with squoosh dev support with next.config.js should fail when q is less than 1", - "with squoosh dev support with next.config.js should fail when q is missing", - "with squoosh dev support with next.config.js should fail when q is not a number", - "with squoosh dev support with next.config.js should fail when url fails to load an image", - "with squoosh dev support with next.config.js should fail when url has file protocol", - "with squoosh dev support with next.config.js should fail when url has ftp protocol", - "with squoosh dev support with next.config.js should fail when url is missing", - "with squoosh dev support with next.config.js should fail when w is 0", - "with squoosh dev support with next.config.js should fail when w is less than 0", - "with squoosh dev support with next.config.js should fail when w is missing", - "with squoosh dev support with next.config.js should fail when w is not a number", - "with squoosh dev support with next.config.js should fail when width is not in next.config.js", - "with squoosh dev support with next.config.js should handle concurrent requests", - "with squoosh dev support with next.config.js should handle non-ascii characters in image url", - "with squoosh dev support with next.config.js should maintain animated gif", - "with squoosh dev support with next.config.js should maintain animated png", - "with squoosh dev support with next.config.js should maintain animated png 2", - "with squoosh dev support with next.config.js should maintain animated webp", - "with squoosh dev support with next.config.js should maintain bmp", - "with squoosh dev support with next.config.js should maintain ico format", - "with squoosh dev support with next.config.js should maintain jpg format for old Safari", - "with squoosh dev support with next.config.js should maintain png format for old Safari", - "with squoosh dev support with next.config.js should normalize invalid status codes", - "with squoosh dev support with next.config.js should not allow svg with application header", - "with squoosh dev support with next.config.js should not allow svg with comma header", - "with squoosh dev support with next.config.js should not allow svg with uppercase header", - "with squoosh dev support with next.config.js should not allow vector svg", - "with squoosh dev support with next.config.js should not change the color type of a png", - "with squoosh dev support with next.config.js should not have sharp missing warning", - "with squoosh dev support with next.config.js should not have sharp outdated warning", - "with squoosh dev support with next.config.js should not resize if requested width is larger than original source image", - "with squoosh dev support with next.config.js should resize absolute url from localhost", - "with squoosh dev support with next.config.js should resize relative url and new Chrome accept header as avif", - "with squoosh dev support with next.config.js should resize relative url and old Chrome accept header as webp", - "with squoosh dev support with next.config.js should resize relative url and png accept header", - "with squoosh dev support with next.config.js should resize relative url and webp Firefox accept header", - "with squoosh dev support with next.config.js should resize relative url with invalid accept header as gif", - "with squoosh dev support with next.config.js should resize relative url with invalid accept header as png", - "with squoosh dev support with next.config.js should resize relative url with invalid accept header as tiff", - "with squoosh dev support with next.config.js should return home page", - "with squoosh dev support with next.config.js should set 304 status without body when etag matches if-none-match", - "with squoosh dev support with next.config.js should set cache-control to immutable for static images", - "with squoosh dev support with next.config.js should use cache and stale-while-revalidate when query is the same for external image", - "with squoosh dev support with next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with squoosh dev support with next.config.js should use cached image file when parameters are the same for animated gif" - ], - "failed": [], - "pending": [ - "with squoosh Production Mode Server support w/o next.config.js should downlevel avif format to jpeg for old Safari", - "with squoosh Production Mode Server support w/o next.config.js should downlevel webp format to jpeg for old Safari", - "with squoosh Production Mode Server support w/o next.config.js should emit blur svg when width is 8 in dev but not prod", - "with squoosh Production Mode Server support w/o next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with squoosh Production Mode Server support w/o next.config.js should error if the image file does not exist", - "with squoosh Production Mode Server support w/o next.config.js should error if the resource isn't a valid image", - "with squoosh Production Mode Server support w/o next.config.js should fail when domain is not defined in next.config.js", - "with squoosh Production Mode Server support w/o next.config.js should fail when internal url is not an image", - "with squoosh Production Mode Server support w/o next.config.js should fail when q is greater than 100", - "with squoosh Production Mode Server support w/o next.config.js should fail when q is less than 1", - "with squoosh Production Mode Server support w/o next.config.js should fail when q is missing", - "with squoosh Production Mode Server support w/o next.config.js should fail when q is not a number", - "with squoosh Production Mode Server support w/o next.config.js should fail when url has file protocol", - "with squoosh Production Mode Server support w/o next.config.js should fail when url has ftp protocol", - "with squoosh Production Mode Server support w/o next.config.js should fail when url is missing", - "with squoosh Production Mode Server support w/o next.config.js should fail when w is 0", - "with squoosh Production Mode Server support w/o next.config.js should fail when w is less than 0", - "with squoosh Production Mode Server support w/o next.config.js should fail when w is missing", - "with squoosh Production Mode Server support w/o next.config.js should fail when w is not a number", - "with squoosh Production Mode Server support w/o next.config.js should fail when width is not in next.config.js", - "with squoosh Production Mode Server support w/o next.config.js should handle non-ascii characters in image url", - "with squoosh Production Mode Server support w/o next.config.js should have sharp missing warning", - "with squoosh Production Mode Server support w/o next.config.js should maintain animated gif", - "with squoosh Production Mode Server support w/o next.config.js should maintain animated png", - "with squoosh Production Mode Server support w/o next.config.js should maintain animated png 2", - "with squoosh Production Mode Server support w/o next.config.js should maintain animated webp", - "with squoosh Production Mode Server support w/o next.config.js should maintain bmp", - "with squoosh Production Mode Server support w/o next.config.js should maintain ico format", - "with squoosh Production Mode Server support w/o next.config.js should maintain jpg format for old Safari", - "with squoosh Production Mode Server support w/o next.config.js should maintain png format for old Safari", - "with squoosh Production Mode Server support w/o next.config.js should not allow svg with application header", - "with squoosh Production Mode Server support w/o next.config.js should not allow svg with comma header", - "with squoosh Production Mode Server support w/o next.config.js should not allow svg with uppercase header", - "with squoosh Production Mode Server support w/o next.config.js should not allow vector svg", - "with squoosh Production Mode Server support w/o next.config.js should not change the color type of a png", - "with squoosh Production Mode Server support w/o next.config.js should not have sharp outdated warning", - "with squoosh Production Mode Server support w/o next.config.js should not resize if requested width is larger than original source image", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url and old Chrome accept header as webp", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url and png accept header", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url and webp Firefox accept header", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url with invalid accept header as gif", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url with invalid accept header as png", - "with squoosh Production Mode Server support w/o next.config.js should resize relative url with invalid accept header as tiff", - "with squoosh Production Mode Server support w/o next.config.js should return home page", - "with squoosh Production Mode Server support w/o next.config.js should set 304 status without body when etag matches if-none-match", - "with squoosh Production Mode Server support w/o next.config.js should set cache-control to immutable for static images", - "with squoosh Production Mode Server support w/o next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with squoosh Production Mode Server support w/o next.config.js should use cached image file when parameters are the same for animated gif", - "with squoosh Production Mode Server support with next.config.js should automatically detect image type when content-type is octet-stream", - "with squoosh Production Mode Server support with next.config.js should compress avif smaller than webp at q=100", - "with squoosh Production Mode Server support with next.config.js should compress avif smaller than webp at q=50", - "with squoosh Production Mode Server support with next.config.js should compress avif smaller than webp at q=75", - "with squoosh Production Mode Server support with next.config.js should downlevel avif format to jpeg for old Safari", - "with squoosh Production Mode Server support with next.config.js should downlevel webp format to jpeg for old Safari", - "with squoosh Production Mode Server support with next.config.js should emit blur svg when width is 8 in dev but not prod", - "with squoosh Production Mode Server support with next.config.js should emit blur svg when width is less than 8 in dev but not prod", - "with squoosh Production Mode Server support with next.config.js should error if the image file does not exist", - "with squoosh Production Mode Server support with next.config.js should error if the resource isn't a valid image", - "with squoosh Production Mode Server support with next.config.js should fail when domain is not defined in next.config.js", - "with squoosh Production Mode Server support with next.config.js should fail when internal url is not an image", - "with squoosh Production Mode Server support with next.config.js should fail when q is greater than 100", - "with squoosh Production Mode Server support with next.config.js should fail when q is less than 1", - "with squoosh Production Mode Server support with next.config.js should fail when q is missing", - "with squoosh Production Mode Server support with next.config.js should fail when q is not a number", - "with squoosh Production Mode Server support with next.config.js should fail when url fails to load an image", - "with squoosh Production Mode Server support with next.config.js should fail when url has file protocol", - "with squoosh Production Mode Server support with next.config.js should fail when url has ftp protocol", - "with squoosh Production Mode Server support with next.config.js should fail when url is missing", - "with squoosh Production Mode Server support with next.config.js should fail when w is 0", - "with squoosh Production Mode Server support with next.config.js should fail when w is less than 0", - "with squoosh Production Mode Server support with next.config.js should fail when w is missing", - "with squoosh Production Mode Server support with next.config.js should fail when w is not a number", - "with squoosh Production Mode Server support with next.config.js should fail when width is not in next.config.js", - "with squoosh Production Mode Server support with next.config.js should handle concurrent requests", - "with squoosh Production Mode Server support with next.config.js should handle non-ascii characters in image url", - "with squoosh Production Mode Server support with next.config.js should have sharp missing warning", - "with squoosh Production Mode Server support with next.config.js should maintain animated gif", - "with squoosh Production Mode Server support with next.config.js should maintain animated png", - "with squoosh Production Mode Server support with next.config.js should maintain animated png 2", - "with squoosh Production Mode Server support with next.config.js should maintain animated webp", - "with squoosh Production Mode Server support with next.config.js should maintain bmp", - "with squoosh Production Mode Server support with next.config.js should maintain ico format", - "with squoosh Production Mode Server support with next.config.js should maintain jpg format for old Safari", - "with squoosh Production Mode Server support with next.config.js should maintain png format for old Safari", - "with squoosh Production Mode Server support with next.config.js should normalize invalid status codes", - "with squoosh Production Mode Server support with next.config.js should not allow svg with application header", - "with squoosh Production Mode Server support with next.config.js should not allow svg with comma header", - "with squoosh Production Mode Server support with next.config.js should not allow svg with uppercase header", - "with squoosh Production Mode Server support with next.config.js should not allow vector svg", - "with squoosh Production Mode Server support with next.config.js should not change the color type of a png", - "with squoosh Production Mode Server support with next.config.js should not have sharp outdated warning", - "with squoosh Production Mode Server support with next.config.js should not resize if requested width is larger than original source image", - "with squoosh Production Mode Server support with next.config.js should resize absolute url from localhost", - "with squoosh Production Mode Server support with next.config.js should resize relative url and new Chrome accept header as avif", - "with squoosh Production Mode Server support with next.config.js should resize relative url and old Chrome accept header as webp", - "with squoosh Production Mode Server support with next.config.js should resize relative url and png accept header", - "with squoosh Production Mode Server support with next.config.js should resize relative url and webp Firefox accept header", - "with squoosh Production Mode Server support with next.config.js should resize relative url with invalid accept header as gif", - "with squoosh Production Mode Server support with next.config.js should resize relative url with invalid accept header as png", - "with squoosh Production Mode Server support with next.config.js should resize relative url with invalid accept header as tiff", - "with squoosh Production Mode Server support with next.config.js should return home page", - "with squoosh Production Mode Server support with next.config.js should set 304 status without body when etag matches if-none-match", - "with squoosh Production Mode Server support with next.config.js should set cache-control to immutable for static images", - "with squoosh Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for external image", - "with squoosh Production Mode Server support with next.config.js should use cache and stale-while-revalidate when query is the same for internal image", - "with squoosh Production Mode Server support with next.config.js should use cached image file when parameters are the same for animated gif" - ], - "flakey": [], - "runtimeError": false - }, "test/integration/import-assertion/test/index.test.js": { "passed": ["import-assertion dev should handle json assertions"], "failed": [], @@ -15751,6 +15573,13 @@ "flakey": [], "runtimeError": false }, + "test/integration/sharp-api/test/sharp-api.test.ts": { + "passed": [], + "failed": [], + "pending": ["sharp api should handle custom sharp usage"], + "flakey": [], + "runtimeError": false + }, "test/integration/src-dir-support-double-dir/test/index.test.js": { "passed": [ "Dynamic Routing development mode should render from pages",