starknet 11.6.2 → 11.6.3
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 +6 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [11.6.3](https://github.com/starknet-io/starknet.js/compare/v11.6.2...v11.6.3) (2026-11-13)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **types:** make the published types compile with skipLibCheck false ([14b26c5](https://github.com/starknet-io/starknet.js/commit/14b26c5e062950eb81390b665cf433ccc9e1531a))
|
|
6
|
+
|
|
1
7
|
## [11.6.2](https://github.com/starknet-io/starknet.js/compare/v11.6.1...v11.6.2) (2026-11-11)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -9820,6 +9820,11 @@ declare class WebSocketProvider extends RpcProvider {
|
|
|
9820
9820
|
*/
|
|
9821
9821
|
static create<T extends RpcProvider = WebSocketProvider>(this: any, optionsOrProvider?: RpcProviderOptions): Promise<T>;
|
|
9822
9822
|
}
|
|
9823
|
+
declare global {
|
|
9824
|
+
interface SymbolConstructor {
|
|
9825
|
+
readonly dispose: unique symbol;
|
|
9826
|
+
}
|
|
9827
|
+
}
|
|
9823
9828
|
declare module "./index" {
|
|
9824
9829
|
interface WebSocketProvider {
|
|
9825
9830
|
[Symbol.dispose](): void;
|
|
@@ -10479,6 +10484,19 @@ type STRK20_CALL_AND_PROOF = Omit<STRK20_CALL_AND_PROOF$1, 'call'> & {
|
|
|
10479
10484
|
call: Call;
|
|
10480
10485
|
};
|
|
10481
10486
|
|
|
10487
|
+
/**
|
|
10488
|
+
* `WalletAccountV5`, without the two static methods that `WalletAccountV6` replaces.
|
|
10489
|
+
*
|
|
10490
|
+
* `connect` and `connectSilent` of `WalletAccountV6` take a get-starknet v6 wallet. The ones of
|
|
10491
|
+
* `WalletAccountV5` take a get-starknet v5 wallet. These two wallet types are not compatible, and
|
|
10492
|
+
* TypeScript refuses a subclass when a static method does not fit the one of its parent (TS2417).
|
|
10493
|
+
* A `@ts-ignore` is not enough: the build drops it from the published types.
|
|
10494
|
+
* So `WalletAccountV6` extends this type: all of `WalletAccountV5`, except these two methods.
|
|
10495
|
+
* At run time, it is `WalletAccountV5` itself.
|
|
10496
|
+
* In v12, a base class without `connect`, shared by both accounts, should replace this type.
|
|
10497
|
+
*/
|
|
10498
|
+
type WalletAccountV5WithoutConnect = Omit<typeof WalletAccountV5, 'connect' | 'connectSilent'> & (new (...args: ConstructorParameters<typeof WalletAccountV5>) => WalletAccountV5);
|
|
10499
|
+
declare const WalletAccountV6_base: WalletAccountV5WithoutConnect;
|
|
10482
10500
|
/**
|
|
10483
10501
|
* Account that lets a browser wallet sign and send the transactions, using get-starknet v6.
|
|
10484
10502
|
* This is the recommended class for a new DAPP.
|
|
@@ -10503,7 +10521,7 @@ type STRK20_CALL_AND_PROOF = Omit<STRK20_CALL_AND_PROOF$1, 'call'> & {
|
|
|
10503
10521
|
* // chainId = '0x534e5f5345504f4c4941' (the wallet is on Sepolia)
|
|
10504
10522
|
* ```
|
|
10505
10523
|
*/
|
|
10506
|
-
declare class WalletAccountV6 extends
|
|
10524
|
+
declare class WalletAccountV6 extends WalletAccountV6_base {
|
|
10507
10525
|
/**
|
|
10508
10526
|
* Prefer {@link WalletAccountV6.connect}: it also asks the wallet for the address.
|
|
10509
10527
|
* @param {WalletAccountV6Options} options - The provider, the wallet, the account address, and
|