[playground] Downgrade Next.js to a secure version (#35317)
Was bumped to a canary in https://github.com/facebook/react/pull/34499/ which got never released as stable. Presumeably to use `Activity` which only made it into Activity in later Next.js releases. However, `Activity` never ended up being used due to incompatibilities with Monaco Editor. Downgrading should be safe. Downgrading to fix https://github.com/vercel/next.js/security/advisories/GHSA-9qr9-h5gf-34mp. This will allow new deploys since Vercel is currently blocking new deploys of unsafe version --------- Co-authored-by: Eugene Choi <4eugenechoi@gmail.com>
Sebastian "Sebbie" Silbermann committed
Dec 8, 2025 at 20:06 UTC
55480b4d228986e502f4651f8e53a6f264a1858e
6 files changed
+77
-71
compiler/apps/playground/.gitignore
+1
@@ -12,6 +12,7 @@
12
# next.js
13
/.next/
14
/out/
15
+/next-env.d.ts
16
17
# production
18
/build
compiler/apps/playground/components/Editor/ConfigEditor.tsx
+18
-7
@@ -14,7 +14,6 @@ import React, {
14
unstable_ViewTransition as ViewTransition,
15
unstable_addTransitionType as addTransitionType,
16
startTransition,
17
- Activity,
17
} from 'react';
18
import {Resizable} from 're-resizable';
19
import {useStore, useStoreDispatch} from '../StoreContext';
@@ -34,9 +33,14 @@ export default function ConfigEditor({
33
}): React.ReactElement {
34
const [isExpanded, setIsExpanded] = useState(false);
35
36
+ // TODO: Add back <Activity> after upgrading next.js
37
return (
38
<>
39
- <Activity mode={isExpanded ? 'visible' : 'hidden'}>
39
+ <div
40
+ style={{
41
+ display: isExpanded ? 'block' : 'none',
42
+ }}>
43
+ {/* <Activity mode={isExpanded ? 'visible' : 'hidden'}> */}
44
<ExpandedEditor
45
onToggle={() => {
46
startTransition(() => {
@@ -46,8 +50,13 @@ export default function ConfigEditor({
50
}}
51
formattedAppliedConfig={formattedAppliedConfig}
52
/>
49
- </Activity>
50
- <Activity mode={isExpanded ? 'hidden' : 'visible'}>
53
+ </div>
54
+ <div
55
+ style={{
56
+ display: !isExpanded ? 'block' : 'none',
57
+ }}>
58
+ {/* </Activity>
59
+ <Activity mode={isExpanded ? 'hidden' : 'visible'}></Activity> */}
60
<CollapsedEditor
61
onToggle={() => {
62
startTransition(() => {
@@ -56,7 +65,8 @@ export default function ConfigEditor({
65
});
66
}}
67
/>
59
- </Activity>
68
+ </div>
69
+ {/* </Activity> */}
70
</>
71
);
72
}
@@ -116,8 +126,9 @@ function ExpandedEditor({
126
127
return (
128
<ViewTransition
119
- enter={{[CONFIG_PANEL_TRANSITION]: 'slide-in', default: 'none'}}
120
- exit={{[CONFIG_PANEL_TRANSITION]: 'slide-out', default: 'none'}}>
129
+ update={{[CONFIG_PANEL_TRANSITION]: 'slide-in', default: 'none'}}>
130
+ {/* enter={{[CONFIG_PANEL_TRANSITION]: 'slide-in', default: 'none'}}
131
+ exit={{[CONFIG_PANEL_TRANSITION]: 'slide-out', default: 'none'}}> */}
132
<Resizable
133
minWidth={300}
134
maxWidth={600}
compiler/apps/playground/next-env.d.ts
deleted
-6
@@ -1,6 +0,0 @@
1
-/// <reference types="next" />
2
-/// <reference types="next/image-types/global" />
3
-import "./.next/types/routes.d.ts";
4
-
5
-// NOTE: This file should not be edited
6
-// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
compiler/apps/playground/package.json
+1
-1
@@ -35,7 +35,7 @@
35
"lru-cache": "^11.2.2",
36
"lz-string": "^1.5.0",
37
"monaco-editor": "^0.52.0",
38
- "next": "15.6.0-canary.7",
38
+ "next": "15.5.7",
39
"notistack": "^3.0.0-alpha.7",
40
"prettier": "^3.3.3",
41
"pretty-format": "^29.3.1",
compiler/apps/playground/tsconfig.json
+1
-1
@@ -19,7 +19,7 @@
19
"moduleResolution": "node",
20
"resolveJsonModule": true,
21
"isolatedModules": true,
22
- "jsx": "react-jsx",
22
+ "jsx": "preserve",
23
"incremental": true,
24
"plugins": [
25
{
compiler/apps/playground/yarn.lock
+56
-56
@@ -715,10 +715,10 @@
715
dependencies:
716
"@monaco-editor/loader" "^1.6.1"
717
718
-"@next/env@15.6.0-canary.7":
719
- version "15.6.0-canary.7"
720
- resolved "https://registry.yarnpkg.com/@next/env/-/env-15.6.0-canary.7.tgz#cdbf2967a9437ef09eef755e203f315acc4d8d8f"
721
- integrity sha512-LNZ7Yd3Cl9rKvjYdeJmszf2HmSDP76SQmfafKep2Ux16ZXKoN5OjwVHFTltKNdsB3vt2t+XJzLP2rhw5lBoFBA==
718
+"@next/env@15.5.7":
719
+ version "15.5.7"
720
+ resolved "https://registry.yarnpkg.com/@next/env/-/env-15.5.7.tgz#4168db34ae3bc9fd9ad3b951d327f4cfc38d4362"
721
+ integrity sha512-4h6Y2NyEkIEN7Z8YxkA27pq6zTkS09bUSYC0xjd0NpwFxjnIKeZEeH591o5WECSmjpUhLn3H2QLJcDye3Uzcvg==
722
723
"@next/eslint-plugin-next@15.5.2":
724
version "15.5.2"
@@ -727,45 +727,45 @@
727
dependencies:
728
fast-glob "3.3.1"
729
730
-"@next/swc-darwin-arm64@15.6.0-canary.7":
731
- version "15.6.0-canary.7"
732
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.6.0-canary.7.tgz#628cd34ce9120000f1cb5b08963426431174fc57"
733
- integrity sha512-POsBrxhrR3qvqXV+JZ6ZoBc8gJf8rhYe+OedceI1piPVqtJYOJa3EB4eaqcc+kMsllKRrH/goNlhLwtyhE+0Qg==
734
-
735
-"@next/swc-darwin-x64@15.6.0-canary.7":
736
- version "15.6.0-canary.7"
737
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.6.0-canary.7.tgz#37d4ebab14da74a2f8028daf6d76aab410153e06"
738
- integrity sha512-lmk9ysBuSiPlAJZTCo/3O4mXNFosg6EDIf4GrmynIwCG2as6/KxzyD1WqFp56Exp8eFDjP7SFapD10sV43vCsA==
739
-
740
-"@next/swc-linux-arm64-gnu@15.6.0-canary.7":
741
- version "15.6.0-canary.7"
742
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.6.0-canary.7.tgz#ce700cc0e0d24763136838223105a524b36694fa"
743
- integrity sha512-why8k6d0SBm3AKoOD5S7ir3g+BF34l9oFKIoZrLaZaKBvNGpFcjc7Ovc2TunNMeaMJzv9k1dHYSap0EI5oSuzg==
744
-
745
-"@next/swc-linux-arm64-musl@15.6.0-canary.7":
746
- version "15.6.0-canary.7"
747
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.6.0-canary.7.tgz#c791b8e15bf2c338b4cc0387fe7afb3ef83ecfcf"
748
- integrity sha512-HzvTRsKvYj32Va4YuJN3n3xOxvk+6QwB63d/EsgmdkeA/vrqciUAmJDYpuzZEvRc3Yp2nyPq8KZxtHAr6ISZ2Q==
749
-
750
-"@next/swc-linux-x64-gnu@15.6.0-canary.7":
751
- version "15.6.0-canary.7"
752
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.6.0-canary.7.tgz#c01c3a3d8e71660c49298dd053d078379b6b5919"
753
- integrity sha512-6yRFrg2qWXOqa+1BI53J9EmHWFzKg9U2r+5R7n7BFUp8PH5SC92WBsmYTnh/RkvAYvdupiVzMervwwswCs6kFg==
754
-
755
-"@next/swc-linux-x64-musl@15.6.0-canary.7":
756
- version "15.6.0-canary.7"
757
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.6.0-canary.7.tgz#3f4b39faef4a5f88b13e4c726b008ddc9717f819"
758
- integrity sha512-O/JjvOvNK/Wao/OIQaA6evDkxkmFFQgJ1/hI1dVk6/PAeKmW2/Q+6Dodh97eAkOwedS1ZdQl2mojf87TzLvzdQ==
759
-
760
-"@next/swc-win32-arm64-msvc@15.6.0-canary.7":
761
- version "15.6.0-canary.7"
762
- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.6.0-canary.7.tgz#9bc5da0907b7ce67eedda02a6d56a09d9a539ccf"
763
- integrity sha512-p9DvrDgnePofZCtiWVY7qZtwXxiOGJlAyy2LoGPYSGOUDhjbTG8j6XMUFXpV9UwpH+l7st522psO1BVzbpT8IQ==
764
-
765
-"@next/swc-win32-x64-msvc@15.6.0-canary.7":
766
- version "15.6.0-canary.7"
767
- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.6.0-canary.7.tgz#5b271c591ccbe67d5fa966dd22db86c547414fd1"
768
- integrity sha512-f1ywT3xWu4StWKA1mZRyGfelu/h+W0OEEyBxQNXzXyYa0VGZb9LyCNb5cYoNKBm0Bw18Hp1PVe0bHuusemGCcw==
730
+"@next/swc-darwin-arm64@15.5.7":
731
+ version "15.5.7"
732
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.5.7.tgz#f0c9ccfec2cd87cbd4b241ce4c779a7017aed958"
733
+ integrity sha512-IZwtxCEpI91HVU/rAUOOobWSZv4P2DeTtNaCdHqLcTJU4wdNXgAySvKa/qJCgR5m6KI8UsKDXtO2B31jcaw1Yw==
734
+
735
+"@next/swc-darwin-x64@15.5.7":
736
+ version "15.5.7"
737
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-15.5.7.tgz#18009e9fcffc5c0687cc9db24182ddeac56280d9"
738
+ integrity sha512-UP6CaDBcqaCBuiq/gfCEJw7sPEoX1aIjZHnBWN9v9qYHQdMKvCKcAVs4OX1vIjeE+tC5EIuwDTVIoXpUes29lg==
739
+
740
+"@next/swc-linux-arm64-gnu@15.5.7":
741
+ version "15.5.7"
742
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.5.7.tgz#fe7c7e08264cf522d4e524299f6d3e63d68d579a"
743
+ integrity sha512-NCslw3GrNIw7OgmRBxHtdWFQYhexoUCq+0oS2ccjyYLtcn1SzGzeM54jpTFonIMUjNbHmpKpziXnpxhSWLcmBA==
744
+
745
+"@next/swc-linux-arm64-musl@15.5.7":
746
+ version "15.5.7"
747
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.5.7.tgz#94228fe293475ec34a5a54284e1056876f43a3cf"
748
+ integrity sha512-nfymt+SE5cvtTrG9u1wdoxBr9bVB7mtKTcj0ltRn6gkP/2Nu1zM5ei8rwP9qKQP0Y//umK+TtkKgNtfboBxRrw==
749
+
750
+"@next/swc-linux-x64-gnu@15.5.7":
751
+ version "15.5.7"
752
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.5.7.tgz#078c71201dfe7fcfb8fa6dc92aae6c94bc011cdc"
753
+ integrity sha512-hvXcZvCaaEbCZcVzcY7E1uXN9xWZfFvkNHwbe/n4OkRhFWrs1J1QV+4U1BN06tXLdaS4DazEGXwgqnu/VMcmqw==
754
+
755
+"@next/swc-linux-x64-musl@15.5.7":
756
+ version "15.5.7"
757
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.5.7.tgz#72947f5357f9226292353e0bb775643da3c7a182"
758
+ integrity sha512-4IUO539b8FmF0odY6/SqANJdgwn1xs1GkPO5doZugwZ3ETF6JUdckk7RGmsfSf7ws8Qb2YB5It33mvNL/0acqA==
759
+
760
+"@next/swc-win32-arm64-msvc@15.5.7":
761
+ version "15.5.7"
762
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.5.7.tgz#397b912cd51c6a80e32b9c0507ecd82514353941"
763
+ integrity sha512-CpJVTkYI3ZajQkC5vajM7/ApKJUOlm6uP4BknM3XKvJ7VXAvCqSjSLmM0LKdYzn6nBJVSjdclx8nYJSa3xlTgQ==
764
+
765
+"@next/swc-win32-x64-msvc@15.5.7":
766
+ version "15.5.7"
767
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.5.7.tgz#e02b543d9dc6c1631d4ac239cb1177245dfedfe4"
768
+ integrity sha512-gMzgBX164I6DN+9/PGA+9dQiwmTkE4TloBNx8Kv9UiGARsr9Nba7IpcBRA1iTV9vwlYnrE3Uy6I7Aj6qLjQuqw==
769
770
"@nodelib/fs.scandir@2.1.5":
771
version "2.1.5"
@@ -3204,25 +3204,25 @@ natural-compare@^1.4.0:
3204
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
3205
integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==
3206
3207
-next@15.6.0-canary.7:
3208
- version "15.6.0-canary.7"
3209
- resolved "https://registry.yarnpkg.com/next/-/next-15.6.0-canary.7.tgz#bfc2ac3c9a78e23d550c303d18247a263e6b5bc1"
3210
- integrity sha512-4ukX2mxat9wWT6E0Gw/3TOR9ULV1q399E42F86cwsPSFgTWa04ABhcTqO0r9J/QR1YWPR8WEgh9qUzmWA/1yEw==
3207
+next@15.5.7:
3208
+ version "15.5.7"
3209
+ resolved "https://registry.yarnpkg.com/next/-/next-15.5.7.tgz#4507700b2bbcaf2c9fb7a9ad25c0dac2ba4a9a75"
3210
+ integrity sha512-+t2/0jIJ48kUpGKkdlhgkv+zPTEOoXyr60qXe68eB/pl3CMJaLeIGjzp5D6Oqt25hCBiBTt8wEeeAzfJvUKnPQ==
3211
dependencies:
3212
- "@next/env" "15.6.0-canary.7"
3212
+ "@next/env" "15.5.7"
3213
"@swc/helpers" "0.5.15"
3214
caniuse-lite "^1.0.30001579"
3215
postcss "8.4.31"
3216
styled-jsx "5.1.6"
3217
optionalDependencies:
3218
- "@next/swc-darwin-arm64" "15.6.0-canary.7"
3219
- "@next/swc-darwin-x64" "15.6.0-canary.7"
3220
- "@next/swc-linux-arm64-gnu" "15.6.0-canary.7"
3221
- "@next/swc-linux-arm64-musl" "15.6.0-canary.7"
3222
- "@next/swc-linux-x64-gnu" "15.6.0-canary.7"
3223
- "@next/swc-linux-x64-musl" "15.6.0-canary.7"
3224
- "@next/swc-win32-arm64-msvc" "15.6.0-canary.7"
3225
- "@next/swc-win32-x64-msvc" "15.6.0-canary.7"
3218
+ "@next/swc-darwin-arm64" "15.5.7"
3219
+ "@next/swc-darwin-x64" "15.5.7"
3220
+ "@next/swc-linux-arm64-gnu" "15.5.7"
3221
+ "@next/swc-linux-arm64-musl" "15.5.7"
3222
+ "@next/swc-linux-x64-gnu" "15.5.7"
3223
+ "@next/swc-linux-x64-musl" "15.5.7"
3224
+ "@next/swc-win32-arm64-msvc" "15.5.7"
3225
+ "@next/swc-win32-x64-msvc" "15.5.7"
3226
sharp "^0.34.3"
3227
3228
node-releases@^2.0.18: