@solana/web3.js 1.51.1 → 1.52.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.
@@ -2230,6 +2230,8 @@ function decodeData(type, buffer) {
2230
2230
  const FeeCalculatorLayout = BufferLayout.nu64('lamportsPerSignature');
2231
2231
  /**
2232
2232
  * Calculator for transaction fees.
2233
+ *
2234
+ * @deprecated Deprecated since Solana v1.8.0.
2233
2235
  */
2234
2236
 
2235
2237
  /**
@@ -5853,7 +5855,7 @@ const LogsNotificationResult = type({
5853
5855
 
5854
5856
  /** @internal */
5855
5857
  const COMMON_HTTP_HEADERS = {
5856
- 'solana-client': `js/${(_process$env$npm_pack = "1.51.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
5858
+ 'solana-client': `js/${(_process$env$npm_pack = "1.52.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
5857
5859
  };
5858
5860
  /**
5859
5861
  * A connection to a fullnode JSON RPC endpoint
@@ -6294,8 +6296,13 @@ class Connection {
6294
6296
  */
6295
6297
 
6296
6298
 
6297
- async getParsedAccountInfo(publicKey, commitment) {
6298
- const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed');
6299
+ async getParsedAccountInfo(publicKey, commitmentOrConfig) {
6300
+ const {
6301
+ commitment,
6302
+ config
6303
+ } = extractCommitmentFromConfig(commitmentOrConfig);
6304
+
6305
+ const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
6299
6306
 
6300
6307
  const unsafeRes = await this._rpcRequest('getAccountInfo', args);
6301
6308
  const res = create(unsafeRes, jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));