Skip to content

Conversation

@legobeat
Copy link
Contributor

@legobeat legobeat commented Oct 11, 2023

Explanation

References

Changelog

@metamask/controller-utils

  • FIXED: Move @metamask/eth-query from dependencies to devDependencies

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@legobeat legobeat added the dependencies Pull requests that update a dependency file label Oct 11, 2023
@legobeat legobeat marked this pull request as ready for review October 11, 2023 21:50
@legobeat legobeat requested a review from a team as a code owner October 11, 2023 21:50
@legobeat legobeat force-pushed the deps-utils-move-eth-query-to-devDeps branch from 3fe8256 to 6abda4d Compare October 12, 2023 22:55
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Right. Good catch.

@legobeat legobeat merged commit ed19f08 into MetaMask:main Oct 16, 2023
@legobeat legobeat deleted the deps-utils-move-eth-query-to-devDeps branch October 16, 2023 13:18
FrederikBolding added a commit that referenced this pull request Nov 24, 2023
## Explanation

In #1815, `@metamask/eth-query` was moved from deps to devDeps under the
assumption that this would be safe because the dependency is only used
for types. This assumption is false as the type import is shipped in
`utils.d.ts` and will be attempted to be resolved in packages that
consume the library. This in turn causes build errors like: `Error:
node_modules/@metamask/controller-utils/dist/util.d.ts(2,27): error
TS2307: Cannot find module '@metamask/eth-query' or its corresponding
type declarations.`

## Changelog

<!--
If you're making any consumer-facing changes, list those changes here as
if you were updating a changelog, using the template below as a guide.

(CATEGORY is one of BREAKING, ADDED, CHANGED, DEPRECATED, REMOVED, or
FIXED. For security-related issues, follow the Security Advisory
process.)

Please take care to name the exact pieces of the API you've added or
changed (e.g. types, interfaces, functions, or methods).

If there are any breaking changes, make sure to offer a solution for
consumers to follow once they upgrade to the changes.

Finally, if you're only making changes to development scripts or tests,
you may replace the template below with "None".
-->

### `@metamask/controller-utils`

- **Fixed**: Move `@metamask/eth-query` from devDependencies to
dependencies

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants