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

chore: Define Node.js version with Node Version Manager in Feast UI #4655

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

peruukki
Copy link
Contributor

What this PR does / why we need it:

I noticed a TypeScript error in the FeastUISansProviders.test.tsx file in VS Code:

ts-error-registry

For whatever reason, I haven't been able to get the error appear elsewhere, e.g. when running the TypeScript compiler. Nonetheless I noticed that we still use Node.js version 16 TypeScript type definitions in the project, and updating those to the latest version 20 definitions makes the error go away. This got me thinking that we don't explicitly define what Node.js version we are supposed to be using, except in the GitHub actions.

So I decided to make a PR and define the Node.js version in a single file to make it easier to use a consistent version and upgrade it in the future. There are a couple alternatives for this, but Node Version Manager is very common and one I've used for years, so I chose it.

v20.18.0 is the current latest LTS version, so let's use that. Note that the @types/node package version numbers don't match the related Node.js version numbers, 20.16.13 is the latest package in the major number 20 series.

Misc

setup-node GitHub action node-version-file documentation: https://github.com/actions/setup-node/blob/v3.8.2/docs/advanced-usage.md

Defining the Node.js version in a single file makes it easier to use a
consistent version and upgrade it in the future. v20.18.0 is the current
latest LTS version. Note that the @types/node version numbers don't match
the related Node.js version numbers, 20.16.13 is the latest package in the
major number 20.

setup-node GitHub action node-version-file documentation:
https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#node-version-file

Signed-off-by: Harri Lehtola <peruukki@hotmail.com>
Copy link
Member

@franciscojavierarceo franciscojavierarceo left a comment

Choose a reason for hiding this comment

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

Lgtm

@franciscojavierarceo franciscojavierarceo merged commit 651ef71 into feast-dev:master Oct 20, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants