@solana/web3.js 1.98.4-experimental.1 → 1.98.4-experimental.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.98.4-experimental.1",
3
+ "version": "1.98.4-experimental.2",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
@@ -36,6 +36,23 @@
36
36
  "/lib",
37
37
  "/src"
38
38
  ],
39
+ "dependencies": {
40
+ "@babel/runtime": "^7.25.0",
41
+ "@noble/curves": "^1.4.2",
42
+ "@noble/hashes": "^1.4.0",
43
+ "@solana/buffer-layout": "^4.0.1",
44
+ "@solana/codecs-numbers": "^2.1.0",
45
+ "agentkeepalive": "^4.5.0",
46
+ "bn.js": "^5.2.1",
47
+ "borsh": "^0.7.0",
48
+ "bs58": "^4.0.1",
49
+ "buffer": "6.0.3",
50
+ "fast-stable-stringify": "^1.0.0",
51
+ "jayson": "^4.1.1",
52
+ "node-fetch": "^2.7.0",
53
+ "rpc-websockets": "^9.0.2",
54
+ "superstruct": "^2.0.2"
55
+ },
39
56
  "scripts": {
40
57
  "compile:docs": "typedoc --treatWarningsAsErrors",
41
58
  "compile:js": "cross-env NODE_ENV=production rollup -c",
@@ -43,7 +60,6 @@
43
60
  "build:fixtures": "set -ex; ./test/fixtures/noop-program/build.sh",
44
61
  "clean": "rimraf ./doc ./declarations ./lib",
45
62
  "dev": "cross-env NODE_ENV=development rollup -c --watch",
46
- "prepublishOnly": "pnpm pkg delete devDependencies",
47
63
  "publish-packages": "semantic-release --repository-url git@github.com:solana-foundation/solana-web3.js.git",
48
64
  "test:lint": "eslint src/ test/ --ext .js,.ts",
49
65
  "test:lint:fix": "eslint src/ test/ --fix --ext .js,.ts",
@@ -54,22 +70,5 @@
54
70
  "test:prettier:fix": "pnpm prettier --write '{,{src,test}/**/}*.{j,t}s'",
55
71
  "test:typecheck": "tsc --noEmit",
56
72
  "test:unit": "cross-env NODE_ENV=test NODE_OPTIONS='--import tsx' mocha './test/**/*.test.ts'"
57
- },
58
- "dependencies": {
59
- "@babel/runtime": "^7.25.0",
60
- "@noble/curves": "^1.4.2",
61
- "@noble/hashes": "^1.4.0",
62
- "@solana/buffer-layout": "^4.0.1",
63
- "@solana/codecs-numbers": "^2.1.0",
64
- "agentkeepalive": "^4.5.0",
65
- "bn.js": "^5.2.1",
66
- "borsh": "^0.7.0",
67
- "bs58": "^4.0.1",
68
- "buffer": "6.0.3",
69
- "fast-stable-stringify": "^1.0.0",
70
- "jayson": "^4.1.1",
71
- "node-fetch": "^2.7.0",
72
- "rpc-websockets": "^9.0.2",
73
- "superstruct": "^2.0.2"
74
73
  }
75
- }
74
+ }
@@ -857,6 +857,10 @@ export class Transaction {
857
857
  wireTransaction,
858
858
  signatureCount.length + signatures.length * 64,
859
859
  );
860
+ invariant(
861
+ wireTransaction.length <= PACKET_DATA_SIZE,
862
+ `Transaction too large: ${wireTransaction.length} > ${PACKET_DATA_SIZE}`,
863
+ );
860
864
  return wireTransaction;
861
865
  }
862
866