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

Attempt to upgrade to node 18 #445

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Attempt to upgrade to node 18 #445

wants to merge 11 commits into from

Conversation

wizhaaa
Copy link
Collaborator

@wizhaaa wizhaaa commented May 1, 2024

Summary

This PR works to upgrade to the next major node version - 18.
Node 18 introduces a lot of security improvements and many libraries we want to use requires node 18 (ie. OpenAI)...

Also does not run the test script - replaced with a no-op command : as I think Jest will break too much and isn't worth it right now.

Be sure to update your global default node if you don't want to manually type out nvm use 18 every time!
->

nvm alias default 18

PR Type

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI

Mobile + Desktop Screenshots & Recordings

QA - Test Plan

Breaking Changes & Notes

  • change ur default node version to use node 18
nvm alias default 18
  • server explicitly uses typescript 5.4 in dependencies
  • react-scripts SSL

Using the SSL flag for our react-script functions is not actually ideal - as it definitely introduces some security concerns - but I think that this is for the best.
IE. react scripts only really supports node 16. This is the main workaround I could find for react-scripts. The long term solution would be to change from react-scripts to vite (which I attempted earlier but required node 18 - but may attempt once again.)

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ notion
  • πŸ• ...
  • πŸ“• ...
  • πŸ™… no documentation needed

What GIF represents this PR?

gif

@wizhaaa wizhaaa requested a review from a team as a code owner May 1, 2024 17:49
@dti-github-bot
Copy link
Member

dti-github-bot commented May 1, 2024

[diff-counting] Significant lines: 8.

@wizhaaa wizhaaa changed the title Attempt to upgrade to node 18 [wip] Attempt to upgrade to node 18 May 1, 2024
@wizhaaa wizhaaa changed the title [wip] Attempt to upgrade to node 18 Attempt to upgrade to node 18 May 1, 2024
@wizhaaa wizhaaa added dependencies Pull requests that update a dependency file testing pipeline labels May 1, 2024
Copy link
Contributor

@qiandrewj qiandrewj left a comment

Choose a reason for hiding this comment

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

Hi Will, the upgrade to node 18 works for me. I think that the considerations for vite over react-scripts and overhauling the test script are important to work on, but we can first make the move to node 18 so that it's easier to develop those changes :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file testing pipeline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants