Skip to content

chore: remove lodash per-method deps#661

Merged
strophy merged 8 commits into
v0.24-devfrom
remove-lodash-per-method-deps
Dec 12, 2022
Merged

chore: remove lodash per-method deps#661
strophy merged 8 commits into
v0.24-devfrom
remove-lodash-per-method-deps

Conversation

@strophy

@strophy strophy commented Dec 12, 2022

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

While attempting to pack oclif bundles and update oclif to work with yarn 3, I ran into problems with requiring lodash in different ways. Requiring per-method lodash packages is no longer recommended and will result in slower build times and larger packages. These packages will be removed in lodash 5.

What was done?

Replace per-method lodash requirements with directly-required methods.

How Has This Been Tested?

Locally and in CI

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@strophy strophy added this to the v0.24.0 milestone Dec 12, 2022
shumkov
shumkov previously approved these changes Dec 12, 2022
@strophy
strophy merged commit 45b6072 into v0.24-dev Dec 12, 2022
@strophy
strophy deleted the remove-lodash-per-method-deps branch December 12, 2022 10:29
QuantumExplorer added a commit that referenced this pull request Apr 20, 2026
PR #661 in rust-dashcore (`AssetLockResult.keys becomes an enum so
both paths share the same result shape`) changed `result.keys`
from a plain `Vec<[u8; 32]>` into the enum
`AssetLockCreditKeys { Private(Vec<[u8; 32]>), Public(Vec<...>) }`.

Our soft-wallet asset-lock builder only calls the sync
`build_asset_lock`, which still returns `Private(..)`; match on
that variant and extract the first key. Surface a clear error if
the builder somehow returns the `Public` variant (would mean the
signer path got wired in without us updating this site).
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.

2 participants