Merged in chore/nextjs-version (pull request #3530)

Chore/nextjs version

* chore(next/react): update to latest versions

* Correct swc version

* Readme

* No turbopack

* test

* test

* test
This commit is contained in:
Linus Flood
2026-02-03 07:52:04 +00:00
parent 13fd8f81c9
commit 7a604f1250
4 changed files with 105 additions and 83 deletions

View File

@@ -22,13 +22,13 @@
}, },
"dependencies": { "dependencies": {
"@formatjs/intl": "^3.1.6", "@formatjs/intl": "^3.1.6",
"@netlify/plugin-nextjs": "^5.15.1", "@netlify/plugin-nextjs": "^5.15.7",
"@scandic-hotels/booking-flow": "workspace:*", "@scandic-hotels/booking-flow": "workspace:*",
"@scandic-hotels/design-system": "workspace:*", "@scandic-hotels/design-system": "workspace:*",
"@scandic-hotels/tracking": "workspace:*", "@scandic-hotels/tracking": "workspace:*",
"@scandic-hotels/trpc": "workspace:*", "@scandic-hotels/trpc": "workspace:*",
"@sentry/nextjs": "^10.33.0", "@sentry/nextjs": "^10.33.0",
"@swc/plugin-formatjs": "^3.2.2", "@swc/plugin-formatjs": "^8.1.0",
"@t3-oss/env-nextjs": "^0.13.4", "@t3-oss/env-nextjs": "^0.13.4",
"@tanstack/react-query": "^5.75.5", "@tanstack/react-query": "^5.75.5",
"@tanstack/react-query-devtools": "^5.75.5", "@tanstack/react-query-devtools": "^5.75.5",
@@ -36,11 +36,11 @@
"@trpc/server": "^11.1.2", "@trpc/server": "^11.1.2",
"class-variance-authority": "^0.7.1", "class-variance-authority": "^0.7.1",
"iron-session": "^8.0.4", "iron-session": "^8.0.4",
"next": "16.0.10", "next": "16.1.6",
"next-auth": "5.0.0-beta.29", "next-auth": "5.0.0-beta.29",
"react": "19.2.1", "react": "19.2.4",
"react-aria-components": "1.8.0", "react-aria-components": "1.8.0",
"react-dom": "19.2.1", "react-dom": "19.2.4",
"react-intl": "^7.1.11", "react-intl": "^7.1.11",
"server-only": "^0.0.1", "server-only": "^0.0.1",
"usehooks-ts": "3.1.1", "usehooks-ts": "3.1.1",

View File

@@ -16,6 +16,18 @@ yarn workspace @scandic-hotels/design-system build
yarn dev yarn dev
``` ```
To run only scandic web
```bash
yarn dev:web
```
To run only partner sas
```bash
yarn dev:sas
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
### Caching ### Caching

View File

@@ -30,7 +30,7 @@
"@internationalized/date": "^3.8.0", "@internationalized/date": "^3.8.0",
"@netlify/blobs": "^8.1.0", "@netlify/blobs": "^8.1.0",
"@netlify/functions": "^3.0.0", "@netlify/functions": "^3.0.0",
"@netlify/plugin-nextjs": "^5.15.1", "@netlify/plugin-nextjs": "^5.15.7",
"@radix-ui/react-slot": "^1.2.2", "@radix-ui/react-slot": "^1.2.2",
"@scandic-hotels/booking-flow": "workspace:*", "@scandic-hotels/booking-flow": "workspace:*",
"@scandic-hotels/common": "workspace:*", "@scandic-hotels/common": "workspace:*",
@@ -38,7 +38,7 @@
"@scandic-hotels/tracking": "workspace:*", "@scandic-hotels/tracking": "workspace:*",
"@scandic-hotels/trpc": "workspace:*", "@scandic-hotels/trpc": "workspace:*",
"@sentry/nextjs": "^10.33.0", "@sentry/nextjs": "^10.33.0",
"@swc/plugin-formatjs": "^3.2.2", "@swc/plugin-formatjs": "^8.1.0",
"@t3-oss/env-nextjs": "^0.13.4", "@t3-oss/env-nextjs": "^0.13.4",
"@tanstack/react-query": "^5.75.5", "@tanstack/react-query": "^5.75.5",
"@tanstack/react-query-devtools": "^5.75.5", "@tanstack/react-query-devtools": "^5.75.5",
@@ -66,12 +66,12 @@
"jsonwebtoken": "^9.0.2", "jsonwebtoken": "^9.0.2",
"md5": "^2.3.0", "md5": "^2.3.0",
"motion": "^12.10.0", "motion": "^12.10.0",
"next": "16.0.10", "next": "16.1.6",
"next-auth": "5.0.0-beta.29", "next-auth": "5.0.0-beta.29",
"react": "19.2.1", "react": "19.2.4",
"react-aria-components": "1.8.0", "react-aria-components": "1.8.0",
"react-day-picker": "^9.6.7", "react-day-picker": "^9.6.7",
"react-dom": "19.2.1", "react-dom": "19.2.4",
"react-feather": "^2.0.10", "react-feather": "^2.0.10",
"react-focus-lock": "^2.13.6", "react-focus-lock": "^2.13.6",
"react-hook-form": "^7.56.2", "react-hook-form": "^7.56.2",

156
yarn.lock
View File

@@ -2034,10 +2034,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@netlify/plugin-nextjs@npm:^5.15.1": "@netlify/plugin-nextjs@npm:^5.15.7":
version: 5.15.1 version: 5.15.7
resolution: "@netlify/plugin-nextjs@npm:5.15.1" resolution: "@netlify/plugin-nextjs@npm:5.15.7"
checksum: 10c0/4b02d5d79d3697ff8c2fd64c65f774ed84e51c8d2dceb8aeab1b99a845a99fc9f62561d60bb7b9b5ef173e8b540f19709a8770b6f9b7c59e2847408a11817947 checksum: 10c0/bfb2ab0fe9da5d16a1b721434ab0ee5b91994ae46ddf786c15af782b755cef22cf8face545f1839f87fd5075a64c5a9ce60422dbdcc2c611f12b5961326baefa
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2112,13 +2112,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/env@npm:16.0.10":
version: 16.0.10
resolution: "@next/env@npm:16.0.10"
checksum: 10c0/6f2b5ba37733a49513ab3117c06f037fa962b4022fe2b4ba7801f830ab15974ad87ad8b47b6464fa5fcb3e9a3247b25f657ec97ae6eed1156b5736c6388246db
languageName: node
linkType: hard
"@next/env@npm:16.0.5": "@next/env@npm:16.0.5":
version: 16.0.5 version: 16.0.5
resolution: "@next/env@npm:16.0.5" resolution: "@next/env@npm:16.0.5"
@@ -2126,6 +2119,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/env@npm:16.1.6":
version: 16.1.6
resolution: "@next/env@npm:16.1.6"
checksum: 10c0/ed7023edb94b9b2e5da3f9c99d08b614da9757c1edd0ecec792fce4d336b4f0c64db1a84955e07cfbd848b9e61c4118fff28f4098cd7b0a7f97814a90565ebe6
languageName: node
linkType: hard
"@next/eslint-plugin-next@npm:16.0.7": "@next/eslint-plugin-next@npm:16.0.7":
version: 16.0.7 version: 16.0.7
resolution: "@next/eslint-plugin-next@npm:16.0.7" resolution: "@next/eslint-plugin-next@npm:16.0.7"
@@ -2135,13 +2135,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-darwin-arm64@npm:16.0.10":
version: 16.0.10
resolution: "@next/swc-darwin-arm64@npm:16.0.10"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@next/swc-darwin-arm64@npm:16.0.5": "@next/swc-darwin-arm64@npm:16.0.5":
version: 16.0.5 version: 16.0.5
resolution: "@next/swc-darwin-arm64@npm:16.0.5" resolution: "@next/swc-darwin-arm64@npm:16.0.5"
@@ -2149,10 +2142,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-darwin-x64@npm:16.0.10": "@next/swc-darwin-arm64@npm:16.1.6":
version: 16.0.10 version: 16.1.6
resolution: "@next/swc-darwin-x64@npm:16.0.10" resolution: "@next/swc-darwin-arm64@npm:16.1.6"
conditions: os=darwin & cpu=x64 conditions: os=darwin & cpu=arm64
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2163,10 +2156,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-linux-arm64-gnu@npm:16.0.10": "@next/swc-darwin-x64@npm:16.1.6":
version: 16.0.10 version: 16.1.6
resolution: "@next/swc-linux-arm64-gnu@npm:16.0.10" resolution: "@next/swc-darwin-x64@npm:16.1.6"
conditions: os=linux & cpu=arm64 & libc=glibc conditions: os=darwin & cpu=x64
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2177,10 +2170,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-linux-arm64-musl@npm:16.0.10": "@next/swc-linux-arm64-gnu@npm:16.1.6":
version: 16.0.10 version: 16.1.6
resolution: "@next/swc-linux-arm64-musl@npm:16.0.10" resolution: "@next/swc-linux-arm64-gnu@npm:16.1.6"
conditions: os=linux & cpu=arm64 & libc=musl conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2191,10 +2184,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-linux-x64-gnu@npm:16.0.10": "@next/swc-linux-arm64-musl@npm:16.1.6":
version: 16.0.10 version: 16.1.6
resolution: "@next/swc-linux-x64-gnu@npm:16.0.10" resolution: "@next/swc-linux-arm64-musl@npm:16.1.6"
conditions: os=linux & cpu=x64 & libc=glibc conditions: os=linux & cpu=arm64 & libc=musl
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2205,10 +2198,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-linux-x64-musl@npm:16.0.10": "@next/swc-linux-x64-gnu@npm:16.1.6":
version: 16.0.10 version: 16.1.6
resolution: "@next/swc-linux-x64-musl@npm:16.0.10" resolution: "@next/swc-linux-x64-gnu@npm:16.1.6"
conditions: os=linux & cpu=x64 & libc=musl conditions: os=linux & cpu=x64 & libc=glibc
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2219,10 +2212,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-win32-arm64-msvc@npm:16.0.10": "@next/swc-linux-x64-musl@npm:16.1.6":
version: 16.0.10 version: 16.1.6
resolution: "@next/swc-win32-arm64-msvc@npm:16.0.10" resolution: "@next/swc-linux-x64-musl@npm:16.1.6"
conditions: os=win32 & cpu=arm64 conditions: os=linux & cpu=x64 & libc=musl
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2233,10 +2226,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-win32-x64-msvc@npm:16.0.10": "@next/swc-win32-arm64-msvc@npm:16.1.6":
version: 16.0.10 version: 16.1.6
resolution: "@next/swc-win32-x64-msvc@npm:16.0.10" resolution: "@next/swc-win32-arm64-msvc@npm:16.1.6"
conditions: os=win32 & cpu=x64 conditions: os=win32 & cpu=arm64
languageName: node languageName: node
linkType: hard linkType: hard
@@ -2247,6 +2240,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@next/swc-win32-x64-msvc@npm:16.1.6":
version: 16.1.6
resolution: "@next/swc-win32-x64-msvc@npm:16.1.6"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@nodelib/fs.scandir@npm:2.1.5": "@nodelib/fs.scandir@npm:2.1.5":
version: 2.1.5 version: 2.1.5
resolution: "@nodelib/fs.scandir@npm:2.1.5" resolution: "@nodelib/fs.scandir@npm:2.1.5"
@@ -5108,7 +5108,7 @@ __metadata:
resolution: "@scandic-hotels/partner-sas@workspace:apps/partner-sas" resolution: "@scandic-hotels/partner-sas@workspace:apps/partner-sas"
dependencies: dependencies:
"@formatjs/intl": "npm:^3.1.6" "@formatjs/intl": "npm:^3.1.6"
"@netlify/plugin-nextjs": "npm:^5.15.1" "@netlify/plugin-nextjs": "npm:^5.15.7"
"@playwright/test": "npm:^1.53.1" "@playwright/test": "npm:^1.53.1"
"@scandic-hotels/booking-flow": "workspace:*" "@scandic-hotels/booking-flow": "workspace:*"
"@scandic-hotels/common": "workspace:*" "@scandic-hotels/common": "workspace:*"
@@ -5117,7 +5117,7 @@ __metadata:
"@scandic-hotels/trpc": "workspace:*" "@scandic-hotels/trpc": "workspace:*"
"@scandic-hotels/typescript-config": "workspace:*" "@scandic-hotels/typescript-config": "workspace:*"
"@sentry/nextjs": "npm:^10.33.0" "@sentry/nextjs": "npm:^10.33.0"
"@swc/plugin-formatjs": "npm:^3.2.2" "@swc/plugin-formatjs": "npm:^8.1.0"
"@t3-oss/env-nextjs": "npm:^0.13.4" "@t3-oss/env-nextjs": "npm:^0.13.4"
"@tanstack/react-query": "npm:^5.75.5" "@tanstack/react-query": "npm:^5.75.5"
"@tanstack/react-query-devtools": "npm:^5.75.5" "@tanstack/react-query-devtools": "npm:^5.75.5"
@@ -5136,11 +5136,11 @@ __metadata:
eslint-plugin-import: "npm:^2.31.0" eslint-plugin-import: "npm:^2.31.0"
eslint-plugin-simple-import-sort: "npm:^12.1.1" eslint-plugin-simple-import-sort: "npm:^12.1.1"
iron-session: "npm:^8.0.4" iron-session: "npm:^8.0.4"
next: "npm:16.0.10" next: "npm:16.1.6"
next-auth: "npm:5.0.0-beta.29" next-auth: "npm:5.0.0-beta.29"
react: "npm:19.2.1" react: "npm:19.2.4"
react-aria-components: "npm:1.8.0" react-aria-components: "npm:1.8.0"
react-dom: "npm:19.2.1" react-dom: "npm:19.2.4"
react-intl: "npm:^7.1.11" react-intl: "npm:^7.1.11"
server-only: "npm:^0.0.1" server-only: "npm:^0.0.1"
typescript: "npm:5.8.3" typescript: "npm:5.8.3"
@@ -5199,7 +5199,7 @@ __metadata:
"@internationalized/date": "npm:^3.8.0" "@internationalized/date": "npm:^3.8.0"
"@netlify/blobs": "npm:^8.1.0" "@netlify/blobs": "npm:^8.1.0"
"@netlify/functions": "npm:^3.0.0" "@netlify/functions": "npm:^3.0.0"
"@netlify/plugin-nextjs": "npm:^5.15.1" "@netlify/plugin-nextjs": "npm:^5.15.7"
"@playwright/test": "npm:^1.57.0" "@playwright/test": "npm:^1.57.0"
"@radix-ui/react-slot": "npm:^1.2.2" "@radix-ui/react-slot": "npm:^1.2.2"
"@scandic-hotels/booking-flow": "workspace:*" "@scandic-hotels/booking-flow": "workspace:*"
@@ -5209,7 +5209,7 @@ __metadata:
"@scandic-hotels/trpc": "workspace:*" "@scandic-hotels/trpc": "workspace:*"
"@scandic-hotels/typescript-config": "workspace:*" "@scandic-hotels/typescript-config": "workspace:*"
"@sentry/nextjs": "npm:^10.33.0" "@sentry/nextjs": "npm:^10.33.0"
"@swc/plugin-formatjs": "npm:^3.2.2" "@swc/plugin-formatjs": "npm:^8.1.0"
"@t3-oss/env-nextjs": "npm:^0.13.4" "@t3-oss/env-nextjs": "npm:^0.13.4"
"@tanstack/react-query": "npm:^5.75.5" "@tanstack/react-query": "npm:^5.75.5"
"@tanstack/react-query-devtools": "npm:^5.75.5" "@tanstack/react-query-devtools": "npm:^5.75.5"
@@ -5251,12 +5251,12 @@ __metadata:
jsonwebtoken: "npm:^9.0.2" jsonwebtoken: "npm:^9.0.2"
md5: "npm:^2.3.0" md5: "npm:^2.3.0"
motion: "npm:^12.10.0" motion: "npm:^12.10.0"
next: "npm:16.0.10" next: "npm:16.1.6"
next-auth: "npm:5.0.0-beta.29" next-auth: "npm:5.0.0-beta.29"
react: "npm:19.2.1" react: "npm:19.2.4"
react-aria-components: "npm:1.8.0" react-aria-components: "npm:1.8.0"
react-day-picker: "npm:^9.6.7" react-day-picker: "npm:^9.6.7"
react-dom: "npm:19.2.1" react-dom: "npm:19.2.4"
react-feather: "npm:^2.0.10" react-feather: "npm:^2.0.10"
react-focus-lock: "npm:^2.13.6" react-focus-lock: "npm:^2.13.6"
react-hook-form: "npm:^7.56.2" react-hook-form: "npm:^7.56.2"
@@ -6266,12 +6266,12 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/plugin-formatjs@npm:^3.2.2": "@swc/plugin-formatjs@npm:^8.1.0":
version: 3.2.3 version: 8.1.0
resolution: "@swc/plugin-formatjs@npm:3.2.3" resolution: "@swc/plugin-formatjs@npm:8.1.0"
dependencies: dependencies:
"@swc/counter": "npm:^0.1.3" "@swc/counter": "npm:^0.1.3"
checksum: 10c0/707da7b8ef8fa85b2c0e5fab27bc27d5ef9b7f799e5bf6c16c6bb1ad05eacb54ae72bc5cdefda9396c9a05995f55e1c48711b962766e8d6e738f30c75572c6b0 checksum: 10c0/312c65a2fcd378484930cd2c89819f7a069c4ce694e862138dc2e198cec7882a582093486c88d316dfb47da04b3e8d76200647f858fd92d0b9b140b5eb44b54f
languageName: node languageName: node
linkType: hard linkType: hard
@@ -8535,6 +8535,15 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"baseline-browser-mapping@npm:^2.8.3":
version: 2.9.19
resolution: "baseline-browser-mapping@npm:2.9.19"
bin:
baseline-browser-mapping: dist/cli.js
checksum: 10c0/569928db78bcd081953d7db79e4243a59a579a34b4ae1806b9b42d3b7f84e5bc40e6e82ae4fa06e7bef8291bf747b33b3f9ef5d3c6e1e420cb129d9295536129
languageName: node
linkType: hard
"binary-extensions@npm:^2.0.0": "binary-extensions@npm:^2.0.0":
version: 2.3.0 version: 2.3.0
resolution: "binary-extensions@npm:2.3.0" resolution: "binary-extensions@npm:2.3.0"
@@ -13545,20 +13554,21 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"next@npm:16.0.10": "next@npm:16.1.6":
version: 16.0.10 version: 16.1.6
resolution: "next@npm:16.0.10" resolution: "next@npm:16.1.6"
dependencies: dependencies:
"@next/env": "npm:16.0.10" "@next/env": "npm:16.1.6"
"@next/swc-darwin-arm64": "npm:16.0.10" "@next/swc-darwin-arm64": "npm:16.1.6"
"@next/swc-darwin-x64": "npm:16.0.10" "@next/swc-darwin-x64": "npm:16.1.6"
"@next/swc-linux-arm64-gnu": "npm:16.0.10" "@next/swc-linux-arm64-gnu": "npm:16.1.6"
"@next/swc-linux-arm64-musl": "npm:16.0.10" "@next/swc-linux-arm64-musl": "npm:16.1.6"
"@next/swc-linux-x64-gnu": "npm:16.0.10" "@next/swc-linux-x64-gnu": "npm:16.1.6"
"@next/swc-linux-x64-musl": "npm:16.0.10" "@next/swc-linux-x64-musl": "npm:16.1.6"
"@next/swc-win32-arm64-msvc": "npm:16.0.10" "@next/swc-win32-arm64-msvc": "npm:16.1.6"
"@next/swc-win32-x64-msvc": "npm:16.0.10" "@next/swc-win32-x64-msvc": "npm:16.1.6"
"@swc/helpers": "npm:0.5.15" "@swc/helpers": "npm:0.5.15"
baseline-browser-mapping: "npm:^2.8.3"
caniuse-lite: "npm:^1.0.30001579" caniuse-lite: "npm:^1.0.30001579"
postcss: "npm:8.4.31" postcss: "npm:8.4.31"
sharp: "npm:^0.34.4" sharp: "npm:^0.34.4"
@@ -13600,7 +13610,7 @@ __metadata:
optional: true optional: true
bin: bin:
next: dist/bin/next next: dist/bin/next
checksum: 10c0/c0e42bfaa0d38b0ee9a7fc54c748da2dfd807a76d75278b4c4f06768965d7b1035b836cae45e24a074dcf156a13c0fa555caa652886cc0f93e8be2b296dfbb51 checksum: 10c0/543766bf879bb5a5d454dc18cb302953270a92efba1d01dd028ea83c64b69573ce7d6e6c3759ecbaabec0a84131b0237263c24d1ccd7c8a97205e776dcd34e0b
languageName: node languageName: node
linkType: hard linkType: hard