Skip to content

Conversation

cprussin
Copy link
Collaborator

Summary

This PR rebuilds the pnpm-lock.yaml file. The steps to do this are:

  1. git clean -fdx (reset the git repo to a fresh state)
  2. rm pnpm-lock.yaml
  3. pnpm i
  4. pnpm dedupe

This PR also includes some fixes for some packages whose dependencies moved without major version bumps, but which in fact included breaking changes.

Rationale

It's important to rebuild the pnpm lockfile occasionally for a few reasons:

  • Doing so ensures we're using latest versions of dependencies, within compatible ranges declared in package.json files
  • This ensures we're working against the same dependencies that would be installed by a consumer of our libs
  • It's important for ensuring that the lockfile represents an optimized set of dependencies based on the requirements of the workspaces

We haven't been able to do this for a while due to a myriad of dependency issues, but with #2488 , those dependency issues were resolved and we can now do this.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@cprussin cprussin requested a review from a team as a code owner March 17, 2025 00:33
Copy link

vercel bot commented Mar 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 5:18am
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 5:18am
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 5:18am
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 5:18am
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 5:18am
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2025 5:18am

const c = chains.find(({ chain_name }) => chain_name === "osmosis");
if (c === undefined)
throw new Error("Could not find Osmosis in chain registry");
this.chain = c;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This whole block was warning because chain is a private variable that's never consumed, meaning none of this should be needed. Please someone who knows this package better -- please help take a look and make sure there's nothing hacky that's breaking the static analysis here and actually uses this in some unexpected way...

@cprussin cprussin merged commit 6f654bc into main Mar 17, 2025
12 checks passed
@cprussin cprussin deleted the cprussin/rebuild-pnpm-lock branch March 17, 2025 11:28
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