[email protected] dependencies are resolved to the most recent ones due to ^ selector
#1998
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are using
[email protected]
for our library to haveethers
interface to our own chain (non-Ethereum). For this purpose we inherit theSigner
from@ethersproject/abstract-signer
andProvider
from@ethersproject/abstract-provider
packages respectively. While the[email protected]
uniquely defines the dependencies version, those depedencies in turn, such as@ethersproject/[email protected]
define them with^ selector
(for example"@ethersproject/bytes": "^5.0.4"
). This means it pulls in the most recent release, e.g.@ethersproject/abstract-provider@npm:5.4.1
. This package release however is not backward compatible with our code, since it uses different structure (at the moment there is a problem with non-existentgetFeeData()
among others).Right now the only solution that works is pinning all the releases in the
resolutions
field withinpackage.json
to the ones in[email protected]
in our library and all the applications that uses our own library. This is a bit cumbersome and we would like to hide this from the user of the library. Do you see any better alternatives on how to remedy this issue?Beta Was this translation helpful? Give feedback.
All reactions