Closed Shaptic closed 3 months ago
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@babel/cli@7.24.6, npm/@babel/compat-data@7.24.6, npm/@babel/core@7.24.6, npm/@babel/eslint-plugin@7.24.6, npm/@babel/helper-compilation-targets@7.24.6, npm/@babel/helper-create-regexp-features-plugin@7.24.6, npm/@babel/helper-plugin-utils@7.24.6, npm/@babel/parser@7.24.6, npm/@babel/preset-env@7.24.6, npm/@babel/preset-typescript@7.24.6, npm/@babel/types@7.24.6, npm/@eslint-community/regexpp@4.10.0, npm/@stellar/stellar-base@12.0.0, npm/@types/lodash@4.17.4, npm/@types/node@20.12.13, npm/@typescript-eslint/parser@7.12.0, npm/acorn@8.11.3, npm/browserslist@4.23.0, npm/eslint-plugin-jsdoc@48.2.7, npm/lint-staged@15.2.5, npm/prettier@3.2.5, npm/rfdc@1.3.1, npm/webpack@5.91.0
Size Change: -48 B (0%)
Total Size: 12.1 MB
Filename | Size | Change |
---|---|---|
dist/stellar-sdk.js |
6.76 MB | +587 B (+0.01%) |
dist/stellar-sdk.min.js |
5.33 MB | -635 B (-0.01%) |
Added
contract
now exports theDEFAULT_TIMEOUT
(#984).contract.AssembledTransaction
now has:toXDR
andfromXDR
methods for serializing the transaction to and from XDR. These methods should be used in place ofAssembledTransaction.toJSON
andAssembledTransaction.fromJSON
for multi-auth signing. The JSON methods are now deprecated. Note: you must now callsimulate
on the transaction before the finalsignAndSend
call after all required signatures are gathered when using the XDR methods (#977).restoreFootprint
method which accepts therestorePreamble
returned when a simulation call fails due to some contract state that has expired. When invoking a contract function, one can now setrestore
totrue
in theMethodOptions
. When enabled, arestoreFootprint
transaction will be created and await signing when required (#991).sign
andsend
methods so that you can sign a transaction without sending it (signAndSend
still works as before; #922).contract.Client
now has atxFromXDR
method which should be used in place oftxFromJSON
for multi-auth signing (#977).Deprecated
contract.AssembledTransaction
,toJSON
andfromJSON
should be replaced withtoXDR
andfromXDR
.contract.Client
,txFromJSON
should be replaced withtxFromXDR
.Fixed
AssembledTransaction
withtx.raw = cloneFrom(tx.build)
, thetx.simulationData
will now be updated correctly (#985).