Skip to content

Commit 7ec4991

Browse files
committed
chore!: next.js to v15.x (step towards v16) (#714)
1 parent 25a7a2e commit 7ec4991

File tree

421 files changed

+9025
-12927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

421 files changed

+9025
-12927
lines changed

package-lock.json

Lines changed: 8449 additions & 12369 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,23 @@
2525
"@commitlint/cli": "^20.2.0",
2626
"@commitlint/config-conventional": "^20.2.0",
2727
"@emotion/jest": "^11.14.2",
28-
"@next/eslint-plugin-next": "^14.2.33",
28+
"@next/eslint-plugin-next": "^15.5.9",
2929
"@storybook/nextjs-vite": "^10.1.10",
3030
"@testing-library/react": "^16.3.1",
3131
"@types/d3": "^7.4.3",
3232
"@types/jest": "^29.5.14",
33-
"@types/react": "^18.3.5",
34-
"@types/react-dom": "^18.3.0",
33+
"@types/react": "^19.2.7",
34+
"@types/react-dom": "^19.2.3",
3535
"@types/react-gtm-module": "^2.0.1",
3636
"@types/react-window": "^1.8.5",
37-
"@types/uuid": "^8.3.4",
3837
"@typescript-eslint/eslint-plugin": "^8.50.0",
3938
"eslint": "^8.57.1",
40-
"eslint-config-next": "^14.2.33",
39+
"eslint-config-next": "^15.5.9",
4140
"eslint-config-prettier": "^10.1.8",
4241
"eslint-plugin-eslint-comments": "^3.2.0",
4342
"eslint-plugin-jsdoc": "^61.5.0",
4443
"eslint-plugin-prettier": "^5.5.4",
45-
"eslint-plugin-react-hooks": "^4.6.0",
44+
"eslint-plugin-react-hooks": "^5.2.0",
4645
"eslint-plugin-sonarjs": "^0.25.1",
4746
"eslint-plugin-sort-destructure-keys": "^2.0.0",
4847
"eslint-plugin-storybook": "^10.1.10",
@@ -55,7 +54,7 @@
5554
"prettier-plugin-organize-imports": "^4.3.0",
5655
"storybook": "^10.1.10",
5756
"ts-jest": "^29.4.6",
58-
"typescript": "^5.5.4"
57+
"typescript": "^5.9.3"
5958
},
6059
"peerDependencies": {
6160
"@emotion/react": "^11.14.0",
@@ -70,24 +69,24 @@
7069
"gray-matter": "^4.0.3",
7170
"isomorphic-dompurify": "^2.34.0",
7271
"ky": "^1.7.2",
73-
"next": "^14.2.33",
72+
"next": "^15.5.9",
7473
"next-auth": "^4.24.13",
75-
"next-mdx-remote": "^4.4.1",
76-
"react": "^18.3.1",
77-
"react-dom": "^18.3.1",
74+
"next-mdx-remote": "^5.0.0",
75+
"react": "^19.2.3",
76+
"react-dom": "^19.2.3",
7877
"react-dropzone": "^14.3.8",
7978
"react-gtm-module": "^2.0.11",
8079
"react-idle-timer": "^5.7.2",
8180
"react-window": "^1.8.11",
8281
"rehype-raw": "^7.0.0",
83-
"rehype-react": "^7.2.0",
84-
"rehype-sanitize": "^5.0.1",
85-
"remark-gfm": "^3.0.1",
86-
"remark-parse": "^10.0.2",
87-
"remark-rehype": "^10.1.0",
82+
"rehype-react": "^8.0.0",
83+
"rehype-sanitize": "^6.0.0",
84+
"remark-gfm": "^4.0.1",
85+
"remark-parse": "^11.0.0",
86+
"remark-rehype": "^11.1.2",
8887
"slugify": "^1.6.6",
89-
"unified": "^10.1.2",
90-
"uuid": "^8.3.2",
88+
"unified": "^11.0.5",
89+
"uuid": "^13.0.0",
9190
"yup": "^1.7.1"
9291
},
9392
"overrides": {

src/components/Authentication/components/SessionController/components/GoogleSessionController/SessionController.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Fragment, useEffect } from "react";
1+
import { JSX, Fragment, useEffect } from "react";
22
import { authComplete } from "../../../../../../providers/authentication/auth/dispatch";
33
import { useAuth } from "../../../../../../providers/authentication/auth/hook";
44
import { authenticationComplete } from "../../../../../../providers/authentication/authentication/dispatch";

src/components/Authentication/components/SessionController/components/NextSessionController/SessionController.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useSession } from "next-auth/react";
2-
import React, { Fragment, useEffect } from "react";
2+
import { JSX, Fragment, useEffect } from "react";
33
import { updateAuthState } from "../../../../../../providers/authentication/auth/dispatch";
44
import { useAuth } from "../../../../../../providers/authentication/auth/hook";
55
import { updateAuthentication } from "../../../../../../providers/authentication/authentication/dispatch";

src/components/ComponentCreator/ComponentCreator.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import { JSX, createElement } from "react";
22
import { ComponentsConfig, ViewContext } from "../../config/entities";
33
import { useConfig } from "../../hooks/useConfig";
44
import { useExploreState } from "../../hooks/useExploreState";
@@ -63,11 +63,9 @@ export const ComponentCreator = <T,>({
6363
systemStatus,
6464
})
6565
: {};
66-
return React.createElement(
67-
c.component,
68-
{ ...c.props, ...props, key: k },
69-
[children ?? props.children],
70-
);
66+
return createElement(c.component, { ...c.props, ...props, key: k }, [
67+
children ?? props.children,
68+
]);
7169
})}
7270
</>
7371
);

src/components/ComponentCreator/components/ConditionalComponent/conditionalComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ReactNode } from "react";
1+
import { JSX, ReactNode } from "react";
22

33
/**
44
* Basic component to conditionally render children.

src/components/ComponentCreator/components/RenderComponent/renderComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ElementType } from "react";
1+
import { JSX, ElementType } from "react";
22
import { v4 as uuid4 } from "uuid";
33

44
/**

src/components/DataDictionary/components/Description/description.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from "react";
1+
import { JSX } from "react";
22
import { StyledFluidPaper, StyledMarkdownRenderer } from "./description.styles";
33
import { DescriptionProps } from "./types";
44

src/components/DataDictionary/components/Entities/entities.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Grid } from "@mui/material";
22
import { RowData } from "@tanstack/react-table";
3-
import React from "react";
3+
import { JSX } from "react";
44
import { Attribute } from "../../../../common/entities";
55
import { NoResults } from "../../../NoResults/noResults";
66
import { Entity } from "../Entity/entity";

src/components/DataDictionary/components/Entity/entity.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Grid, Typography } from "@mui/material";
22
import { RowData } from "@tanstack/react-table";
3-
import React from "react";
3+
import { JSX } from "react";
44
import { Attribute } from "../../../../common/entities";
55
import { TYPOGRAPHY_PROPS } from "../../../../styles/common/mui/typography";
66
import { AnchorLink } from "../../../common/AnchorLink/anchorLink";

0 commit comments

Comments
 (0)