Skip to content

eth-query ^2.1.2 -> @metamask/eth-query ^3.0.1 - #1546

Merged
mcmire merged 2 commits into
mainfrom
bump-eth-query
Jul 21, 2023
Merged

eth-query ^2.1.2 -> @metamask/eth-query ^3.0.1#1546
mcmire merged 2 commits into
mainfrom
bump-eth-query

Conversation

@mcmire

Copy link
Copy Markdown
Collaborator

Explanation

The eth-query package does not ship with TypeScript type definitions, and none have been published under @types/eth-query. This results in TypeScript failing to build packages in this repo that want to use eth-query. We've attempted to mitigate this issue by adding our own type definitions for eth-query to this repo, but since they aren't included in the published version of the packages in question, it means that any other project that wants to use those packages must supply their own type definitions for eth-query.

We have republished eth-query as @metamask/eth-query, which does ship with type definitions. This removes the need for this repo or any consumers of these packages to provide their own.

Fixes#1471.

References

Changelog

@metamask/assets-controllers

  • CHANGED: Replace eth-query ^2.1.2 with @metamask/eth-query ^3.0.1
    • Our fork of eth-query includes TypeScript type definitions.

@metamask/controller-utils

  • CHANGED: Replace eth-query ^2.1.2 with @metamask/eth-query ^3.0.1
    • Our fork of eth-query includes TypeScript type definitions.

@metamask/gas-fee-controller

  • CHANGED: Replace eth-query ^2.1.2 with @metamask/eth-query ^3.0.1
    • Our fork of eth-query includes TypeScript type definitions.

@metamask/network-controller

  • CHANGED: Replace eth-query ^2.1.2 with @metamask/eth-query ^3.0.1
    • Our fork of eth-query includes TypeScript type definitions.

@metamask/transaction-controller

  • CHANGED: Replace eth-query ^2.1.2 with @metamask/eth-query ^3.0.1
    • Our fork of eth-query includes TypeScript type definitions.

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

@mcmire
mcmire requested a review from a team as a code ownerJuly 21, 2023 21:35
@socket-security

Copy link
Copy Markdown

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages:eth-query@2.1.2

Mrtenz
Mrtenz previously approved these changes Jul 21, 2023
The `eth-query` package does not ship with TypeScript type definitions,
and none have been published under `@types/eth-query`. This results in
TypeScript failing to build packages in this repo that want to use
`eth-query`. We've attempted to mitigate this issue by adding our own
type definitions for `eth-query` to this repo, but since they aren't
included in the published version of the packages in question, it means
that any other project that wants to use those packages must supply
their own type definitions for `eth-query`.
We have republished `eth-query` as `@metamask/eth-query`, which _does_
ship with type definitions. This removes the need for this repo or
any consumers of these packages to provide their own.

@GudahttGudahtt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@mcmire
mcmire merged commit 6437c7a into mainJul 21, 2023
@mcmire
mcmire deleted the bump-eth-query branch July 21, 2023 22:39
tommasini added a commit that referenced this pull request Mar 7, 2024
Sign up for freeto 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.

Publish new version of eth-query with type definitions from this repo

3 participants

@mcmire@Gudahtt@Mrtenz