diff --git a/packages/0xsequence/CHANGELOG.md b/packages/0xsequence/CHANGELOG.md index caf3570ec..63f729fec 100644 --- a/packages/0xsequence/CHANGELOG.md +++ b/packages/0xsequence/CHANGELOG.md @@ -1,5 +1,29 @@ # 0xsequence +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/account@1.10.11 + - @0xsequence/api@1.10.11 + - @0xsequence/auth@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/guard@1.10.11 + - @0xsequence/indexer@1.10.11 + - @0xsequence/metadata@1.10.11 + - @0xsequence/migration@1.10.11 + - @0xsequence/multicall@1.10.11 + - @0xsequence/network@1.10.11 + - @0xsequence/provider@1.10.11 + - @0xsequence/relayer@1.10.11 + - @0xsequence/sessions@1.10.11 + - @0xsequence/signhub@1.10.11 + - @0xsequence/utils@1.10.11 + - @0xsequence/wallet@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/0xsequence/package.json b/packages/0xsequence/package.json index 74e32e5d1..825731cb8 100644 --- a/packages/0xsequence/package.json +++ b/packages/0xsequence/package.json @@ -1,6 +1,6 @@ { "name": "0xsequence", - "version": "1.10.10", + "version": "1.10.11", "description": "Sequence: a modular web3 stack and smart wallet for Ethereum chains", "repository": "https://github.com/0xsequence/sequence.js", "source": "src/index.ts", diff --git a/packages/abi/CHANGELOG.md b/packages/abi/CHANGELOG.md index 9db8e72b3..1f9fd90d5 100644 --- a/packages/abi/CHANGELOG.md +++ b/packages/abi/CHANGELOG.md @@ -1,5 +1,11 @@ # @0xsequence/abi +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen + ## 1.10.10 ### Patch Changes diff --git a/packages/abi/package.json b/packages/abi/package.json index fc7323ba1..2ecfec299 100644 --- a/packages/abi/package.json +++ b/packages/abi/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/abi", - "version": "1.10.10", + "version": "1.10.11", "description": "abi sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/abi", "source": "src/index.ts", diff --git a/packages/account/CHANGELOG.md b/packages/account/CHANGELOG.md index cb8cf0a08..a439f7c8b 100644 --- a/packages/account/CHANGELOG.md +++ b/packages/account/CHANGELOG.md @@ -1,5 +1,20 @@ # @0xsequence/account +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/migration@1.10.11 + - @0xsequence/network@1.10.11 + - @0xsequence/relayer@1.10.11 + - @0xsequence/sessions@1.10.11 + - @0xsequence/utils@1.10.11 + - @0xsequence/wallet@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/account/package.json b/packages/account/package.json index 371db5225..facd04e7d 100644 --- a/packages/account/package.json +++ b/packages/account/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/account", - "version": "1.10.10", + "version": "1.10.11", "description": "tools for migrating sequence wallets to new versions", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/account", "source": "src/index.ts", diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index ce047bbed..ac9a30cdb 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/CHANGELOG.md @@ -1,5 +1,11 @@ # @0xsequence/api +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen + ## 1.10.10 ### Patch Changes diff --git a/packages/api/package.json b/packages/api/package.json index 85d05df5e..05ee31fdb 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/api", - "version": "1.10.10", + "version": "1.10.11", "description": "api sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/api", "source": "src/index.ts", diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 0384ad4af..2c512d892 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -2,7 +2,7 @@ export * from './api.gen' import { API as ApiRpc } from './api.gen' -const fetch = typeof global === 'object' ? global.fetch : window.fetch +const fetch = globalThis.fetch export class SequenceAPIClient extends ApiRpc { constructor( diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index 631ca73db..ebf814899 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/CHANGELOG.md @@ -1,5 +1,24 @@ # @0xsequence/auth +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/account@1.10.11 + - @0xsequence/api@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/indexer@1.10.11 + - @0xsequence/metadata@1.10.11 + - @0xsequence/migration@1.10.11 + - @0xsequence/network@1.10.11 + - @0xsequence/sessions@1.10.11 + - @0xsequence/signhub@1.10.11 + - @0xsequence/utils@1.10.11 + - @0xsequence/wallet@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/auth/package.json b/packages/auth/package.json index 06e0b0e92..8332abf4a 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/auth", - "version": "1.10.10", + "version": "1.10.11", "description": "auth sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/auth", "source": "src/index.ts", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 131fd04d7..ed954753d 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,13 @@ # @0xsequence/core +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index fc83c6404..5432dfe43 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/core", - "version": "1.10.10", + "version": "1.10.11", "description": "core primitives for interacting with the sequence wallet contracts", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/core", "source": "src/index.ts", diff --git a/packages/core/src/version.ts b/packages/core/src/version.ts index 6ad5b9296..b26fdd68d 100644 --- a/packages/core/src/version.ts +++ b/packages/core/src/version.ts @@ -1 +1 @@ -export const VERSION = '1.10.10' +export const VERSION = '1.10.11' diff --git a/packages/deployer/CHANGELOG.md b/packages/deployer/CHANGELOG.md index 6c9d51164..cd9eca2c3 100644 --- a/packages/deployer/CHANGELOG.md +++ b/packages/deployer/CHANGELOG.md @@ -1,5 +1,13 @@ # @0xsequence/deployer +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/utils@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/deployer/package.json b/packages/deployer/package.json index 7236eaa2b..5d282973d 100644 --- a/packages/deployer/package.json +++ b/packages/deployer/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/deployer", - "version": "1.10.10", + "version": "1.10.11", "description": "deployer sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/deployer", "source": "src/index.ts", diff --git a/packages/estimator/CHANGELOG.md b/packages/estimator/CHANGELOG.md index b20e79ebc..b9d4b6237 100644 --- a/packages/estimator/CHANGELOG.md +++ b/packages/estimator/CHANGELOG.md @@ -1,5 +1,15 @@ # @0xsequence/estimator +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/utils@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/estimator/package.json b/packages/estimator/package.json index 91f3263c1..739b048c1 100644 --- a/packages/estimator/package.json +++ b/packages/estimator/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/estimator", - "version": "1.10.10", + "version": "1.10.11", "description": "estimator sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/estimator", "source": "src/index.ts", diff --git a/packages/guard/CHANGELOG.md b/packages/guard/CHANGELOG.md index f9f63a105..5729a5d02 100644 --- a/packages/guard/CHANGELOG.md +++ b/packages/guard/CHANGELOG.md @@ -1,5 +1,16 @@ # @0xsequence/guard +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/account@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/signhub@1.10.11 + - @0xsequence/utils@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/guard/package.json b/packages/guard/package.json index b8da77635..542eeeaf0 100644 --- a/packages/guard/package.json +++ b/packages/guard/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/guard", - "version": "1.10.10", + "version": "1.10.11", "description": "guard sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/guard", "source": "src/index.ts", diff --git a/packages/guard/src/signer.ts b/packages/guard/src/signer.ts index ba0c5288a..b467b68b6 100644 --- a/packages/guard/src/signer.ts +++ b/packages/guard/src/signer.ts @@ -5,7 +5,7 @@ import { encodeTypedDataDigest, TypedData } from '@0xsequence/utils' import { BytesLike, ethers, TypedDataDomain } from 'ethers' import { AuthMethodsReturn, Guard, RecoveryCode as GuardRecoveryCode } from './guard.gen' -const fetch = typeof global === 'object' ? global.fetch : window.fetch +const fetch = globalThis.fetch export class GuardSigner implements signers.SapientSigner { private guard: Guard diff --git a/packages/indexer/CHANGELOG.md b/packages/indexer/CHANGELOG.md index 0d1c17a2e..8ac58a7b6 100644 --- a/packages/indexer/CHANGELOG.md +++ b/packages/indexer/CHANGELOG.md @@ -1,5 +1,11 @@ # @0xsequence/indexer +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen + ## 1.10.10 ### Patch Changes diff --git a/packages/indexer/package.json b/packages/indexer/package.json index 753c3d27d..6160f98cf 100644 --- a/packages/indexer/package.json +++ b/packages/indexer/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/indexer", - "version": "1.10.10", + "version": "1.10.11", "description": "indexer sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/indexer", "source": "src/index.ts", diff --git a/packages/indexer/src/index.ts b/packages/indexer/src/index.ts index 544c2ce4b..4c85e86f3 100644 --- a/packages/indexer/src/index.ts +++ b/packages/indexer/src/index.ts @@ -2,7 +2,7 @@ export * from './indexer.gen' import { Indexer as IndexerRpc } from './indexer.gen' -const fetch = typeof global === 'object' ? global.fetch : window.fetch +const fetch = globalThis.fetch export class SequenceIndexer extends IndexerRpc { constructor( diff --git a/packages/metadata/CHANGELOG.md b/packages/metadata/CHANGELOG.md index 2e6baef20..6d0710446 100644 --- a/packages/metadata/CHANGELOG.md +++ b/packages/metadata/CHANGELOG.md @@ -1,5 +1,11 @@ # @0xsequence/metadata +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen + ## 1.10.10 ### Patch Changes diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 258e82222..efd352440 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/metadata", - "version": "1.10.10", + "version": "1.10.11", "description": "metadata sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/metadata", "source": "src/index.ts", diff --git a/packages/metadata/src/index.ts b/packages/metadata/src/index.ts index 383ee3920..d5d463add 100644 --- a/packages/metadata/src/index.ts +++ b/packages/metadata/src/index.ts @@ -2,7 +2,7 @@ export * from './metadata.gen' import { Metadata as MetadataRpc, Collections as CollectionsRpc } from './metadata.gen' -const fetch = typeof global === 'object' ? global.fetch : window.fetch +const fetch = globalThis.fetch export class SequenceMetadata extends MetadataRpc { constructor( diff --git a/packages/migration/CHANGELOG.md b/packages/migration/CHANGELOG.md index 3cde48188..be874f34d 100644 --- a/packages/migration/CHANGELOG.md +++ b/packages/migration/CHANGELOG.md @@ -1,5 +1,15 @@ # @0xsequence/migration +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/wallet@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/migration/package.json b/packages/migration/package.json index cde595272..6199a2e46 100644 --- a/packages/migration/package.json +++ b/packages/migration/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/migration", - "version": "1.10.10", + "version": "1.10.11", "description": "tools for migrating sequence wallets to new versions", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/migration", "source": "src/index.ts", diff --git a/packages/multicall/CHANGELOG.md b/packages/multicall/CHANGELOG.md index 1cec87cdf..7421c0f4c 100644 --- a/packages/multicall/CHANGELOG.md +++ b/packages/multicall/CHANGELOG.md @@ -1,5 +1,15 @@ # @0xsequence/multicall +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/network@1.10.11 + - @0xsequence/utils@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/multicall/package.json b/packages/multicall/package.json index fc3436a0f..4867e24b9 100644 --- a/packages/multicall/package.json +++ b/packages/multicall/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/multicall", - "version": "1.10.10", + "version": "1.10.11", "description": "multicall sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/multicall", "source": "src/index.ts", diff --git a/packages/network/CHANGELOG.md b/packages/network/CHANGELOG.md index d403c7289..ba64db513 100644 --- a/packages/network/CHANGELOG.md +++ b/packages/network/CHANGELOG.md @@ -1,5 +1,16 @@ # @0xsequence/network +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/core@1.10.11 + - @0xsequence/indexer@1.10.11 + - @0xsequence/relayer@1.10.11 + - @0xsequence/utils@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/network/package.json b/packages/network/package.json index 29d940542..cecc13675 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/network", - "version": "1.10.10", + "version": "1.10.11", "description": "network sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/network", "source": "src/index.ts", diff --git a/packages/provider/CHANGELOG.md b/packages/provider/CHANGELOG.md index c3793e177..f7370ecf0 100644 --- a/packages/provider/CHANGELOG.md +++ b/packages/provider/CHANGELOG.md @@ -1,5 +1,21 @@ # @0xsequence/provider +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/account@1.10.11 + - @0xsequence/auth@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/migration@1.10.11 + - @0xsequence/network@1.10.11 + - @0xsequence/relayer@1.10.11 + - @0xsequence/utils@1.10.11 + - @0xsequence/wallet@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/provider/package.json b/packages/provider/package.json index 7cf554d73..b30fa0f08 100644 --- a/packages/provider/package.json +++ b/packages/provider/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/provider", - "version": "1.10.10", + "version": "1.10.11", "description": "provider sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/provider", "source": "src/index.ts", diff --git a/packages/react-native/CHANGELOG.md b/packages/react-native/CHANGELOG.md index 819d5efab..5fa44401a 100644 --- a/packages/react-native/CHANGELOG.md +++ b/packages/react-native/CHANGELOG.md @@ -1,5 +1,13 @@ # @0xsequence/react-native +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/waas@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 79b7c2389..81fd4d127 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/react-native", - "version": "1.10.10", + "version": "1.10.11", "description": "react-native compat-lib sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/react-native", "source": "src/index.ts", diff --git a/packages/relayer/CHANGELOG.md b/packages/relayer/CHANGELOG.md index 5f6b404a0..2f460be29 100644 --- a/packages/relayer/CHANGELOG.md +++ b/packages/relayer/CHANGELOG.md @@ -1,5 +1,15 @@ # @0xsequence/relayer +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/utils@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/relayer/package.json b/packages/relayer/package.json index 1fa2db4d5..7771f4bd9 100644 --- a/packages/relayer/package.json +++ b/packages/relayer/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/relayer", - "version": "1.10.10", + "version": "1.10.11", "description": "relayer sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/relayer", "source": "src/index.ts", diff --git a/packages/relayer/src/rpc-relayer/index.ts b/packages/relayer/src/rpc-relayer/index.ts index 728035b7e..ff7fb32f3 100644 --- a/packages/relayer/src/rpc-relayer/index.ts +++ b/packages/relayer/src/rpc-relayer/index.ts @@ -31,7 +31,7 @@ export function isRpcRelayerOptions(obj: any): obj is RpcRelayerOptions { ) } -const fetch = typeof global === 'object' ? global.fetch : window.fetch +const fetch = globalThis.fetch // TODO: rename to SequenceRelayer export class RpcRelayer implements Relayer { diff --git a/packages/replacer/CHANGELOG.md b/packages/replacer/CHANGELOG.md index ec31060f7..90e725d98 100644 --- a/packages/replacer/CHANGELOG.md +++ b/packages/replacer/CHANGELOG.md @@ -1,5 +1,14 @@ # @0xsequence/replacer +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/core@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/replacer/package.json b/packages/replacer/package.json index 4f2572dc5..429e43da5 100644 --- a/packages/replacer/package.json +++ b/packages/replacer/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/replacer", - "version": "1.10.10", + "version": "1.10.11", "description": "EIP-5719 client implementation", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/replacer", "source": "src/index.ts", diff --git a/packages/sessions/CHANGELOG.md b/packages/sessions/CHANGELOG.md index 316411ff6..32edf3c01 100644 --- a/packages/sessions/CHANGELOG.md +++ b/packages/sessions/CHANGELOG.md @@ -1,5 +1,15 @@ # @0xsequence/sessions +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/core@1.10.11 + - @0xsequence/migration@1.10.11 + - @0xsequence/replacer@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/sessions/package.json b/packages/sessions/package.json index 692637442..940672511 100644 --- a/packages/sessions/package.json +++ b/packages/sessions/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/sessions", - "version": "1.10.10", + "version": "1.10.11", "description": "tools for migrating sequence wallets to new versions", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/sessions", "source": "src/index.ts", diff --git a/packages/signhub/CHANGELOG.md b/packages/signhub/CHANGELOG.md index b726f2f5d..e9399c308 100644 --- a/packages/signhub/CHANGELOG.md +++ b/packages/signhub/CHANGELOG.md @@ -1,5 +1,13 @@ # @0xsequence/signhub +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/core@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/signhub/package.json b/packages/signhub/package.json index 7ad6d5a48..05719596d 100644 --- a/packages/signhub/package.json +++ b/packages/signhub/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/signhub", - "version": "1.10.10", + "version": "1.10.11", "description": "orchestrates a series of signers, provides visibility into the signing process, and to the signers themselves", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/signhub", "source": "src/index.ts", diff --git a/packages/simulator/CHANGELOG.md b/packages/simulator/CHANGELOG.md index 5c3a775f8..806d4de2e 100644 --- a/packages/simulator/CHANGELOG.md +++ b/packages/simulator/CHANGELOG.md @@ -1,5 +1,13 @@ # @0xsequence/simulator +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/core@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/simulator/package.json b/packages/simulator/package.json index a7000888b..c70a6a058 100644 --- a/packages/simulator/package.json +++ b/packages/simulator/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/simulator", - "version": "1.10.10", + "version": "1.10.11", "description": "simulator sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/simulator", "source": "src/index.ts", diff --git a/packages/tests/CHANGELOG.md b/packages/tests/CHANGELOG.md index 2a568de9c..3ea72a795 100644 --- a/packages/tests/CHANGELOG.md +++ b/packages/tests/CHANGELOG.md @@ -1,5 +1,13 @@ # @0xsequence/tests +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/core@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/tests/package.json b/packages/tests/package.json index 1edb8794f..bb0cae959 100644 --- a/packages/tests/package.json +++ b/packages/tests/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/tests", - "version": "1.10.10", + "version": "1.10.11", "description": "test tools for sequence.js", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/tests", "source": "src/index.ts", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index a9c929d7f..9c575592a 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @0xsequence/utils +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen + ## 1.10.10 ### Patch Changes diff --git a/packages/utils/package.json b/packages/utils/package.json index d33711107..d72012f0b 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/utils", - "version": "1.10.10", + "version": "1.10.11", "description": "utils sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/utils", "source": "src/index.ts", diff --git a/packages/waas-ethers/CHANGELOG.md b/packages/waas-ethers/CHANGELOG.md index 89ce9273c..863c6ab53 100644 --- a/packages/waas-ethers/CHANGELOG.md +++ b/packages/waas-ethers/CHANGELOG.md @@ -1,5 +1,13 @@ # @0xsequence/waas-ethers +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/waas@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/waas-ethers/package.json b/packages/waas-ethers/package.json index 84c4d7c02..530253d1e 100644 --- a/packages/waas-ethers/package.json +++ b/packages/waas-ethers/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/waas-ethers", - "version": "1.10.10", + "version": "1.10.11", "description": "waas ethers wrapper", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/waas", "source": "src/index.ts", diff --git a/packages/waas/CHANGELOG.md b/packages/waas/CHANGELOG.md index 3257fd226..54a249b1b 100644 --- a/packages/waas/CHANGELOG.md +++ b/packages/waas/CHANGELOG.md @@ -1,5 +1,14 @@ # @0xsequence/waas +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/core@1.10.11 + - @0xsequence/network@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/waas/package.json b/packages/waas/package.json index d6a102c45..2d1572035 100644 --- a/packages/waas/package.json +++ b/packages/waas/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/waas", - "version": "1.10.10", + "version": "1.10.11", "description": "waas session client", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/waas", "source": "src/index.ts", diff --git a/packages/waas/src/auth.ts b/packages/waas/src/auth.ts index eb285118a..9e2dc5549 100644 --- a/packages/waas/src/auth.ts +++ b/packages/waas/src/auth.ts @@ -707,7 +707,7 @@ export class SequenceWaaS { // Special version of fetch that keeps track of the last seen Date header async fetch(input: RequestInfo, init?: RequestInit) { - const res = await window.fetch(input, init) + const res = await globalThis.fetch(input, init) const headerValue = res.headers.get('date') if (headerValue) { this.lastDate = new Date(headerValue) diff --git a/packages/waas/src/clients/intent.gen.ts b/packages/waas/src/clients/intent.gen.ts index bb8189be9..eb258e382 100644 --- a/packages/waas/src/clients/intent.gen.ts +++ b/packages/waas/src/clients/intent.gen.ts @@ -3,7 +3,7 @@ // -- // Code generated by webrpc-gen@v0.19.3 with typescript generator. DO NOT EDIT. // -// webrpc-gen -schema=intent.ridl -target=typescript -client -out=./intent.gen.ts +// webrpc-gen -schema=intent.ridl -target=typescript -out=./intent.gen.ts // WebRPC description and code-gen version export const WebRPCVersion = 'v1' @@ -352,242 +352,3 @@ export interface Account { issuer?: string email?: string } - -const createHTTPRequest = (body: object = {}, headers: object = {}, signal: AbortSignal | null = null): object => { - return { - method: 'POST', - headers: { ...headers, 'Content-Type': 'application/json' }, - body: JSON.stringify(body || {}), - signal - } -} - -const buildResponse = (res: Response): Promise => { - return res.text().then(text => { - let data - try { - data = JSON.parse(text) - } catch (error) { - let message = '' - if (error instanceof Error) { - message = error.message - } - throw WebrpcBadResponseError.new({ - status: res.status, - cause: `JSON.parse(): ${message}: response text: ${text}` - }) - } - if (!res.ok) { - const code: number = typeof data.code === 'number' ? data.code : 0 - throw (webrpcErrorByCode[code] || WebrpcError).new(data) - } - return data - }) -} - -// -// Errors -// - -export class WebrpcError extends Error { - name: string - code: number - message: string - status: number - cause?: string - - /** @deprecated Use message instead of msg. Deprecated in webrpc v0.11.0. */ - msg: string - - constructor(name: string, code: number, message: string, status: number, cause?: string) { - super(message) - this.name = name || 'WebrpcError' - this.code = typeof code === 'number' ? code : 0 - this.message = message || `endpoint error ${this.code}` - this.msg = this.message - this.status = typeof status === 'number' ? status : 0 - this.cause = cause - Object.setPrototypeOf(this, WebrpcError.prototype) - } - - static new(payload: any): WebrpcError { - return new this(payload.error, payload.code, payload.message || payload.msg, payload.status, payload.cause) - } -} - -// Webrpc errors - -export class WebrpcEndpointError extends WebrpcError { - constructor( - name: string = 'WebrpcEndpoint', - code: number = 0, - message: string = 'endpoint error', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcEndpointError.prototype) - } -} - -export class WebrpcRequestFailedError extends WebrpcError { - constructor( - name: string = 'WebrpcRequestFailed', - code: number = -1, - message: string = 'request failed', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcRequestFailedError.prototype) - } -} - -export class WebrpcBadRouteError extends WebrpcError { - constructor( - name: string = 'WebrpcBadRoute', - code: number = -2, - message: string = 'bad route', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcBadRouteError.prototype) - } -} - -export class WebrpcBadMethodError extends WebrpcError { - constructor( - name: string = 'WebrpcBadMethod', - code: number = -3, - message: string = 'bad method', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcBadMethodError.prototype) - } -} - -export class WebrpcBadRequestError extends WebrpcError { - constructor( - name: string = 'WebrpcBadRequest', - code: number = -4, - message: string = 'bad request', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcBadRequestError.prototype) - } -} - -export class WebrpcBadResponseError extends WebrpcError { - constructor( - name: string = 'WebrpcBadResponse', - code: number = -5, - message: string = 'bad response', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcBadResponseError.prototype) - } -} - -export class WebrpcServerPanicError extends WebrpcError { - constructor( - name: string = 'WebrpcServerPanic', - code: number = -6, - message: string = 'server panic', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcServerPanicError.prototype) - } -} - -export class WebrpcInternalErrorError extends WebrpcError { - constructor( - name: string = 'WebrpcInternalError', - code: number = -7, - message: string = 'internal error', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcInternalErrorError.prototype) - } -} - -export class WebrpcClientDisconnectedError extends WebrpcError { - constructor( - name: string = 'WebrpcClientDisconnected', - code: number = -8, - message: string = 'client disconnected', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcClientDisconnectedError.prototype) - } -} - -export class WebrpcStreamLostError extends WebrpcError { - constructor( - name: string = 'WebrpcStreamLost', - code: number = -9, - message: string = 'stream lost', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcStreamLostError.prototype) - } -} - -export class WebrpcStreamFinishedError extends WebrpcError { - constructor( - name: string = 'WebrpcStreamFinished', - code: number = -10, - message: string = 'stream finished', - status: number = 0, - cause?: string - ) { - super(name, code, message, status, cause) - Object.setPrototypeOf(this, WebrpcStreamFinishedError.prototype) - } -} - -// Schema errors - -export enum errors { - WebrpcEndpoint = 'WebrpcEndpoint', - WebrpcRequestFailed = 'WebrpcRequestFailed', - WebrpcBadRoute = 'WebrpcBadRoute', - WebrpcBadMethod = 'WebrpcBadMethod', - WebrpcBadRequest = 'WebrpcBadRequest', - WebrpcBadResponse = 'WebrpcBadResponse', - WebrpcServerPanic = 'WebrpcServerPanic', - WebrpcInternalError = 'WebrpcInternalError', - WebrpcClientDisconnected = 'WebrpcClientDisconnected', - WebrpcStreamLost = 'WebrpcStreamLost', - WebrpcStreamFinished = 'WebrpcStreamFinished' -} - -const webrpcErrorByCode: { [code: number]: any } = { - [0]: WebrpcEndpointError, - [-1]: WebrpcRequestFailedError, - [-2]: WebrpcBadRouteError, - [-3]: WebrpcBadMethodError, - [-4]: WebrpcBadRequestError, - [-5]: WebrpcBadResponseError, - [-6]: WebrpcServerPanicError, - [-7]: WebrpcInternalErrorError, - [-8]: WebrpcClientDisconnectedError, - [-9]: WebrpcStreamLostError, - [-10]: WebrpcStreamFinishedError -} - -export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise diff --git a/packages/waas/src/index.ts b/packages/waas/src/index.ts index dae112e9e..64a374543 100644 --- a/packages/waas/src/index.ts +++ b/packages/waas/src/index.ts @@ -12,3 +12,26 @@ export type { SecureStoreBackend } from './secure-store' export * from './intents/responses' export * from './clients/intent.gen' +export { + AccountAlreadyLinkedError, + AnswerIncorrectError, + ChallengeExpiredError, + EmailAlreadyInUseError, + ProofVerificationFailedError, + TenantNotFoundError, + TooManyAttemptsError, + UnauthorizedError, + WebrpcBadMethodError, + WebrpcBadRequestError, + WebrpcBadResponseError, + WebrpcBadRouteError, + WebrpcClientDisconnectedError, + WebrpcEndpointError, + WebrpcError, + WebrpcInternalErrorError, + WebrpcRequestFailedError, + WebrpcServerPanicError, + WebrpcStreamFinishedError, + WebrpcStreamLostError, + errors +} from './clients/authenticator.gen' diff --git a/packages/wallet/CHANGELOG.md b/packages/wallet/CHANGELOG.md index 0de9bcc9e..fcea57df6 100644 --- a/packages/wallet/CHANGELOG.md +++ b/packages/wallet/CHANGELOG.md @@ -1,5 +1,18 @@ # @0xsequence/wallet +## 1.10.11 + +### Patch Changes + +- waas: updated intent.gen without webrpc types, errors exported from authenticator.gen +- Updated dependencies + - @0xsequence/abi@1.10.11 + - @0xsequence/core@1.10.11 + - @0xsequence/network@1.10.11 + - @0xsequence/relayer@1.10.11 + - @0xsequence/signhub@1.10.11 + - @0xsequence/utils@1.10.11 + ## 1.10.10 ### Patch Changes diff --git a/packages/wallet/package.json b/packages/wallet/package.json index 3fcbc417e..86fdf0b51 100644 --- a/packages/wallet/package.json +++ b/packages/wallet/package.json @@ -1,6 +1,6 @@ { "name": "@0xsequence/wallet", - "version": "1.10.10", + "version": "1.10.11", "description": "wallet sub-package for Sequence", "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/wallet", "source": "src/index.ts",