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