@solana/web3.js 1.95.2 → 1.95.4
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/README.md +3 -14
- package/lib/index.browser.cjs.js +84 -74
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +84 -74
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +753 -691
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.esm.js +756 -694
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +10585 -10234
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +11 -11
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +84 -74
- package/lib/index.native.js.map +1 -1
- package/package.json +7 -6
- package/src/connection.ts +6 -6
- package/src/programs/system.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/web3.js",
|
|
3
|
-
"version": "1.95.
|
|
3
|
+
"version": "1.95.4",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -44,18 +44,19 @@
|
|
|
44
44
|
"clean": "rimraf ./doc ./declarations ./lib",
|
|
45
45
|
"dev": "cross-env NODE_ENV=development rollup -c --watch",
|
|
46
46
|
"prepublishOnly": "pnpm pkg delete devDependencies",
|
|
47
|
-
"publish-packages
|
|
47
|
+
"publish-packages": "semantic-release --repository-url git@github.com:solana-labs/solana-web3.js.git",
|
|
48
48
|
"test:lint": "eslint src/ test/ --ext .js,.ts",
|
|
49
49
|
"test:lint:fix": "eslint src/ test/ --fix --ext .js,.ts",
|
|
50
|
-
"test:live": "TEST_LIVE=1 pnpm run test:unit
|
|
51
|
-
"test:live-with-test-validator": "start-server-and-test '
|
|
50
|
+
"test:live": "TEST_LIVE=1 pnpm run test:unit",
|
|
51
|
+
"test:live-with-test-validator": "start-server-and-test './scripts/start-shared-test-validator.sh' http://127.0.0.1:8899/health test:live",
|
|
52
|
+
"test:live-with-test-validator:setup": "./scripts/setup-test-validator.sh",
|
|
52
53
|
"test:prettier": "prettier --check '{,{src,test}/**/}*.{j,t}s'",
|
|
53
54
|
"test:prettier:fix": "pnpm prettier --write '{,{src,test}/**/}*.{j,t}s'",
|
|
54
55
|
"test:typecheck": "tsc --noEmit",
|
|
55
|
-
"test:unit
|
|
56
|
+
"test:unit": "cross-env NODE_ENV=test NODE_OPTIONS='--import tsx' mocha './test/**/*.test.ts'"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
|
-
"@babel/runtime": "^7.
|
|
59
|
+
"@babel/runtime": "^7.25.0",
|
|
59
60
|
"@noble/curves": "^1.4.2",
|
|
60
61
|
"@noble/hashes": "^1.4.0",
|
|
61
62
|
"@solana/buffer-layout": "^4.0.1",
|
package/src/connection.ts
CHANGED
|
@@ -6252,13 +6252,13 @@ export class Connection {
|
|
|
6252
6252
|
] = subscription.callbacks;
|
|
6253
6253
|
await this._updateSubscriptions();
|
|
6254
6254
|
} catch (e) {
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6255
|
+
console.error(
|
|
6256
|
+
`Received ${e instanceof Error ? '' : 'JSON-RPC '}error calling \`${method}\``,
|
|
6257
|
+
{
|
|
6258
6258
|
args,
|
|
6259
|
-
e
|
|
6260
|
-
|
|
6261
|
-
|
|
6259
|
+
error: e,
|
|
6260
|
+
},
|
|
6261
|
+
);
|
|
6262
6262
|
if (!isCurrentConnectionStillActive()) {
|
|
6263
6263
|
return;
|
|
6264
6264
|
}
|
package/src/programs/system.ts
CHANGED
|
@@ -860,7 +860,7 @@ export class SystemProgram {
|
|
|
860
860
|
{pubkey: params.fromPubkey, isSigner: true, isWritable: true},
|
|
861
861
|
{pubkey: params.newAccountPubkey, isSigner: false, isWritable: true},
|
|
862
862
|
];
|
|
863
|
-
if (params.basePubkey
|
|
863
|
+
if (!params.basePubkey.equals(params.fromPubkey)) {
|
|
864
864
|
keys.push({
|
|
865
865
|
pubkey: params.basePubkey,
|
|
866
866
|
isSigner: true,
|