@swapkit/core 4.6.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/types/index.d.ts +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @swapkit/core
|
|
2
2
|
|
|
3
|
+
## 4.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#336](https://github.com/swapkit/sdk/pull/336) [`82ddf32`](https://github.com/swapkit/sdk/commit/82ddf329eba718c23239bdea60dc070f4c8b4b34) Thanks [@towanTG](https://github.com/towanTG)! - Upgrade `@stellar/stellar-sdk` from 15.1.0 to 16.1.0 to fix Stellar in browser bundles. v15 mapped the `browser` export condition to a minified UMD bundle, so bundlers like Vite resolved a namespace without named exports — every lazy `const { Keypair } = await import("@stellar/stellar-sdk")` yielded `undefined` in the browser. The fallout was silent: XLM keystore wallets registered with an empty address, `getBalance` failed with `toolbox_stellar_account_not_found` without a Horizon call ever firing, and transaction signing (including the trustline approval flow) was broken in web apps, while Node/Bun (and therefore all tests) resolved the `default` condition and worked. v16 ships native ESM with no `browser` condition, restoring correct named-export resolution everywhere. No SwapKit API changes. (via @swapkit/toolboxes@4.26.1)
|
|
8
|
+
- Update generated token lists. (via @swapkit/toolboxes@4.26.1)
|
|
9
|
+
|
|
3
10
|
## 4.6.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4930,9 +4930,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4930
4930
|
hash?: () => Buffer;
|
|
4931
4931
|
toXDR: () => string;
|
|
4932
4932
|
}) => Promise<string>;
|
|
4933
|
-
createTransaction: ({ recipient, assetValue, memo, sender, sweep }: import("@swapkit/toolboxes/stellar/types").StellarCreateTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction
|
|
4933
|
+
createTransaction: ({ recipient, assetValue, memo, sender, sweep }: import("@swapkit/toolboxes/stellar/types").StellarCreateTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction>;
|
|
4934
4934
|
createTrustline: ({ assetValue, limit }: import("@swapkit/toolboxes/stellar/types").StellarTrustlineParams) => Promise<string>;
|
|
4935
|
-
createTrustlineTransaction: ({ assetValue, limit, sender }: import("@swapkit/toolboxes/stellar/types").StellarCreateTrustlineTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction
|
|
4935
|
+
createTrustlineTransaction: ({ assetValue, limit, sender }: import("@swapkit/toolboxes/stellar/types").StellarCreateTrustlineTransactionParams) => Promise<import("@stellar/stellar-sdk").Transaction>;
|
|
4936
4936
|
estimateTransactionFee: () => Promise<AssetValue>;
|
|
4937
4937
|
getAddress: () => Promise<string>;
|
|
4938
4938
|
getBalance: (checkAddress?: string) => Promise<AssetValue[]>;
|
|
@@ -4945,7 +4945,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
4945
4945
|
}) => Promise<string>;
|
|
4946
4946
|
signTransaction: (transaction: {
|
|
4947
4947
|
toXDR: () => string;
|
|
4948
|
-
}) => Promise<import("@stellar/stellar-sdk").Transaction
|
|
4948
|
+
}) => Promise<import("@stellar/stellar-sdk").Transaction | import("@stellar/stellar-sdk").FeeBumpTransaction>;
|
|
4949
4949
|
transfer: ({ recipient, assetValue, memo, sweep }: import("@swapkit/toolboxes/stellar/types").StellarTransferParams) => Promise<string>;
|
|
4950
4950
|
validateAddress: typeof import("@swapkit/toolboxes/stellar/toolbox").validateStellarAddress;
|
|
4951
4951
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "swapkit-dev",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@swapkit/helpers": "4.19.
|
|
5
|
-
"@swapkit/plugins": "4.7.
|
|
6
|
-
"@swapkit/toolboxes": "4.26.
|
|
7
|
-
"@swapkit/wallet-core": "4.3.
|
|
4
|
+
"@swapkit/helpers": "4.19.1",
|
|
5
|
+
"@swapkit/plugins": "4.7.1",
|
|
6
|
+
"@swapkit/toolboxes": "4.26.1",
|
|
7
|
+
"@swapkit/wallet-core": "4.3.19"
|
|
8
8
|
},
|
|
9
9
|
"description": "SwapKit - Core",
|
|
10
10
|
"devDependencies": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"type-check:go": "tsgo"
|
|
37
37
|
},
|
|
38
38
|
"type": "module",
|
|
39
|
-
"version": "4.6.
|
|
39
|
+
"version": "4.6.1"
|
|
40
40
|
}
|