@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.
@@ -2262,6 +2262,8 @@ function decodeData(type, buffer) {
2262
2262
  const FeeCalculatorLayout = BufferLayout__namespace.nu64('lamportsPerSignature');
2263
2263
  /**
2264
2264
  * Calculator for transaction fees.
2265
+ *
2266
+ * @deprecated Deprecated since Solana v1.8.0.
2265
2267
  */
2266
2268
 
2267
2269
  /**
@@ -5883,7 +5885,7 @@ const LogsNotificationResult = superstruct.type({
5883
5885
 
5884
5886
  /** @internal */
5885
5887
  const COMMON_HTTP_HEADERS = {
5886
- 'solana-client': `js/${(_process$env$npm_pack = "1.51.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
5888
+ 'solana-client': `js/${(_process$env$npm_pack = "1.52.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
5887
5889
  };
5888
5890
  /**
5889
5891
  * A connection to a fullnode JSON RPC endpoint
@@ -6324,8 +6326,13 @@ class Connection {
6324
6326
  */
6325
6327
 
6326
6328
 
6327
- async getParsedAccountInfo(publicKey, commitment) {
6328
- const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed');
6329
+ async getParsedAccountInfo(publicKey, commitmentOrConfig) {
6330
+ const {
6331
+ commitment,
6332
+ config
6333
+ } = extractCommitmentFromConfig(commitmentOrConfig);
6334
+
6335
+ const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
6329
6336
 
6330
6337
  const unsafeRes = await this._rpcRequest('getAccountInfo', args);
6331
6338
  const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.nullable(ParsedAccountInfoResult)));