@stellar/typescript-wallet-sdk 3.0.3 → 4.0.0-beta.1786560120405
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 +11 -0
- package/jest.e2e.config.js +11 -1
- package/jest.integration.config.js +11 -1
- package/lib/bundle.js +42692 -70966
- package/lib/bundle.js.map +1 -1
- package/lib/bundle_browser.js +33646 -437
- package/lib/bundle_browser.js.map +1 -1
- package/lib/walletSdk/Horizon/Transaction/TransactionBuilder.d.ts +3 -3
- package/package.json +5 -4
- package/src/shims/eventsource.js +45 -0
- package/src/walletSdk/Horizon/AccountService.ts +11 -4
- package/src/walletSdk/Horizon/Stellar.ts +2 -2
- package/src/walletSdk/Horizon/Transaction/TransactionBuilder.ts +16 -13
- package/test/accountService.test.ts +57 -1
- package/test/stellar.test.ts +65 -0
- package/test/toml.test.ts +102 -0
- package/tsconfig.json +1 -0
- package/webpack.config.js +11 -0
package/CHANGELOG.MD
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
# Release notes - Typescript Wallet SDK - 4.0.0
|
|
2
|
+
|
|
3
|
+
### BREAKING CHANGES
|
|
4
|
+
* Upgraded `@stellar/stellar-sdk` from `15.0.1` to `16.2.0` (#243)
|
|
5
|
+
* Minimum Node.js version raised from 20 to 22, as required by stellar-sdk v16 (#243)
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
* `AccountService.getHistory` no longer sends an empty paging cursor. stellar-sdk v16 serializes query params via `URLSearchParams`, so an undefined cursor was sent as the literal `cursor=undefined` and Horizon returned a 400 (#243)
|
|
9
|
+
* Withdrawal transactions now map malformed anchor-supplied memos to `WithdrawalTxMemoError` for every memo type (not just `hash`), matching v16's stricter `Memo` validation on untrusted input (#243)
|
|
10
|
+
* Internal source-account typing now uses stellar-sdk v16's `TransactionSource` interface (#243)
|
|
11
|
+
|
|
1
12
|
# Release notes - Typescript Wallet SDK - 3.0.3
|
|
2
13
|
|
|
3
14
|
### Fixed
|
package/jest.e2e.config.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
rootDir: "./",
|
|
3
3
|
preset: "ts-jest",
|
|
4
|
-
|
|
4
|
+
// @stellar/stellar-sdk v16 pulls in several ESM-only packages (directly or
|
|
5
|
+
// transitively) that must be transformed to run under Jest's CommonJS runtime.
|
|
6
|
+
transformIgnorePatterns: [
|
|
7
|
+
`/node_modules/(?!${[
|
|
8
|
+
"@stablelib",
|
|
9
|
+
"@noble",
|
|
10
|
+
"uint8array-extras",
|
|
11
|
+
"smol-toml",
|
|
12
|
+
"eventsource",
|
|
13
|
+
].join("|")})`,
|
|
14
|
+
],
|
|
5
15
|
transform: {
|
|
6
16
|
"^.+\\.(ts|tsx)?$": "ts-jest",
|
|
7
17
|
"^.+\\.(js|jsx)$": "babel-jest",
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
rootDir: "./",
|
|
3
3
|
preset: "ts-jest",
|
|
4
|
-
|
|
4
|
+
// @stellar/stellar-sdk v16 pulls in several ESM-only packages (directly or
|
|
5
|
+
// transitively) that must be transformed to run under Jest's CommonJS runtime.
|
|
6
|
+
transformIgnorePatterns: [
|
|
7
|
+
`/node_modules/(?!${[
|
|
8
|
+
"@stablelib",
|
|
9
|
+
"@noble",
|
|
10
|
+
"uint8array-extras",
|
|
11
|
+
"smol-toml",
|
|
12
|
+
"eventsource",
|
|
13
|
+
].join("|")})`,
|
|
14
|
+
],
|
|
5
15
|
transform: {
|
|
6
16
|
"^.+\\.(ts|tsx)?$": "ts-jest",
|
|
7
17
|
"^.+\\.(js|jsx)$": "babel-jest",
|