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

deps: update typescript to 5.3.3 #6491

Merged
merged 2 commits into from
Feb 27, 2024
Merged

deps: update typescript to 5.3.3 #6491

merged 2 commits into from
Feb 27, 2024

Conversation

nazarhussain
Copy link
Contributor

Motivation

Keep the dependencies up-to-date.

Description

Update Typescript to latest 5.3.3.

Steps to test or reproduce

  • Run all tests

@nazarhussain nazarhussain requested a review from a team as a code owner February 27, 2024 16:31
@nazarhussain nazarhussain self-assigned this Feb 27, 2024
@@ -13,7 +13,7 @@ export async function fetchNearestBlock(
): Promise<capella.SignedBeaconBlock> {
const res = await api.beacon.getBlockV2(slot);

if (res.ok) return res.response.data;
if (res.ok) return res.response.data as capella.SignedBeaconBlock;
Copy link
Contributor

Choose a reason for hiding this comment

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

The new typescript found this type issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes the newer version is strict when returning union type.

jeluard
jeluard previously approved these changes Feb 27, 2024
@nazarhussain
Copy link
Contributor Author

For reference the biggest change in this version is actually some technical debt on the Typescript side.

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-3.html#consolidation-between-tsserverlibraryjs-and-typescriptjs

Copy link

codecov bot commented Feb 27, 2024

Codecov Report

Merging #6491 (c8e5eb9) into unstable (e9a3f07) will increase coverage by 0.00%.
Report is 2 commits behind head on unstable.
The diff coverage is 50.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6491   +/-   ##
=========================================
  Coverage     61.72%   61.72%           
=========================================
  Files           555      555           
  Lines         58204    58204           
  Branches       1839     1844    +5     
=========================================
+ Hits          35925    35927    +2     
+ Misses        22240    22238    -2     
  Partials         39       39           

@wemeetagain wemeetagain merged commit 86d28c9 into unstable Feb 27, 2024
16 of 20 checks passed
@wemeetagain wemeetagain deleted the nh/ts-upgrade branch February 27, 2024 17:09
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.17.0 🎉

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