Skip to content

chore: pin bn.js version in resolutions#12133

Merged
martykan merged 1 commit intodevelopfrom
chore/resolutions-bn-js
Apr 25, 2024
Merged

chore: pin bn.js version in resolutions#12133
martykan merged 1 commit intodevelopfrom
chore/resolutions-bn-js

Conversation

@martykan
Copy link
Copy Markdown
Member

@martykan martykan commented Apr 24, 2024

Description

A lot of dependencies use the bn.js library, but in different version, resulting in duplicates.
I would pin it to the latest version globally.

Screenshots:

For example in Connect core:

Before
Screenshot 2024-04-24 at 13 36 57

After
Screenshot 2024-04-24 at 13 38 22

Final output size is reduced from about 1.5MB to 1.2MB

@martykan martykan marked this pull request as ready for review April 24, 2024 12:11
@martykan martykan requested a review from mroz22 April 24, 2024 12:11
@mroz22
Copy link
Copy Markdown
Contributor

mroz22 commented Apr 24, 2024

isnt there something like resolving all the 4.x.x versions to 4.something and all 5.x.x to 5.something?

it should be probably safe to merge this if tests pass, but still...

image

@martykan
Copy link
Copy Markdown
Member Author

I checked and it doesn't seem there were breaking changes, maybe one - they made input validation more strict.
But it seems reasonable to me

Copy link
Copy Markdown
Contributor

@mroz22 mroz22 left a comment

Choose a reason for hiding this comment

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

lets try, the space safe seems worth it.

@mroz22
Copy link
Copy Markdown
Contributor

mroz22 commented Apr 25, 2024

also why do we have solana dep in core.js? this sounds like something that shouldn't be there

image

@martykan
Copy link
Copy Markdown
Member Author

Seems like it's getting in through blockchain-link solana worker

@martykan martykan merged commit afc84ed into develop Apr 25, 2024
@martykan martykan deleted the chore/resolutions-bn-js branch April 25, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants