An open source design system that's fully customizable and agent ready
TypeScript
Revert "chore(deps): bump next from 15.5.15 to 16.2.4 (#1807)" (#1822)
Cindy Zhang37e1ee716470
diff --git a/apps/example-nextjs-source/package.json b/apps/example-nextjs-source/package.jsonindex 7e00c94204..5b03e7b778 100644--- a/apps/example-nextjs-source/package.json+++ b/apps/example-nextjs-source/package.json@@ -11,7 +11,7 @@"@stylexjs/stylex": "^0.18.3","@xds/core": "*","@xds/theme-default": "*",- "next": "^16.2.4",+ "next": "^15.5.15","react": "^19.2.5","react-dom": "^19.2.5"},diff --git a/apps/example-nextjs-stylex/package.json b/apps/example-nextjs-stylex/package.jsonindex 6f9b55756f..929d58514d 100644--- a/apps/example-nextjs-stylex/package.json+++ b/apps/example-nextjs-stylex/package.json@@ -11,7 +11,7 @@"@stylexjs/stylex": "^0.18.3","@xds/core": "*","@xds/theme-default": "*",- "next": "^16.2.4",+ "next": "^15.5.15","react": "^19.2.5","react-dom": "^19.2.5"},diff --git a/apps/example-nextjs-tailwind/package.json b/apps/example-nextjs-tailwind/package.jsonindex 6237ed4a65..7190ec28ad 100644--- a/apps/example-nextjs-tailwind/package.json+++ b/apps/example-nextjs-tailwind/package.json@@ -10,7 +10,7 @@"dependencies": {"@xds/core": "*","@xds/theme-default": "*",- "next": "^16.2.4",+ "next": "^15.5.15","react": "^19.2.5","react-dom": "^19.2.5"},diff --git a/apps/example-nextjs/package.json b/apps/example-nextjs/package.jsonindex 83738ff7c9..c274341eed 100644--- a/apps/example-nextjs/package.json+++ b/apps/example-nextjs/package.json@@ -10,7 +10,7 @@"dependencies": {"@xds/core": "*","@xds/theme-default": "*",- "next": "^16.2.4",+ "next": "^15.5.15","react": "^19.2.5","react-dom": "^19.2.5"},diff --git a/apps/sandbox/package.json b/apps/sandbox/package.jsonindex 003b2d8cb3..0f88e28d01 100644--- a/apps/sandbox/package.json+++ b/apps/sandbox/package.json@@ -26,7 +26,7 @@"@xds/theme-meta": "*","@xds/theme-whatsapp": "*","@xds/theme-daily": "*",- "next": "^16.2.4",+ "next": "^15.5.15","react": "^19.2.5","react-dom": "^19.2.5","recharts": "^2.15.3"diff --git a/packages/build/src/next.js b/packages/build/src/next.jsindex 49a3be66aa..cb15848f1e 100644--- a/packages/build/src/next.js+++ b/packages/build/src/next.js@@ -15,8 +15,7 @@/*** Wraps a Next.js config to enable XDS source builds.* - Adds transpilePackages for @xds/* packages- * - Sets conditionNames to resolve source exports (webpack)- * - Adds empty turbopack config for Next.js 16+ compatibility+ * - Sets conditionNames to resolve source exports*/function withXDS(nextConfig = {}) {const xdsPackages = [@@ -32,15 +31,10 @@ function withXDS(nextConfig = {}) {const merged = Array.from(new Set([...existingTranspile, ...xdsPackages]));const existingWebpack = nextConfig.webpack;- const existingTurbopack = nextConfig.turbopack;return {...nextConfig,transpilePackages: merged,- // Next.js 16+ defaults to Turbopack and errors if only webpack config- // is present. An empty turbopack config silences the check, and- // transpilePackages handles @xds/* source resolution for both bundlers.- turbopack: existingTurbopack || {},webpack: (config, context) => {// Resolve to source exportsconfig.resolve.conditionNames = [diff --git a/yarn.lock b/yarn.lockindex 93ecbc6ed6..41f1c359b3 100644--- a/yarn.lock+++ b/yarn.lock@@ -1750,50 +1750,50 @@"@emnapi/runtime" "^1.7.1""@tybys/wasm-util" "^0.10.1"-"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/env/-/env-16.2.4.tgz#b95793a9f235744c97fa805c99cb033a6ff51ece"- integrity sha512-dKkkOzOSwFYe5RX6y26fZgkSpVAlIOJKQHIiydQcrWH6y/97+RceSOAdjZ14Qa3zLduVUy0TXcn+EiM6t4rPgw==--"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-16.2.4.tgz#c80ad82f707b58e083fad460e9ba32ab3001ded8"- integrity sha512-OXTFFox5EKN1Ym08vfrz+OXxmCcEjT4SFMbNRsWZE99dMqt2Kcusl5MqPXcW232RYkMLQTy0hqgAMEsfEd/l2A==--"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-16.2.4.tgz#59a79f846130b36687ae348bc07b6b2fe4ed3da8"- integrity sha512-XhpVnUfmYWvD3YrXu55XdcAkQtOnvaI6wtQa8fuF5fGoKoxIUZ0kWPtcOfqJEWngFF/lOS9l3+O9CcownhiQxQ==--"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-16.2.4.tgz#886bcb7b164596f185724be96a2a753d5538bed8"- integrity sha512-Mx/tjlNA3G8kg14QvuGAJ4xBwPk1tUHq56JxZ8CXnZwz1Etz714soCEzGQQzVMz4bEnGPowzkV6Xrp6wAkEWOQ==--"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-16.2.4.tgz#9a5d1ba1416c059cec3831dcb9a14b79a7f1477e"- integrity sha512-iVMMp14514u7Nup2umQS03nT/bN9HurK8ufylC3FZNykrwjtx7V1A7+4kvhbDSCeonTVqV3Txnv0Lu+m2oDXNg==--"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-16.2.4.tgz#2d35270e904909b38ec84d594706c2b8acfa19fa"- integrity sha512-EZOvm1aQWgnI/N/xcWOlnS3RQBk0VtVav5Zo7n4p0A7UKyTDx047k8opDbXgBpHl4CulRqRfbw3QrX2w5UOXMQ==--"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-16.2.4.tgz#31c750a8cc4b350d2e839c95942361c8b35b9ac9"- integrity sha512-h9FxsngCm9cTBf71AR4fGznDEDx1hS7+kSEiIRjq5kO1oXWm07DxVGZjCvk0SGx7TSjlUqhI8oOyz7NfwAdPoA==--"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-16.2.4.tgz#eeb6e0d1f58b88b40dcdd8283689fa065b645a25"- integrity sha512-3NdJV5OXMSOeJYijX+bjaLge3mJBlh4ybydbT4GFoB/2hAojWHtMhl3CYlYoMrjPuodp0nzFVi4Tj2+WaMg+Ow==--"@next/[email protected]":- version "16.2.4"- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-16.2.4.tgz#8252d02b505be5025dee62628859761e0bb11597"- integrity sha512-kMVGgsqhO5YTYODD9IPGGhA6iprWidQckK3LmPeW08PIFENRmgfb4MjXHO+p//d+ts2rpjvK5gXWzXSMrPl9cw==+"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/env/-/env-15.5.15.tgz#24b29b94852da52dd8e10f3ea0382a3ddb8733a6"+ integrity sha512-vcmyu5/MyFzN7CdqRHO3uHO44p/QPCZkuTUXroeUmhNP8bL5PHFEhik22JUazt+CDDoD6EpBYRCaS2pISL+/hg==++"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.15.tgz#c8de0985b21b6914c17097d548dbf9b95e12bc57"+ integrity sha512-6PvFO2Tzt10GFK2Ro9tAVEtacMqRmTarYMFKAnV2vYMdwWc73xzmDQyAV7SwEdMhzmiRoo7+m88DuiXlJlGeaw==++"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.5.15.tgz#e237a2c7991e729a8b5051e019b3ea1ea16a9071"+ integrity sha512-G+YNV+z6FDZTp/+IdGyIMFqalBTaQSnvAA+X/hrt+eaTRFSznRMz9K7rTmzvM6tDmKegNtyzgufZW0HwVzEqaQ==++"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.5.15.tgz#d9e52844ec5585c75ec23e9eb9b2a1b4ab37780c"+ integrity sha512-eVkrMcVIBqGfXB+QUC7jjZ94Z6uX/dNStbQFabewAnk13Uy18Igd1YZ/GtPRzdhtm7QwC0e6o7zOQecul4iC1w==++"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.5.15.tgz#4f727669c0070bafc8ace8686600c49b9d4de777"+ integrity sha512-RwSHKMQ7InLy5GfkY2/n5PcFycKA08qI1VST78n09nN36nUPqCvGSMiLXlfUmzmpQpF6XeBYP2KRWHi0UW3uNg==++"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.5.15.tgz#25435233caf9bb60e3be3e7291f0c2e7b9424e4e"+ integrity sha512-nplqvY86LakS+eeiuWsNWvfmK8pFcOEW7ZtVRt4QH70lL+0x6LG/m1OpJ/tvrbwjmR8HH9/fH2jzW1GlL03TIg==++"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.5.15.tgz#951dab9e9679365cbeb6dd88d3c77e840a4c14ae"+ integrity sha512-eAgl9NKQ84/sww0v81DQINl/vL2IBxD7sMybd0cWRw6wqgouVI53brVRBrggqBRP/NWeIAE1dm5cbKYoiMlqDQ==++"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.5.15.tgz#36d4c6df0ac194a5d3cc2e7f16c62a5b31ab0671"+ integrity sha512-GJVZC86lzSquh0MtvZT+L7G8+jMnJcldloOjA8Kf3wXvBrvb6OGe2MzPuALxFshSm/IpwUtD2mIoof39ymf52A==++"@next/[email protected]":+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.5.15.tgz#d2ad3b9506c761ed07297acaeb00fb2c694c41f8"+ integrity sha512-nFucjVdwlFqxh/JG3hWSJ4p8+YJV7Ii8aPDuBQULB6DzUF4UNZETXLfEUk+oI2zEznWWULPt7MeuTE6xtK1HSA=="@nodelib/[email protected]":version "2.1.5"@@ -3295,10 +3295,15 @@ balanced-match@^1.0.0:resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz"integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==-baseline-browser-mapping@^2.10.12, baseline-browser-mapping@^2.9.0, baseline-browser-mapping@^2.9.19:- version "2.10.22"- resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.22.tgz#32cbdb3116fca8bdfe084681598cc71b206fbeca"- integrity sha512-6qruVrb5rse6WylFkU0FhBKKGuecWseqdpQfhkawn6ztyk2QlfwSRjsDxMCLJrkfmfN21qvhl9ABgaMeRkuwww==+baseline-browser-mapping@^2.10.12:+ version "2.10.19"+ resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.19.tgz#7697721c22f94f66195d0c34299b1a91e3299493"+ integrity sha512-qCkNLi2sfBOn8XhZQ0FXsT1Ki/Yo5P90hrkRamVFRS7/KV9hpfA4HkoWNU152+8w0zPjnxo5psx5NL3PSGgv5g==++baseline-browser-mapping@^2.9.0:+ version "2.9.14"+ resolved "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.14.tgz"+ integrity sha512-B0xUquLkiGLgHhpPBqvl7GWegWBUNuujQ6kXd/r1U38ElPT6Ok8KZ8e+FpUGEc2ZoRQUzq/aUnaKFc/svWUGSg==version "1.0.0"@@ -3375,7 +3380,12 @@ cac@^6.7.14:resolved "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz"integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==-caniuse-lite@^1.0.30001579, caniuse-lite@^1.0.30001759, caniuse-lite@^1.0.30001782, caniuse-lite@^1.0.30001787:+caniuse-lite@^1.0.30001579, caniuse-lite@^1.0.30001759:+ version "1.0.30001769"+ resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001769.tgz"+ integrity sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==++caniuse-lite@^1.0.30001782, caniuse-lite@^1.0.30001787:version "1.0.30001788"resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001788.tgz#31e97d1bfec332b3f2d7eea7781460c97629b3bf"integrity sha512-6q8HFp+lOQtcf7wBK+uEenxymVWkGKkjFpCvw5W25cmMwEDU45p1xQFBQv8JDlMMry7eNxyBaR+qxgmTUZkIRQ==@@ -5159,27 +5169,26 @@ neo-async@^2.5.0:resolved "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz"integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==-next@^16.2.4:- version "16.2.4"- resolved "https://registry.yarnpkg.com/next/-/next-16.2.4.tgz#b1f708a283052e8ccb86ef16001d69e558e6ef5f"- integrity sha512-kPvz56wF5frc+FxlHI5qnklCzbq53HTwORaWBGdT0vNoKh1Aya9XC8aPauH4NJxqtzbWsS5mAbctm4cr+EkQ2Q==+next@^15.5.15:+ version "15.5.15"+ resolved "https://registry.yarnpkg.com/next/-/next-15.5.15.tgz#b25a59a232bd992a83da045fa289ee803c23c836"+ integrity sha512-VSqCrJwtLVGwAVE0Sb/yikrQfkwkZW9p+lL/J4+xe+G3ZA+QnWPqgcfH1tDUEuk9y+pthzzVFp4L/U8JerMfMQ==dependencies:- "@next/env" "16.2.4"+ "@next/env" "15.5.15""@swc/helpers" "0.5.15"- baseline-browser-mapping "^2.9.19"caniuse-lite "^1.0.30001579"postcss "8.4.31"styled-jsx "5.1.6"optionalDependencies:- "@next/swc-darwin-arm64" "16.2.4"- "@next/swc-darwin-x64" "16.2.4"- "@next/swc-linux-arm64-gnu" "16.2.4"- "@next/swc-linux-arm64-musl" "16.2.4"- "@next/swc-linux-x64-gnu" "16.2.4"- "@next/swc-linux-x64-musl" "16.2.4"- "@next/swc-win32-arm64-msvc" "16.2.4"- "@next/swc-win32-x64-msvc" "16.2.4"- sharp "^0.34.5"+ "@next/swc-darwin-arm64" "15.5.15"+ "@next/swc-darwin-x64" "15.5.15"+ "@next/swc-linux-arm64-gnu" "15.5.15"+ "@next/swc-linux-arm64-musl" "15.5.15"+ "@next/swc-linux-x64-gnu" "15.5.15"+ "@next/swc-linux-x64-musl" "15.5.15"+ "@next/swc-win32-arm64-msvc" "15.5.15"+ "@next/swc-win32-x64-msvc" "15.5.15"+ sharp "^0.34.3"node-releases@^2.0.27:version "2.0.27"@@ -5747,9 +5756,9 @@ shallow-clone@^3.0.0:dependencies:kind-of "^6.0.2"-sharp@^0.34.5:+sharp@^0.34.3:version "0.34.5"- resolved "https://registry.yarnpkg.com/sharp/-/sharp-0.34.5.tgz#b6f148e4b8c61f1797bde11a9d1cfebbae2c57b0"+ resolved "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz"integrity sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==dependencies:"@img/colour" "^1.0.0"