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: Upgrade TypeScript to latest version 5.7.2 in /ui #4788

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peruukki
Copy link
Contributor

@peruukki peruukki commented Nov 23, 2024

What this PR does / why we need it:

Upgrade TypeScript to latest version 5.7.2. This gets rid of the @elastic/[email protected]" has incorrect peer dependency "typescript@~4.5.3 || ^5" warning when installing Feast UI dependencies:

$ yarn
yarn install v1.22.17
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > @elastic/[email protected]" has incorrect peer dependency "typescript@~4.5.3 || ^5".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "eslint-config-react-app > [email protected]" has unmet peer dependency "@babel/plugin-transform-react-jsx@^7.14.9".
[4/4] 🔨  Building fresh packages...
✨  Done in 13.74s.

Also lock the TypeScript minor version by using ~ instead of ^ in the version specifier, see fastify/fastify-type-provider-typebox#169 (comment).

Which issue(s) this PR fixes:

None.

Misc

After upgrading, the TypeScript compiler complained that the long package had no default export. Related fixes:

  • Add the latest long version as a direct dependency since our code uses it directly; no compilation errors with the latest version
  • The long package exports a Long class, so use a capital first letter in the import name to match that

@peruukki peruukki requested a review from a team as a code owner November 23, 2024 07:09
Copy link
Collaborator

@shuchu shuchu left a comment

Choose a reason for hiding this comment

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

lgtm

Lock the TypeScript minor version by using `~` instead of `^` in the
version specifier, see
fastify/fastify-type-provider-typebox#169 (comment).

After upgrading, the TypeScript compiler complained that the `long`
package has no default export. Related fixes:

- Add the latest `long` version as a direct dependency since our code
  uses it directly; no compilation errors with the latest version

- The `long` package exports a `Long` class, so use a capital first
  letter in the import name to match that

Signed-off-by: Harri Lehtola <[email protected]>
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.

3 participants