Merged in chore/fix-dependencies (pull request #3470)

chore: Cleanup dependencies

* Move dotenv to root

* update knip config

* Fix more deps

* More dep updates

* more

* more dep updates

* Fix deps

* Fix generate


Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2026-01-21 15:03:52 +00:00
parent 510653f2ee
commit 993f6c4377
12 changed files with 85 additions and 275 deletions

View File

@@ -29,8 +29,12 @@
"@scandic-hotels/trpc": "workspace:*",
"@sentry/nextjs": "^10.33.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",
"@trpc/client": "^11.1.2",
"@trpc/server": "^11.1.2",
"class-variance-authority": "^0.7.1",
"iron-session": "^8.0.4",
"next": "16.0.10",
"next-auth": "5.0.0-beta.29",
@@ -39,7 +43,8 @@
"react-dom": "19.2.1",
"react-intl": "^7.1.11",
"server-only": "^0.0.1",
"usehooks-ts": "3.1.1"
"usehooks-ts": "3.1.1",
"zod": "^3.24.4"
},
"devDependencies": {
"@playwright/test": "^1.53.1",
@@ -49,14 +54,15 @@
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@typescript/native-preview": "^7.0.0-dev.20251104.1",
"@vitejs/plugin-react": "^5.1.1",
"babel-plugin-formatjs": "^10.5.39",
"eslint": "^9",
"eslint-config-next": "16.0.7",
"eslint-plugin-formatjs": "^5.3.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"graphql-tag": "^2.12.6",
"typescript": "5.8.3",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "^4.0.0"
},
"engines": {

View File

@@ -18,7 +18,8 @@
"bullmq": "5.54.3",
"elysia": "1.3.1",
"ioredis": "5.8.2",
"pino": "9.6.0"
"pino": "9.6.0",
"zod": "^3.24.4"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",

View File

@@ -1,4 +1,3 @@
import { ElementType } from "domelementtype"
import parse, { type DOMNode, Element, type Text } from "html-react-parser"
import Table from "@scandic-hotels/design-system/Table"
@@ -38,7 +37,7 @@ function renderChildren(node: Element) {
}
function renderNode(domNode: Node, idx: number) {
if (domNode.type === ElementType.Tag) {
if (domNode.type === "tag") {
switch (domNode.name) {
case NodeNames.h1:
return (
@@ -237,7 +236,7 @@ function renderNode(domNode: Node, idx: number) {
</Typography>
)
}
} else if (domNode.type === ElementType.Text) {
} else if (domNode.type === "text") {
return domNode.data
}
return null

View File

@@ -32,7 +32,6 @@
"@netlify/functions": "^3.0.0",
"@netlify/plugin-nextjs": "^5.15.1",
"@radix-ui/react-slot": "^1.2.2",
"@react-aria/ssr": "^3.9.8",
"@scandic-hotels/booking-flow": "workspace:*",
"@scandic-hotels/common": "workspace:*",
"@scandic-hotels/design-system": "workspace:*",
@@ -44,7 +43,6 @@
"@tanstack/react-query": "^5.75.5",
"@tanstack/react-query-devtools": "^5.75.5",
"@tanstack/react-table": "^8.21.3",
"@testing-library/dom": "^10.4.0",
"@trpc/client": "^11.1.2",
"@trpc/server": "^11.1.2",
"@tsparticles/confetti": "^3.8.1",
@@ -60,8 +58,6 @@
"dialogshift-webchat-sdk": "^2.10.1",
"embla-carousel": "^8.6.0",
"embla-carousel-react": "^8.6.0",
"flat": "^6.0.1",
"graphql-tag": "^2.12.6",
"html-react-parser": "^5.2.3",
"ics": "^3.8.1",
"immer": "10.1.1",
@@ -70,7 +66,6 @@
"jsonwebtoken": "^9.0.2",
"md5": "^2.3.0",
"motion": "^12.10.0",
"nanoid": "^5.1.5",
"next": "16.0.10",
"next-auth": "5.0.0-beta.29",
"react": "19.2.1",
@@ -89,23 +84,15 @@
"zustand": "^4.5.2"
},
"devDependencies": {
"@formatjs/cli": "^6.7.1",
"@lokalise/node-api": "^14.0.0",
"@playwright/test": "^1.57.0",
"@react-aria/test-utils": "1.0.0-alpha.8",
"@scandic-hotels/typescript-config": "workspace:*",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/adm-zip": "^0.5.7",
"@types/json-stable-stringify-without-jsonify": "^1.0.2",
"@types/jsonwebtoken": "^9",
"@types/node": "^20",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "^5.0.0",
"adm-zip": "^0.5.16",
"babel-plugin-formatjs": "^10.5.39",
"dotenv": "^16.5.0",
"eslint": "^9",
"eslint-config-next": "16.0.7",
"eslint-plugin-formatjs": "^5.3.1",
@@ -113,7 +100,6 @@
"eslint-plugin-simple-import-sort": "^12.1.1",
"jiti": "^1.21.0",
"jsdom": "^26.1.0",
"lint-staged": "^15.5.2",
"schema-dts": "^1.1.5",
"typescript": "5.8.3",
"vite-tsconfig-paths": "^5.1.4",