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: Upgrades minors and patches #665

Merged
merged 2 commits into from
Jun 17, 2024
Merged

chore: Upgrades minors and patches #665

merged 2 commits into from
Jun 17, 2024

Conversation

tuliomir
Copy link
Contributor

@tuliomir tuliomir commented Jun 11, 2024

Acceptance Criteria

  • Upgrades axios from 1.6.8 to 1.7.2 ( a continuation of chore: Upgrades axios #634 )
  • Upgrades axios-mock-adapter from 1.17.0 to 1.22.0 ( same here )
  • Upgrades level from 8.0.0 to 8.0.1
  • Upgrades long from 4.0.0 to 5.2.3 ( the release notes says it's only a refactor )

Notes

Following a suggestion from @r4mmer I have tested the built lib on both the Desktop and Headless wallets to ensure the browser and node environments correctly handle the Uint8Array code change as well.

The manual test on the Desktop wallet worked correctly and the full integration tests suite on the headless also passed.

Security Checklist

  • Make sure you do not include new dependencies in the project unless strictly necessary and do not include dev-dependencies as production ones. More dependencies increase the possibility of one of them being hijacked and affecting us.

@tuliomir tuliomir added the dependencies Pull requests that update a dependency file label Jun 11, 2024
@tuliomir tuliomir self-assigned this Jun 11, 2024
Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.73%. Comparing base (bbed20b) to head (57c64b1).

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #665       +/-   ##
===========================================
+ Coverage   62.79%   79.73%   +16.93%     
===========================================
  Files          77       77               
  Lines        5886     5886               
  Branches     1229     1229               
===========================================
+ Hits         3696     4693      +997     
+ Misses       2094     1176      -918     
+ Partials       96       17       -79     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +57 to +58
const long = Long.fromNumber(value, false);
arr = new Uint8Array(long.toBytesBE()).buffer;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The implicit conversion from number[] to ArrayBuffer was being rejected by the build phase ( failed action )

An explicit conversion was implemented through Uint8Array, and according to the unit tests is working correctly.

@tuliomir tuliomir requested a review from r4mmer June 12, 2024 14:28
@tuliomir tuliomir marked this pull request as ready for review June 12, 2024 14:31
r4mmer
r4mmer previously approved these changes Jun 12, 2024
@tuliomir tuliomir merged commit 28e5ff2 into master Jun 17, 2024
4 checks passed
@tuliomir tuliomir deleted the chore/upgrades-minors branch June 17, 2024 19:09
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
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants