Skip to content

Commit a365e3c

Browse files
Vadman97claude
andcommitted
fix: pin next dependency to <16 in highlight-next SDK
Next.js 16 changed the NextConfig type to no longer accept function returns, breaking the withHighlightConfig typegen. Pin to <16 until the SDK is updated for Next 16 compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5b93d4b commit a365e3c

File tree

2 files changed

+5
-128
lines changed

2 files changed

+5
-128
lines changed

sdk/highlight-next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@highlight-run/sourcemap-uploader": "workspace:*",
6666
"highlight.run": "workspace:*",
6767
"js-cookie": "^3.0.5",
68-
"next": ">=13"
68+
"next": ">=13 <16"
6969
},
7070
"devDependencies": {
7171
"@cloudflare/workers-types": "^4.20231016.0",

yarn.lock

Lines changed: 4 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -6557,7 +6557,7 @@ __metadata:
65576557
eslint: "npm:^9.26.0"
65586558
highlight.run: "workspace:*"
65596559
js-cookie: "npm:^3.0.5"
6560-
next: "npm:>=13"
6560+
next: "npm:>=13 <16"
65616561
rollup: "npm:^4.4.1"
65626562
semver: "npm:^7.6.3"
65636563
tree-kill: "npm:^1.2.2"
@@ -8889,13 +8889,6 @@ __metadata:
88898889
languageName: node
88908890
linkType: hard
88918891

8892-
"@next/env@npm:16.1.6":
8893-
version: 16.1.6
8894-
resolution: "@next/env@npm:16.1.6"
8895-
checksum: 10/52f17ead23b3dc42e613be469b3a179c9c199f43ab42dfcba1f1bc25adba3d7818b4159ab1c797ddfa64a081c21cc1f753a997c14e164d8a88873e0774395d37
8896-
languageName: node
8897-
linkType: hard
8898-
88998892
"@next/eslint-plugin-next@npm:15.5.11":
89008893
version: 15.5.11
89018894
resolution: "@next/eslint-plugin-next@npm:15.5.11"
@@ -8912,111 +8905,55 @@ __metadata:
89128905
languageName: node
89138906
linkType: hard
89148907

8915-
"@next/swc-darwin-arm64@npm:16.1.6":
8916-
version: 16.1.6
8917-
resolution: "@next/swc-darwin-arm64@npm:16.1.6"
8918-
conditions: os=darwin & cpu=arm64
8919-
languageName: node
8920-
linkType: hard
8921-
89228908
"@next/swc-darwin-x64@npm:15.5.12":
89238909
version: 15.5.12
89248910
resolution: "@next/swc-darwin-x64@npm:15.5.12"
89258911
conditions: os=darwin & cpu=x64
89268912
languageName: node
89278913
linkType: hard
89288914

8929-
"@next/swc-darwin-x64@npm:16.1.6":
8930-
version: 16.1.6
8931-
resolution: "@next/swc-darwin-x64@npm:16.1.6"
8932-
conditions: os=darwin & cpu=x64
8933-
languageName: node
8934-
linkType: hard
8935-
89368915
"@next/swc-linux-arm64-gnu@npm:15.5.12":
89378916
version: 15.5.12
89388917
resolution: "@next/swc-linux-arm64-gnu@npm:15.5.12"
89398918
conditions: os=linux & cpu=arm64 & libc=glibc
89408919
languageName: node
89418920
linkType: hard
89428921

8943-
"@next/swc-linux-arm64-gnu@npm:16.1.6":
8944-
version: 16.1.6
8945-
resolution: "@next/swc-linux-arm64-gnu@npm:16.1.6"
8946-
conditions: os=linux & cpu=arm64 & libc=glibc
8947-
languageName: node
8948-
linkType: hard
8949-
89508922
"@next/swc-linux-arm64-musl@npm:15.5.12":
89518923
version: 15.5.12
89528924
resolution: "@next/swc-linux-arm64-musl@npm:15.5.12"
89538925
conditions: os=linux & cpu=arm64 & libc=musl
89548926
languageName: node
89558927
linkType: hard
89568928

8957-
"@next/swc-linux-arm64-musl@npm:16.1.6":
8958-
version: 16.1.6
8959-
resolution: "@next/swc-linux-arm64-musl@npm:16.1.6"
8960-
conditions: os=linux & cpu=arm64 & libc=musl
8961-
languageName: node
8962-
linkType: hard
8963-
89648929
"@next/swc-linux-x64-gnu@npm:15.5.12":
89658930
version: 15.5.12
89668931
resolution: "@next/swc-linux-x64-gnu@npm:15.5.12"
89678932
conditions: os=linux & cpu=x64 & libc=glibc
89688933
languageName: node
89698934
linkType: hard
89708935

8971-
"@next/swc-linux-x64-gnu@npm:16.1.6":
8972-
version: 16.1.6
8973-
resolution: "@next/swc-linux-x64-gnu@npm:16.1.6"
8974-
conditions: os=linux & cpu=x64 & libc=glibc
8975-
languageName: node
8976-
linkType: hard
8977-
89788936
"@next/swc-linux-x64-musl@npm:15.5.12":
89798937
version: 15.5.12
89808938
resolution: "@next/swc-linux-x64-musl@npm:15.5.12"
89818939
conditions: os=linux & cpu=x64 & libc=musl
89828940
languageName: node
89838941
linkType: hard
89848942

8985-
"@next/swc-linux-x64-musl@npm:16.1.6":
8986-
version: 16.1.6
8987-
resolution: "@next/swc-linux-x64-musl@npm:16.1.6"
8988-
conditions: os=linux & cpu=x64 & libc=musl
8989-
languageName: node
8990-
linkType: hard
8991-
89928943
"@next/swc-win32-arm64-msvc@npm:15.5.12":
89938944
version: 15.5.12
89948945
resolution: "@next/swc-win32-arm64-msvc@npm:15.5.12"
89958946
conditions: os=win32 & cpu=arm64
89968947
languageName: node
89978948
linkType: hard
89988949

8999-
"@next/swc-win32-arm64-msvc@npm:16.1.6":
9000-
version: 16.1.6
9001-
resolution: "@next/swc-win32-arm64-msvc@npm:16.1.6"
9002-
conditions: os=win32 & cpu=arm64
9003-
languageName: node
9004-
linkType: hard
9005-
90068950
"@next/swc-win32-x64-msvc@npm:15.5.12":
90078951
version: 15.5.12
90088952
resolution: "@next/swc-win32-x64-msvc@npm:15.5.12"
90098953
conditions: os=win32 & cpu=x64
90108954
languageName: node
90118955
linkType: hard
90128956

9013-
"@next/swc-win32-x64-msvc@npm:16.1.6":
9014-
version: 16.1.6
9015-
resolution: "@next/swc-win32-x64-msvc@npm:16.1.6"
9016-
conditions: os=win32 & cpu=x64
9017-
languageName: node
9018-
linkType: hard
9019-
90208957
"@ngtools/webpack@npm:19.2.19":
90218958
version: 19.2.19
90228959
resolution: "@ngtools/webpack@npm:19.2.19"
@@ -19756,7 +19693,7 @@ __metadata:
1975619693
languageName: node
1975719694
linkType: hard
1975819695

19759-
"baseline-browser-mapping@npm:^2.8.3, baseline-browser-mapping@npm:^2.9.0":
19696+
"baseline-browser-mapping@npm:^2.9.0":
1976019697
version: 2.9.19
1976119698
resolution: "baseline-browser-mapping@npm:2.9.19"
1976219699
bin:
@@ -34417,67 +34354,7 @@ __metadata:
3441734354
languageName: node
3441834355
linkType: hard
3441934356

34420-
"next@npm:>=13":
34421-
version: 16.1.6
34422-
resolution: "next@npm:16.1.6"
34423-
dependencies:
34424-
"@next/env": "npm:16.1.6"
34425-
"@next/swc-darwin-arm64": "npm:16.1.6"
34426-
"@next/swc-darwin-x64": "npm:16.1.6"
34427-
"@next/swc-linux-arm64-gnu": "npm:16.1.6"
34428-
"@next/swc-linux-arm64-musl": "npm:16.1.6"
34429-
"@next/swc-linux-x64-gnu": "npm:16.1.6"
34430-
"@next/swc-linux-x64-musl": "npm:16.1.6"
34431-
"@next/swc-win32-arm64-msvc": "npm:16.1.6"
34432-
"@next/swc-win32-x64-msvc": "npm:16.1.6"
34433-
"@swc/helpers": "npm:0.5.15"
34434-
baseline-browser-mapping: "npm:^2.8.3"
34435-
caniuse-lite: "npm:^1.0.30001579"
34436-
postcss: "npm:8.4.31"
34437-
sharp: "npm:^0.34.4"
34438-
styled-jsx: "npm:5.1.6"
34439-
peerDependencies:
34440-
"@opentelemetry/api": ^1.1.0
34441-
"@playwright/test": ^1.51.1
34442-
babel-plugin-react-compiler: "*"
34443-
react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
34444-
react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
34445-
sass: ^1.3.0
34446-
dependenciesMeta:
34447-
"@next/swc-darwin-arm64":
34448-
optional: true
34449-
"@next/swc-darwin-x64":
34450-
optional: true
34451-
"@next/swc-linux-arm64-gnu":
34452-
optional: true
34453-
"@next/swc-linux-arm64-musl":
34454-
optional: true
34455-
"@next/swc-linux-x64-gnu":
34456-
optional: true
34457-
"@next/swc-linux-x64-musl":
34458-
optional: true
34459-
"@next/swc-win32-arm64-msvc":
34460-
optional: true
34461-
"@next/swc-win32-x64-msvc":
34462-
optional: true
34463-
sharp:
34464-
optional: true
34465-
peerDependenciesMeta:
34466-
"@opentelemetry/api":
34467-
optional: true
34468-
"@playwright/test":
34469-
optional: true
34470-
babel-plugin-react-compiler:
34471-
optional: true
34472-
sass:
34473-
optional: true
34474-
bin:
34475-
next: dist/bin/next
34476-
checksum: 10/00322378df865d4f00d232f8b1f42f4f0ad114e1d14f660d483b01ccd533459af6202e2f80067bf41a97aa0c99c3ae1d21a0aef2c081b0a9f456b978de4bf757
34477-
languageName: node
34478-
linkType: hard
34479-
34480-
"next@npm:^15.5.10":
34357+
"next@npm:>=13 <16, next@npm:^15.5.10":
3448134358
version: 15.5.12
3448234359
resolution: "next@npm:15.5.12"
3448334360
dependencies:
@@ -40458,7 +40335,7 @@ __metadata:
4045840335
languageName: node
4045940336
linkType: hard
4046040337

40461-
"sharp@npm:^0.34.3, sharp@npm:^0.34.4, sharp@npm:^0.34.5":
40338+
"sharp@npm:^0.34.3, sharp@npm:^0.34.5":
4046240339
version: 0.34.5
4046340340
resolution: "sharp@npm:0.34.5"
4046440341
dependencies:

0 commit comments

Comments
 (0)