Skip to content

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/eui@95.12.0" 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/eui@95.12.0" has incorrect peer dependency "typescript@~4.5.3 || ^5".
warning "eslint-config-react-app > eslint-plugin-flowtype@8.0.3" has unmet peer dependency "@babel/plugin-syntax-flow@^7.14.5".
warning "eslint-config-react-app > eslint-plugin-flowtype@8.0.3" 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 <peruukki@hotmail.com>
@peruukki
Copy link
Contributor Author

peruukki commented Dec 1, 2024

Could I get someone to merge this? 🙏

@dmartinol dmartinol merged commit f226cb9 into feast-dev:master Dec 1, 2024
20 checks passed
@peruukki
Copy link
Contributor Author

peruukki commented Dec 1, 2024

Thanks @dmartinol!

lokeshrangineni pushed a commit to lokeshrangineni/feast that referenced this pull request Dec 2, 2024
)

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 <peruukki@hotmail.com>
tmihalac pushed a commit to tmihalac/feast that referenced this pull request Dec 3, 2024
)

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 <peruukki@hotmail.com>
Signed-off-by: Theodor Mihalache <tmihalac@redhat.com>
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.

4 participants