starknet 11.0.0-beta.9 → 11.0.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,106 @@
1
+ # [11.0.0](https://github.com/starknet-io/starknet.js/compare/v10.8.0...v11.0.0) (2026-09-14)
2
+
3
+ ### Bug Fixes
4
+
5
+ - **cairoDataTypes:** correct u256 and u512 toApiRequest and validate ([11d758b](https://github.com/starknet-io/starknet.js/commit/11d758bfed27e3c8b170d930c47253f42a110dfb))
6
+ - **calldata:** a Cairo type serializes itself, abi or not ([c0943fb](https://github.com/starknet-io/starknet.js/commit/c0943fb173ab7e914ae213865c8cf7cf78898746))
7
+ - **calldata:** an abi slot accepts the Cairo type it declares ([b9fa576](https://github.com/starknet-io/starknet.js/commit/b9fa5769aba339a27a989d249d4adef1b04f79a8))
8
+ - **calldata:** long string chunks stay text, at any ABI depth ([06638d9](https://github.com/starknet-io/starknet.js/commit/06638d9b7317caf3e20087c9f92a05a499157213))
9
+ - **calldata:** out-of-range arguments refused, negative results come back negative ([41bf052](https://github.com/starknet-io/starknet.js/commit/41bf052f11a66d9b72e8db2a964b86c8161546b1))
10
+ - **calldata:** text reaches a ByteArray, whatever it spells ([509c9f8](https://github.com/starknet-io/starknet.js/commit/509c9f80f02ef1f5751bcdbd45a8612c2479f6f8))
11
+ - **deps:** bump @noble/[@scure](https://github.com/scure) crypto libs to 2.4.0 ([5c448fe](https://github.com/starknet-io/starknet.js/commit/5c448febcbd16e2d1e27a4f32ec09cfd83e35dca))
12
+ - remove leftover v1 transaction references ([52424df](https://github.com/starknet-io/starknet.js/commit/52424df0f3dee61ab477bf06adddca189ac313f7))
13
+ - **starknetId:** accept bigAlphabet characters in isStarkDomain ([f508984](https://github.com/starknet-io/starknet.js/commit/f5089848f4b4bf526cc814f20fef1918bc67879f)), closes [#1668](https://github.com/starknet-io/starknet.js/issues/1668)
14
+ - **starknetId:** reject names the encoder cannot represent ([76fe9b1](https://github.com/starknet-io/starknet.js/commit/76fe9b1df174d295374417a018e425ee652258c8)), closes [#1668](https://github.com/starknet-io/starknet.js/issues/1668)
15
+ - **test:** detect devnet by asking the node, not by the absence of a url ([62b3944](https://github.com/starknet-io/starknet.js/commit/62b39442812278592e6831ccb3d7f6fc917eb621))
16
+ - **ws:** tolerate an unclean close, and run the suite on devnet ([5c706f0](https://github.com/starknet-io/starknet.js/commit/5c706f0b59ebd17ed13a73a381199731630a4ec9))
17
+ - **ws:** webSocketProvider.create() typing, and the transport documentation ([00dcc5c](https://github.com/starknet-io/starknet.js/commit/00dcc5c6938af0d784f7b5fef9c47b229f365519))
18
+
19
+ ### Features
20
+
21
+ - **cairoDataTypes:** add CairoBool, CairoEthAddress and CairoSecp256k1Point ([332dd1e](https://github.com/starknet-io/starknet.js/commit/332dd1e2fbf9db756343768327788f9114a897b1))
22
+ - **cairoDataTypes:** add the composite Cairo type classes and their strategy ([58d1ae7](https://github.com/starknet-io/starknet.js/commit/58d1ae716443d1db96589eb6cbb35f2ae7784159)), closes [#1484](https://github.com/starknet-io/starknet.js/issues/1484) [#1688](https://github.com/starknet-io/starknet.js/issues/1688) [#1484](https://github.com/starknet-io/starknet.js/issues/1484)
23
+ - **cairo:** remove the deprecated string helpers, add CairoBytes31.fromText ([49331fe](https://github.com/starknet-io/starknet.js/commit/49331fe4ffc002c6adf711c0484a4f5b70954fc9))
24
+ - **calldata:** run the calldata codec on the Cairo type classes ([35f3b80](https://github.com/starknet-io/starknet.js/commit/35f3b804b5efaad4ebb2e2429a5bda00d981eb3e))
25
+ - **channel:** carry requests and subscriptions over one WebSocket transport ([6344efc](https://github.com/starknet-io/starknet.js/commit/6344efc17ffdaf389419b35a9ce803fc539b626b))
26
+ - **channel:** route RPC requests through a pluggable transport ([5af8a51](https://github.com/starknet-io/starknet.js/commit/5af8a5162bdcbbc414031447d8be856e263238ad))
27
+ - **constants:** remove the feeder gateway BaseUrl constant ([c455e2a](https://github.com/starknet-io/starknet.js/commit/c455e2a7410817135729f652a8bd46aa45b9cec6))
28
+ - **provider:** deprecate the Provider alias in favour of RpcProvider ([08dad8c](https://github.com/starknet-io/starknet.js/commit/08dad8c8f50bec207a67622fd9253cce3f41a796))
29
+ - **receipt:** remove the deprecated ReceiptTx class ([e57933c](https://github.com/starknet-io/starknet.js/commit/e57933cc491249b5b1593e84b4d90750e9bdf7dc))
30
+ - **stark:** add randomFelt and randomStarkPrivateKey generators ([04c612e](https://github.com/starknet-io/starknet.js/commit/04c612e7f5bc1913607e8fcd6807677dba8b90fc))
31
+ - starknet.js v11 ([0e360fd](https://github.com/starknet-io/starknet.js/commit/0e360fd7cf29546b9979bd201f0d77fb9817147f))
32
+ - **test:** one npm test, four URL-driven categories ([4e8e2c6](https://github.com/starknet-io/starknet.js/commit/4e8e2c61db1d2939799dfa042a8ba46ef270683e))
33
+ - **ws:** webSocketProvider, one socket for requests and subscriptions ([2af307a](https://github.com/starknet-io/starknet.js/commit/2af307a13421b67349216730e2ca4cd09aba39a2))
34
+
35
+ ### BREAKING CHANGES
36
+
37
+ - **calldata:** run the calldata codec on the Cairo type classes
38
+ - **cairoDataTypes:** three inputs that used to reach the calldata are now refused.
39
+ A core::bool argument that is neither a boolean nor 0/1 throws instead of being
40
+ serialized as a felt. An EthAddress built from text throws instead of being
41
+ encoded as its UTF-8 bytes. A Secp256k1Point wider than 512 bits throws instead
42
+ of emitting four corrupted felts.
43
+ - **constants:** `constants.BaseUrl` is removed. It exposed the feeder
44
+ gateway roots, whose endpoints Starknet v0.14.4 deletes; the library has
45
+ been JSON-RPC only since v7 and never read it. Use `constants.NetworkName`
46
+ with `provider.getDefaultNodeUrl()`, or your own node's RPC url.
47
+ - **starknetId:** `useEncoded` throws on any character outside the Starknet.id alphabets
48
+ instead of silently ignoring it, and `encodeBrotherDomain`, which calls it with no guard,
49
+ throws on the same input. `isStarkDomain` also rejects labels whose encoding overflows the
50
+ field, including every 48-character label it used to accept.
51
+ - v2hash, ETransactionVersion2, Details,
52
+ InvocationsDetails.maxFee and TransactionHashPrefix.DEPLOY are removed.
53
+ See the v10 to v11 migration guide, section 8.
54
+ - **receipt:** remove the deprecated ReceiptTx class
55
+ - **cairo:** shortString.encodeShortString(), shortString.decodeShortString(),
56
+ CairoFelt() and encode.utf8ToArray() are removed. Use
57
+ CairoBytes31.fromText(text).toHexString(), new CairoBytes31(felt).decodeUtf8(),
58
+ CairoFelt252 and encode.utf8ToUint8Array(). cairo.felt() no longer accepts text,
59
+ booleans or non-integer numbers.
60
+ - @noble/curves, @noble/hashes and @scure/starknet bumped to 2.x. WeierstrassSignatureType is now weierstrass.ECDSASignature, a plain {r, s} object instead of the v1 signature class.
61
+
62
+ # [11.0.0-beta.14](https://github.com/starknet-io/starknet.js/compare/v11.0.0-beta.13...v11.0.0-beta.14) (2026-09-10)
63
+
64
+ ### Bug Fixes
65
+
66
+ - **deps:** bump @noble/[@scure](https://github.com/scure) crypto libs to 2.4.0 ([5c448fe](https://github.com/starknet-io/starknet.js/commit/5c448febcbd16e2d1e27a4f32ec09cfd83e35dca))
67
+
68
+ # [11.0.0-beta.13](https://github.com/starknet-io/starknet.js/compare/v11.0.0-beta.12...v11.0.0-beta.13) (2026-09-03)
69
+
70
+ ### Features
71
+
72
+ - **calldata:** run the calldata codec on the Cairo type classes ([35f3b80](https://github.com/starknet-io/starknet.js/commit/35f3b804b5efaad4ebb2e2429a5bda00d981eb3e))
73
+
74
+ ### BREAKING CHANGES
75
+
76
+ - **calldata:** run the calldata codec on the Cairo type classes
77
+
78
+ # [11.0.0-beta.12](https://github.com/starknet-io/starknet.js/compare/v11.0.0-beta.11...v11.0.0-beta.12) (2026-09-02)
79
+
80
+ ### Features
81
+
82
+ - **cairoDataTypes:** add the composite Cairo type classes and their strategy ([58d1ae7](https://github.com/starknet-io/starknet.js/commit/58d1ae716443d1db96589eb6cbb35f2ae7784159)), closes [#1484](https://github.com/starknet-io/starknet.js/issues/1484) [#1688](https://github.com/starknet-io/starknet.js/issues/1688) [#1484](https://github.com/starknet-io/starknet.js/issues/1484)
83
+
84
+ # [11.0.0-beta.11](https://github.com/starknet-io/starknet.js/compare/v11.0.0-beta.10...v11.0.0-beta.11) (2026-09-01)
85
+
86
+ ### Features
87
+
88
+ - **cairoDataTypes:** add CairoBool, CairoEthAddress and CairoSecp256k1Point ([332dd1e](https://github.com/starknet-io/starknet.js/commit/332dd1e2fbf9db756343768327788f9114a897b1))
89
+
90
+ ### BREAKING CHANGES
91
+
92
+ - **cairoDataTypes:** three inputs that used to reach the calldata are now refused.
93
+ A core::bool argument that is neither a boolean nor 0/1 throws instead of being
94
+ serialized as a felt. An EthAddress built from text throws instead of being
95
+ encoded as its UTF-8 bytes. A Secp256k1Point wider than 512 bits throws instead
96
+ of emitting four corrupted felts.
97
+
98
+ # [11.0.0-beta.10](https://github.com/starknet-io/starknet.js/compare/v11.0.0-beta.9...v11.0.0-beta.10) (2026-09-01)
99
+
100
+ ### Bug Fixes
101
+
102
+ - **cairoDataTypes:** correct u256 and u512 toApiRequest and validate ([11d758b](https://github.com/starknet-io/starknet.js/commit/11d758bfed27e3c8b170d930c47253f42a110dfb))
103
+
1
104
  # [11.0.0-beta.9](https://github.com/starknet-io/starknet.js/compare/v11.0.0-beta.8...v11.0.0-beta.9) (2026-08-31)
2
105
 
3
106
  ### Features
@@ -102,6 +205,58 @@
102
205
 
103
206
  - @noble/curves, @noble/hashes and @scure/starknet bumped to 2.x. WeierstrassSignatureType is now weierstrass.ECDSASignature, a plain {r, s} object instead of the v1 signature class.
104
207
 
208
+ # [10.8.0](https://github.com/starknet-io/starknet.js/compare/v10.7.6...v10.8.0) (2026-09-10)
209
+
210
+ ### Bug Fixes
211
+
212
+ - **deps:** bump get-starknet wallet-standard to 6.0.6 ([5a8cb12](https://github.com/starknet-io/starknet.js/commit/5a8cb121dd0da9de2b0d84ed59d7a3ebbe1ff855))
213
+
214
+ ### Features
215
+
216
+ - add RPC 0.10.4 support (starknet-types-0104, RpcChannel v0_10_4) ([24561f4](https://github.com/starknet-io/starknet.js/commit/24561f4ba64cde954d8204ff5404e034fd2b87a6))
217
+
218
+ ## [10.7.6](https://github.com/starknet-io/starknet.js/compare/v10.7.5...v10.7.6) (2026-09-09)
219
+
220
+ ### Bug Fixes
221
+
222
+ - **logger:** coerce message to string before sanitizing CR/LF ([f0a3058](https://github.com/starknet-io/starknet.js/commit/f0a305811a009b3265185f9b5e0ca48301937ec8))
223
+ - **security:** harden code scanning findings ([63bf7bc](https://github.com/starknet-io/starknet.js/commit/63bf7bc3ac0bcbd3fd04769446f697983ac5b26c))
224
+
225
+ ## [10.7.5](https://github.com/starknet-io/starknet.js/compare/v10.7.4...v10.7.5) (2026-09-08)
226
+
227
+ ### Bug Fixes
228
+
229
+ - **calldata:** default to the parsing strategy that decodes signed integers correctly ([d766915](https://github.com/starknet-io/starknet.js/commit/d76691531bd095a13b822249be11aededc472b6d))
230
+
231
+ ## [10.7.4](https://github.com/starknet-io/starknet.js/compare/v10.7.3...v10.7.4) (2026-09-08)
232
+
233
+ ### Bug Fixes
234
+
235
+ - **typedData:** reject caller types that shadow SNIP-12 preset names ([3f06927](https://github.com/starknet-io/starknet.js/commit/3f06927e1b1325df657c8056539cff84144d729c))
236
+
237
+ ## [10.7.3](https://github.com/starknet-io/starknet.js/compare/v10.7.2...v10.7.3) (2026-09-08)
238
+
239
+ ### Bug Fixes
240
+
241
+ - **deployer:** preserve constructor argument names before ABI ordering ([b27222a](https://github.com/starknet-io/starknet.js/commit/b27222afbacf86d0d035b895d4faf0935a305d04))
242
+
243
+ ## [10.7.2](https://github.com/starknet-io/starknet.js/compare/v10.7.1...v10.7.2) (2026-09-08)
244
+
245
+ ### Bug Fixes
246
+
247
+ - **paymaster:** accept a raw shortstring for the paymaster typed-data domain chainId ([4abd5ae](https://github.com/starknet-io/starknet.js/commit/4abd5aeec079e8ca14ce098d0ff8790a89aa1c62))
248
+ - **paymaster:** bind paymaster typed-data domain to the account's provider chain ([f194c61](https://github.com/starknet-io/starknet.js/commit/f194c612cd2fa2ecb6515e484f89d6f2bb72892a))
249
+ - **paymaster:** reject paymaster typed data declaring both "calls" and "Calls" ([e618f70](https://github.com/starknet-io/starknet.js/commit/e618f706fe543aa5dbce5b560098ad15d4ca341b))
250
+ - **paymaster:** validate selector and calldata shape of the appended gas-token call ([4b72d35](https://github.com/starknet-io/starknet.js/commit/4b72d35cfe19424fb707dbfdfd4e3877532f86b5))
251
+ - **paymaster:** validate the full u256 gas-token amount unconditionally ([3d1a1ec](https://github.com/starknet-io/starknet.js/commit/3d1a1ec420a769f31bb7fc94b2a68f36ae56630e))
252
+ - **paymaster:** verify calls equality for sponsored paymaster transactions too ([c403643](https://github.com/starknet-io/starknet.js/commit/c403643b580ab5953a2e737d1aa39e083d5f0262))
253
+
254
+ ## [10.7.1](https://github.com/starknet-io/starknet.js/compare/v10.7.0...v10.7.1) (2026-08-21)
255
+
256
+ ### Bug Fixes
257
+
258
+ - **provider:** accept pre-release RPC spec versions ([436f433](https://github.com/starknet-io/starknet.js/commit/436f433e57039f3ae12c651c937d6b7e21592de1))
259
+
105
260
  # [10.7.0](https://github.com/starknet-io/starknet.js/compare/v10.6.8...v10.7.0) (2026-08-13)
106
261
 
107
262
  ### Features