@solana/web3.js 1.91.3 → 1.91.5
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/lib/index.browser.cjs.js +74 -79
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +74 -79
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +6 -79
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +5 -79
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +98 -100
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -2
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +74 -79
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -2
- package/src/connection.ts +5 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/web3.js",
|
|
3
|
-
"version": "1.91.
|
|
3
|
+
"version": "1.91.5",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"@noble/curves": "^1.2.0",
|
|
60
60
|
"@noble/hashes": "^1.3.3",
|
|
61
61
|
"@solana/buffer-layout": "^4.0.1",
|
|
62
|
+
"@solana/fast-stable-stringify": "workspace:*",
|
|
62
63
|
"agentkeepalive": "^4.5.0",
|
|
63
64
|
"bigint-buffer": "^1.1.5",
|
|
64
65
|
"bn.js": "^5.2.1",
|
|
65
66
|
"borsh": "^0.7.0",
|
|
66
67
|
"bs58": "^4.0.1",
|
|
67
68
|
"buffer": "6.0.3",
|
|
68
|
-
"fast-stable-stringify": "^1.0.0",
|
|
69
69
|
"jayson": "^4.1.0",
|
|
70
70
|
"node-fetch": "^2.7.0",
|
|
71
71
|
"rpc-websockets": "^7.5.1",
|
package/src/connection.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import fastStableStringify from '@solana/fast-stable-stringify';
|
|
1
2
|
import HttpKeepAliveAgent, {
|
|
2
3
|
HttpsAgent as HttpsKeepAliveAgent,
|
|
3
4
|
} from 'agentkeepalive';
|
|
4
5
|
import bs58 from 'bs58';
|
|
5
6
|
import {Buffer} from 'buffer';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import fastStableStringify from 'fast-stable-stringify';
|
|
8
7
|
import type {Agent as NodeHttpAgent} from 'http';
|
|
9
8
|
import {Agent as NodeHttpsAgent} from 'https';
|
|
10
9
|
import {
|
|
@@ -5895,7 +5894,9 @@ export class Connection {
|
|
|
5895
5894
|
const config: any = {encoding: 'base64'};
|
|
5896
5895
|
const skipPreflight = options && options.skipPreflight;
|
|
5897
5896
|
const preflightCommitment =
|
|
5898
|
-
|
|
5897
|
+
skipPreflight === true
|
|
5898
|
+
? 'processed' // FIXME Remove when https://github.com/anza-xyz/agave/pull/483 is deployed.
|
|
5899
|
+
: (options && options.preflightCommitment) || this.commitment;
|
|
5899
5900
|
|
|
5900
5901
|
if (options && options.maxRetries != null) {
|
|
5901
5902
|
config.maxRetries = options.maxRetries;
|
|
@@ -6289,10 +6290,7 @@ export class Connection {
|
|
|
6289
6290
|
args: IWSRequestParams,
|
|
6290
6291
|
): ClientSubscriptionId {
|
|
6291
6292
|
const clientSubscriptionId = this._nextClientSubscriptionId++;
|
|
6292
|
-
const hash = fastStableStringify(
|
|
6293
|
-
[subscriptionConfig.method, args],
|
|
6294
|
-
true /* isArrayProp */,
|
|
6295
|
-
);
|
|
6293
|
+
const hash = fastStableStringify([subscriptionConfig.method, args]);
|
|
6296
6294
|
const existingSubscription = this._subscriptionsByHash[hash];
|
|
6297
6295
|
if (existingSubscription === undefined) {
|
|
6298
6296
|
this._subscriptionsByHash[hash] = {
|