Merged in chore/next15 (pull request #1999)

chore (SW-834): Upgrade to Next 15

* wip: apply codemod and upgrade swc plugin

* wip: design-system to react 19, fix issues from async (search)params

* wip: fix remaining issues from codemod

serverClient is now async because context use headers()
getLang is now async because it uses headers()

* Minor cleanup

* Inline react-material-symbols package

Package is seemingly not maintained any more and doesn't support
React 19. This copies the package source into `design-system`,
makes the necessary changes for 19 and export it for others to use.

* Fix missing awaits

* Disable modal exit animations

Enabling modal exit animations via isExiting prop is causing
modals to be rendered in "hidden" state and never unmount.
Seems to be an issue with react-aria-components,
see https://github.com/adobe/react-spectrum/issues/7563.
Can probably be fixed by rewriting to a solution similar to
https://react-spectrum.adobe.com/react-aria/examples/framer-modal-sheet.html

* Remove unstable cache implementation and use in memory cache locally

* Fix ref type in SelectFilter

* Use cloneElement to add key prop to element


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-06-02 11:11:50 +00:00
parent 47abd7d5ef
commit cbf9e7b7c2
188 changed files with 4883 additions and 1023 deletions

View File

@@ -50,6 +50,7 @@
"@react-aria/ssr": "^3.9.8",
"@scandic-hotels/design-system": "workspace:*",
"@sentry/nextjs": "^8.41.0",
"@swc/plugin-formatjs": "^3.2.2",
"@t3-oss/env-nextjs": "^0.13.4",
"@tanstack/react-query": "^5.75.5",
"@tanstack/react-query-devtools": "^5.75.5",
@@ -90,12 +91,12 @@
"md5": "^2.3.0",
"motion": "^12.10.0",
"nanoid": "^5.1.5",
"next": "^14.2.25",
"next-auth": "5.0.0-beta.19",
"react": "^18",
"next": "15.3.2",
"next-auth": "5.0.0-beta.27",
"react": "19.1.0",
"react-aria-components": "^1.8.0",
"react-day-picker": "^9.6.7",
"react-dom": "^18",
"react-dom": "19.1.0",
"react-feather": "^2.0.10",
"react-focus-lock": "^2.13.6",
"react-hook-form": "^7.56.2",
@@ -114,7 +115,6 @@
},
"devDependencies": {
"@formatjs/cli": "^6.7.1",
"@formatjs/swc-plugin-experimental": "0.4.0",
"@lokalise/node-api": "^14.0.0",
"@scandic-hotels/typescript-config": "workspace:*",
"@svgr/webpack": "^8.1.0",
@@ -127,15 +127,15 @@
"@types/jsonwebtoken": "^9",
"@types/lodash-es": "^4",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react": "19.1.0",
"@types/react-dom": "19.1.0",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.32.0",
"adm-zip": "^0.5.16",
"cypress": "^14.3.3",
"dotenv": "^16.5.0",
"eslint": "^8",
"eslint-config-next": "^14.0.4",
"eslint-config-next": "15.3.2",
"eslint-plugin-formatjs": "^5.3.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
@@ -146,7 +146,6 @@
"lint-staged": "^15.5.2",
"netlify-plugin-cypress": "^2.2.1",
"prettier": "^3.5.3",
"react-material-symbols": "^4.4.0",
"schema-dts": "^1.1.5",
"start-server-and-test": "^2.0.11",
"ts-jest": "^29.3.2",
@@ -157,5 +156,9 @@
},
"engines": {
"node": "22"
},
"resolutions": {
"@types/react": "19.1.0",
"@types/react-dom": "19.1.0"
}
}