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

Use Own Base58 #1391

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Use Own Base58 #1391

wants to merge 5 commits into from

Conversation

bh2smith
Copy link

@bh2smith bh2smith commented Sep 28, 2024

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • Commit messages follow the conventional commits spec
    Please just squash merge this and the squash merge will satisfy the criteria.
  • If this is a code change: I have written unit tests.
  • If this changes code in a published package: I have run pnpm changeset to create a changeset JSON document appropriate for this change.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

I have been getting annoyed by this package resolution warning:

warning near-api-js > @near-js/utils > bs58 > [email protected]: use 3.0.0 instead, safe-buffer has been merged and release for compatability

This is caused by a very tiny piece of middleware (bs58) that is not very professionally managed or updated and prevents us from keeping the primary dependency updated.

To solve this, we copy the 3 lines of code coming from that middle ware into an identical file directly into this project and migrate our dependency to base-x.

Alternative solution would be to fix the dependency's build issue and re-depend on it.

Test Plan

Added unit tests transcribed from the former dependency.
https://github.com/cryptocoinjs/bs58/blob/master/test/index.js

Related issues/PRs

Copy link

changeset-bot bot commented Sep 28, 2024

🦋 Changeset detected

Latest commit: 4eae9d0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@near-js/utils Patch
@near-js/accounts Patch
@near-js/biometric-ed25519 Patch
@near-js/crypto Patch
near-api-js Patch
@near-js/providers Patch
@near-js/transactions Patch
@near-js/wallet-account Patch
@near-js/cookbook Patch
@near-js/keystores-browser Patch
@near-js/keystores-node Patch
@near-js/keystores Patch
@near-js/signers Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant