Skip to content
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

Updates node to 20, React to 18, FA peer dep to latest #1180

Merged
merged 3 commits into from
Apr 16, 2024
Merged

Conversation

kyleshike
Copy link
Collaborator

@kyleshike kyleshike commented Apr 4, 2024

This PR does the following:

  • Upgrades Node to 20
  • Upgrade4s React to 18
  • Fixers all the dependency warnings where feasible
  • minor cleanup

.eslintrc Outdated Show resolved Hide resolved
@kyleshike kyleshike marked this pull request as ready for review April 5, 2024 12:54
@kyleshike kyleshike changed the base branch from develop to 2.3 April 5, 2024 13:02
package.json Outdated Show resolved Hide resolved
@@ -8,7 +8,6 @@ import 'scss/forms/input_label.scss';

const InputLabel = ({
className,
elementType,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this prop isn't used in the component, so I just removed it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prop isn't being used anywhere in rails-server either so that's good

@@ -145,7 +145,6 @@ export default class SidebarView extends Component {
const sidebarClassName = classNames(
this.props.className,
{
// eslint-disable-next-line @typescript-eslint/camelcase
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updating TS lint made this obsolete

@kyleshike kyleshike changed the base branch from 2.3 to 3.0 April 5, 2024 13:06
@kyleshike
Copy link
Collaborator Author

This is going to be merged into the DS 3.0 branch, not develop. We can use this feature branch leading up to tech debt week. We can then use part of TD week to merge it, make the release, and update rails-server

@kyleshike
Copy link
Collaborator Author

@jasonbasuil @gabescarbrough bumping this. Nothing crazy going on here just some major version updates, but I want to get the ball rolling on DS 3.0

Copy link
Contributor

@gabescarbrough gabescarbrough left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for tackling this. Exciting to get these dependencies updated.

@@ -1 +1 @@
18.18.2
20.12.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@@ -8,7 +8,6 @@ import 'scss/forms/input_label.scss';

const InputLabel = ({
className,
elementType,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prop isn't being used anywhere in rails-server either so that's good

src/InputLegend/InputLegend.jsx Show resolved Hide resolved
package.json Show resolved Hide resolved
@gabescarbrough
Copy link
Contributor

Fixers all the dependency warnings where feasible

Is the only non-feasible one [email protected]" has incorrect peer dependency "react@^15.3.0 || ^16.0.0" or are there others too?

Given react-toggle is unmaintained and has an issue from two years ago asking about React 18 with no replies I'd say we should look into moving away from that dependency

@kyleshike
Copy link
Collaborator Author

Yea I believe the main offender was react toggle. IMO we can probably just replace it with some react code to do the same:
https://docs.userinterviews.com/?path=/docs/components-toggleinput--docs

@kyleshike kyleshike merged commit 69550e5 into 3.0 Apr 16, 2024
2 checks passed
@kyleshike kyleshike deleted the node-20 branch April 16, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants