-
Notifications
You must be signed in to change notification settings - Fork 0
chore!: next.js to v15.x (step towards v16) (#714) #759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…and react 18 (#752) (#753) * chore!: update tanstack packages to latest (#752) * chore!: update isomorphic-dompurify to latest (#752) * chore!: update mui/material to latest (#752) * chore!: update copy-to-clipboard, react-dropzone, react-window, yup (#752) * chore!: update @commitlint/cli, @commitlint/config-conventional (#752) * chore!: updated @emotion/react, @emotion/styled, @emotion/jest to latest (#752) * chore: update @testing-library/react to latest (#742) * chore: update storybook (#752) * chore: update @typescript-eslint/eslint-plugin to latest (#752) * chore: update eslint and eslint-config-prettier (#752) * chore: update eslint-related packages (#752) * chore: minor bump prettier (#752) * chore!: update package-lock (#752) * chore: udpate package-lock (#752) --------- Co-authored-by: Fran McDade <[email protected]>
* chore!: update tanstack packages to latest (#752) * chore!: update isomorphic-dompurify to latest (#752) * chore!: update mui/material to latest (#752) * chore!: update copy-to-clipboard, react-dropzone, react-window, yup (#752) * chore!: update @commitlint/cli, @commitlint/config-conventional (#752) * chore!: updated @emotion/react, @emotion/styled, @emotion/jest to latest (#752) * chore: update @testing-library/react to latest (#742) * chore: update storybook (#752) * chore: update @typescript-eslint/eslint-plugin to latest (#752) * chore: update eslint and eslint-config-prettier (#752) * chore: update eslint-related packages (#752) * chore: minor bump prettier (#752) * chore!: update package-lock (#752) * chore: udpate package-lock (#752) * chore: migrate to prettier 3 and updated plugins (#754) --------- Co-authored-by: Fran McDade <[email protected]>
* chore: update jest v29 (#756) * chore!: rebased (#756) --------- Co-authored-by: Fran McDade <[email protected]>
* chore!: next.js to v15.x (step towards v16) (#714) * Update src/components/Filter/components/SearchAllFilters/components/VariableSizeListItem/variableSizeListItem.tsx Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Fran McDade <[email protected]> Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request upgrades the project's dependencies to their latest versions, primarily focusing on updating React (v19), Next.js (v15), Material-UI (v7), and various development tools. The upgrade also includes code consistency improvements by adding trailing commas to function parameters and switching React imports from React to use the JSX namespace and createElement, aligning with React 18+ best practices.
Key Changes
- Major dependency upgrades including React 19, Next.js 15, Material-UI 7, and related ecosystem packages
- Updated import patterns from
import React from "react"toimport { JSX } from "react"across components - Added trailing commas to function parameters throughout the codebase for consistency
- Removed deprecated Next.js Link API usage (
legacyBehavior,passHref) in favor of direct component prop usage
Reviewed changes
Copilot reviewed 299 out of 688 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Updated devDependencies and peerDependencies to latest major versions |
| Multiple .tsx files | Changed React imports to use JSX namespace instead of default React import |
| Multiple .ts files | Added trailing commas to function parameters for consistency |
| src/components/ComponentCreator/ComponentCreator.tsx | Updated to use createElement from react instead of React.createElement |
| src/components/Project/components/DataReleasePolicy/dataReleasePolicy.tsx | Removed deprecated Next.js Link patterns |
| src/components/Project/components/Contacts/contacts.tsx | Simplified Link component usage |
| src/components/Layout/components/Nav/nav.tsx | Updated ListItemButton to use component prop with Link |
| src/components/Export/components/ExportMethod/exportMethod.tsx | Streamlined Link usage by removing wrapper pattern |
| src/components/Error/error.tsx | Updated button Link integration |
| src/components/MarkdownRenderer/markdownRenderer.tsx | Updated rehype-react integration for new version |
| docs/TRUSTED_PUBLISHING.md | Minor formatting fix |
Closes #714.
Closes #752.
Closes #754.
Closes #756.
This pull request primarily focuses on updating dependencies to their latest versions and improving code consistency across the codebase. The dependency upgrades help ensure compatibility with newer features, bug fixes, and security patches. Additionally, there are several minor code style improvements, such as consistently adding trailing commas to function parameters and arguments, and switching React imports to use the
JSXnamespace andcreateElementfor component creation.Dependency Updates:
package.json: Upgraded many devDependencies and peerDependencies to their latest versions, including core libraries such asreact,react-dom,next,@mui/material,typescript, and related tooling. This enhances stability, security, and compatibility with modern features.Code Consistency and Style Improvements:
Multiple files: Added trailing commas to function parameters and arguments for improved readability and consistency. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22]
Switched React imports to use the
JSXnamespace andcreateElementfor component creation, aligning with React 18+ best practices and improving type safety. [1] [2] [3] [4] [5]Documentation:
docs/TRUSTED_PUBLISHING.md: Minor formatting improvement to the trusted publishing workflow instructions.