Closed dappnodedev closed 2 months ago
Dappnode bot has built and pinned the built packages to an IPFS node, for commit: e9e20dc586d11a5008d56cf0e145de74b53bd9f5
This is a development version and should only be installed for testing purposes.
Package dappmanager.dnp.dappnode.eth
Hash: /ipfs/QmYgH3yKFQuLZ1Ks273kfNjL5V2aArt8AooCNvnUNUc5Ft
(by dappnodebot/build-action)
This should not be necessary as it is already supported in another way
This PR refactors the
DappGetFetcher
class to improve the handling of dependencies and their version ranges. The main improvements include:Separation of Concerns:
processDependencies
method was introduced to handle two main responsibilities:Improved Optional Dependencies Handling:
mergeOptionalDependencies
method was introduced to inject optional dependencies into the main dependencies object only if the corresponding packages are installed.Enhanced Semver Range Handling:
parseSemverRangeToApmVersion
method was created to convert semver ranges like^x.x.x
,~x.x.x
,>x.x.x
, and>=x.x.x
to appropriate APM-compatible versions or the latest version (*
) if applicable.Code Readability and Maintainability: