diff --git a/CHANGELOG.md b/CHANGELOG.md index 1eacd02f50..7f892fc6d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## [4.2.4] - 2024.1.25 + +### Fixed + +- Fix import of LoadBalancer to keep it working in browser + ## [4.2.3] - 2024.1.23 ### Updated diff --git a/package.json b/package.json index edf8ad4973..f0034c2888 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tatumio/tatum", - "version": "4.2.3", + "version": "4.2.4", "description": "Tatum JS SDK", "author": "Tatum", "repository": "https://github.com/tatumio/tatum-js", diff --git a/src/service/rpc/evm/BeaconV1EvmRpc.ts b/src/service/rpc/evm/BeaconV1EvmRpc.ts index 1e1503eb04..9ff8dfc7b1 100644 --- a/src/service/rpc/evm/BeaconV1EvmRpc.ts +++ b/src/service/rpc/evm/BeaconV1EvmRpc.ts @@ -2,7 +2,7 @@ import { Container, Service } from 'typedi' // Need to import like this to keep browser working import { GetI } from '../../../dto/GetI' -import { LoadBalancer } from '../generic' +import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractBeaconV1EvmRpc } from './AbstractBeaconV1EvmRpc' @Service({ diff --git a/src/service/rpc/evm/EvmArchiveLoadBalancerRpc.ts b/src/service/rpc/evm/EvmArchiveLoadBalancerRpc.ts index 61d65b3a6f..0a7d878a49 100644 --- a/src/service/rpc/evm/EvmArchiveLoadBalancerRpc.ts +++ b/src/service/rpc/evm/EvmArchiveLoadBalancerRpc.ts @@ -3,6 +3,7 @@ import { Container, Service } from 'typedi' import { EvmBasedRpcSuite, JsonRpcCall, JsonRpcResponse } from '../../../dto' import { Logger } from '../../../service/logger/logger.types' import { LOGGER, Utils } from '../../../util' +// Need to import like this to keep browser working import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractEvmRpc } from './AbstractEvmRpc' import { EvmUtils } from './EvmUtils' diff --git a/src/service/rpc/evm/EvmBeaconArchiveLoadBalancerRpc.ts b/src/service/rpc/evm/EvmBeaconArchiveLoadBalancerRpc.ts index 6194978fd2..0d1510d111 100644 --- a/src/service/rpc/evm/EvmBeaconArchiveLoadBalancerRpc.ts +++ b/src/service/rpc/evm/EvmBeaconArchiveLoadBalancerRpc.ts @@ -2,7 +2,7 @@ import { Container, Service } from 'typedi' import { EvmBasedBeaconRpcSuite } from '../../../dto' // Need to import like this to keep browser working -import { LoadBalancer } from '../generic' +import { LoadBalancer } from '../generic/LoadBalancer' import { BeaconV1EvmRpc } from './BeaconV1EvmRpc' import { EvmArchiveLoadBalancerRpc } from './EvmArchiveLoadBalancerRpc' diff --git a/src/service/rpc/evm/EvmLoadBalancerRpc.ts b/src/service/rpc/evm/EvmLoadBalancerRpc.ts index 4838f61fd5..7a91d776ff 100644 --- a/src/service/rpc/evm/EvmLoadBalancerRpc.ts +++ b/src/service/rpc/evm/EvmLoadBalancerRpc.ts @@ -3,6 +3,7 @@ import { Container, Service } from 'typedi' import { EvmBasedRpcSuite, JsonRpcCall, JsonRpcResponse } from '../../../dto' import { Logger } from '../../../service/logger/logger.types' import { LOGGER, Utils } from '../../../util' +// Need to import like this to keep browser working import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractEvmRpc } from './AbstractEvmRpc' diff --git a/src/service/rpc/evm/NativeEvmArchiveLoadBalancerRpc.ts b/src/service/rpc/evm/NativeEvmArchiveLoadBalancerRpc.ts index c0b9497f32..0b5ee34551 100644 --- a/src/service/rpc/evm/NativeEvmArchiveLoadBalancerRpc.ts +++ b/src/service/rpc/evm/NativeEvmArchiveLoadBalancerRpc.ts @@ -4,6 +4,7 @@ import { JsonRpcCall, JsonRpcResponse, NATIVE_PREFIX_MAPPING, Network } from '.. import { NativeEvmBasedRpcSuite } from '../../../dto/rpc/NativeEvmBasedRpcInterface' import { Logger } from '../../../service/logger/logger.types' import { CONFIG, LOGGER, Utils } from '../../../util' +// Need to import like this to keep browser working import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractNativeEvmRpc } from './AbstractNativeEvmRpc' import { EvmUtils } from './EvmUtils' diff --git a/src/service/rpc/evm/TronLoadBalancerRpc.ts b/src/service/rpc/evm/TronLoadBalancerRpc.ts index a626f3bade..e21119709a 100644 --- a/src/service/rpc/evm/TronLoadBalancerRpc.ts +++ b/src/service/rpc/evm/TronLoadBalancerRpc.ts @@ -4,6 +4,7 @@ import { EvmBasedRpcSuite, JsonRpcCall, JsonRpcResponse } from '../../../dto' import { PostI } from '../../../dto/PostI' import { Logger } from '../../../service/logger/logger.types' import { LOGGER, Utils } from '../../../util' +// Need to import like this to keep browser working import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractTronRpc } from './AbstractTronRpc' diff --git a/src/service/rpc/other/AlgorandAlgodLoadBalancerRpc.ts b/src/service/rpc/other/AlgorandAlgodLoadBalancerRpc.ts index 6cc3eaaff7..2957f043f4 100644 --- a/src/service/rpc/other/AlgorandAlgodLoadBalancerRpc.ts +++ b/src/service/rpc/other/AlgorandAlgodLoadBalancerRpc.ts @@ -2,7 +2,8 @@ import { Container, Service } from 'typedi' import { GetI } from '../../../dto/GetI' import { PostI } from '../../../dto/PostI' -import { LoadBalancer } from '../generic' +// Need to import like this to keep browser working +import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractAlgorandAlgodRpc } from './AbstractAlgorandAlgodRpc' @Service({ diff --git a/src/service/rpc/other/AlgorandIndexerLoadBalancerRpc.ts b/src/service/rpc/other/AlgorandIndexerLoadBalancerRpc.ts index 195770b2a3..dc64c2c8f8 100644 --- a/src/service/rpc/other/AlgorandIndexerLoadBalancerRpc.ts +++ b/src/service/rpc/other/AlgorandIndexerLoadBalancerRpc.ts @@ -1,7 +1,8 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { Container, Service } from 'typedi' import { GetI } from '../../../dto/GetI' -import { LoadBalancer } from '../generic' +// Need to import like this to keep browser working +import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractAlgorandIndexerRpc } from './AbstractAlgorandIndexerRpc' @Service({ diff --git a/src/service/rpc/other/BnbLoadBalancerRpc.ts b/src/service/rpc/other/BnbLoadBalancerRpc.ts index 41ba8330d2..06ca433acf 100644 --- a/src/service/rpc/other/BnbLoadBalancerRpc.ts +++ b/src/service/rpc/other/BnbLoadBalancerRpc.ts @@ -4,7 +4,8 @@ import { Container, Service } from 'typedi' import { JsonRpcResponse } from '../../../dto' import { PostI } from '../../../dto/PostI' import { BnbRpcSuite, JsonBnbRpcCall } from '../../../dto/rpc/BnbRpcSuite' -import { LoadBalancer } from '../generic' +// Need to import like this to keep browser working +import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractBnbRpc } from './AbstractBnbRpc' @Service({ diff --git a/src/service/rpc/other/StellarLoadBalancerRpc.ts b/src/service/rpc/other/StellarLoadBalancerRpc.ts index 4e780789df..a2fc87ec45 100644 --- a/src/service/rpc/other/StellarLoadBalancerRpc.ts +++ b/src/service/rpc/other/StellarLoadBalancerRpc.ts @@ -2,7 +2,8 @@ import { Container, Service } from 'typedi' import { GetI } from '../../../dto/GetI' import { PostI } from '../../../dto/PostI' -import { LoadBalancer } from '../generic' +// Need to import like this to keep browser working +import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractStellarRpc } from './AbstractStellarRpc' @Service({ diff --git a/src/service/rpc/other/TezosLoadBalancerRpc.ts b/src/service/rpc/other/TezosLoadBalancerRpc.ts index 14c5459c34..8e7975b788 100644 --- a/src/service/rpc/other/TezosLoadBalancerRpc.ts +++ b/src/service/rpc/other/TezosLoadBalancerRpc.ts @@ -4,7 +4,8 @@ import { JsonRpcCall, JsonRpcResponse } from '../../../dto' import { GetI } from '../../../dto/GetI' import { PostI } from '../../../dto/PostI' import { Utils } from '../../../util' -import { LoadBalancer } from '../generic' +// Need to import like this to keep browser working +import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractTezosRpc } from './AbstractTezosRpc' @Service({ diff --git a/src/service/rpc/utxo/UtxoLoadBalancerRpcEstimateFee.ts b/src/service/rpc/utxo/UtxoLoadBalancerRpcEstimateFee.ts index 0b12757785..74c3cbcbda 100644 --- a/src/service/rpc/utxo/UtxoLoadBalancerRpcEstimateFee.ts +++ b/src/service/rpc/utxo/UtxoLoadBalancerRpcEstimateFee.ts @@ -3,7 +3,7 @@ import { Container, Service } from 'typedi' import { JsonRpcCall, JsonRpcResponse, UtxoBasedRpcSuiteEstimateFee } from '../../../dto' import { Utils } from '../../../util' // Need to import like this to keep browser working -import { LoadBalancer } from '../generic' +import { LoadBalancer } from '../generic/LoadBalancer' import { AbstractUtxoRpcEstimateFee } from './AbstractUtxoRpcEstimateFee' @Service({