starknet 8.1.0 → 8.1.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 +6 -0
- package/dist/index.d.ts +19 -42
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [8.1.1](https://github.com/starknet-io/starknet.js/compare/v8.1.0...v8.1.1) (2025-08-04)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- repair published types ([#1465](https://github.com/starknet-io/starknet.js/issues/1465)) ([6ab9db0](https://github.com/starknet-io/starknet.js/commit/6ab9db0fd41155735f8536d9add046e2c89abb14))
|
|
6
|
+
|
|
1
7
|
# [8.1.0](https://github.com/starknet-io/starknet.js/compare/v8.0.0...v8.1.0) (2025-07-28)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -11,21 +11,6 @@ import * as poseidon from '@noble/curves/abstract/poseidon';
|
|
|
11
11
|
import * as json$1 from 'lossless-json';
|
|
12
12
|
import * as starknet from '@scure/starknet';
|
|
13
13
|
|
|
14
|
-
function _mergeNamespaces(n, m) {
|
|
15
|
-
m.forEach(function (e) {
|
|
16
|
-
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
17
|
-
if (k !== 'default' && !(k in n)) {
|
|
18
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return e[k]; }
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
return Object.freeze(n);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
14
|
declare const ec_weierstrass: typeof weierstrass;
|
|
30
15
|
declare namespace ec {
|
|
31
16
|
export { starknet as starkCurve, ec_weierstrass as weierstrass };
|
|
@@ -56,22 +41,20 @@ type WebSocketEvent = Omit<RequestBody, 'id'> & {
|
|
|
56
41
|
params: {};
|
|
57
42
|
};
|
|
58
43
|
|
|
59
|
-
type
|
|
60
|
-
type
|
|
61
|
-
type
|
|
62
|
-
type
|
|
63
|
-
type
|
|
64
|
-
declare namespace
|
|
65
|
-
export type { Error$1 as Error,
|
|
44
|
+
type jsonrpc_ErrorResponseBody = ErrorResponseBody;
|
|
45
|
+
type jsonrpc_RequestBody = RequestBody;
|
|
46
|
+
type jsonrpc_ResponseBody = ResponseBody;
|
|
47
|
+
type jsonrpc_SuccessResponseBody = SuccessResponseBody;
|
|
48
|
+
type jsonrpc_WebSocketEvent = WebSocketEvent;
|
|
49
|
+
declare namespace jsonrpc {
|
|
50
|
+
export type { Error$1 as Error, jsonrpc_ErrorResponseBody as ErrorResponseBody, jsonrpc_RequestBody as RequestBody, jsonrpc_ResponseBody as ResponseBody, jsonrpc_SuccessResponseBody as SuccessResponseBody, jsonrpc_WebSocketEvent as WebSocketEvent };
|
|
66
51
|
}
|
|
67
52
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
RPCSPEC09: RPC
|
|
74
|
-
}, [RPC]);
|
|
53
|
+
declare const index$4_PAYMASTER_API: typeof PAYMASTER_API;
|
|
54
|
+
declare const index$4_RPCSPEC08: typeof RPCSPEC08;
|
|
55
|
+
declare namespace index$4 {
|
|
56
|
+
export { jsonrpc as JRPC, index$4_PAYMASTER_API as PAYMASTER_API, index$4_RPCSPEC08 as RPCSPEC08, RPC as RPCSPEC09 };
|
|
57
|
+
}
|
|
75
58
|
|
|
76
59
|
type CairoEnumRaw = Record<string, any>;
|
|
77
60
|
/**
|
|
@@ -3841,15 +3824,6 @@ declare namespace rpc_0_9_0 {
|
|
|
3841
3824
|
export { rpc_0_9_0_RpcChannel as RpcChannel };
|
|
3842
3825
|
}
|
|
3843
3826
|
|
|
3844
|
-
declare const _default: {
|
|
3845
|
-
new (url: string | URL, protocols?: string | string[]): WebSocket;
|
|
3846
|
-
prototype: WebSocket;
|
|
3847
|
-
readonly CONNECTING: 0;
|
|
3848
|
-
readonly OPEN: 1;
|
|
3849
|
-
readonly CLOSING: 2;
|
|
3850
|
-
readonly CLOSED: 3;
|
|
3851
|
-
};
|
|
3852
|
-
|
|
3853
3827
|
/**
|
|
3854
3828
|
* Options for creating a new Subscription instance
|
|
3855
3829
|
*/
|
|
@@ -3970,6 +3944,9 @@ type ReconnectOptions = {
|
|
|
3970
3944
|
*/
|
|
3971
3945
|
delay?: number;
|
|
3972
3946
|
};
|
|
3947
|
+
type WebSocketModule = {
|
|
3948
|
+
new (nodeUrl: WebSocketOptions['nodeUrl']): WebSocket;
|
|
3949
|
+
};
|
|
3973
3950
|
/**
|
|
3974
3951
|
* Options for configuring the WebSocketChannel.
|
|
3975
3952
|
*/
|
|
@@ -3988,7 +3965,7 @@ type WebSocketOptions = {
|
|
|
3988
3965
|
* const channel = new WebSocketChannel({ nodeUrl: '...', websocket: WebSocket });
|
|
3989
3966
|
* ```
|
|
3990
3967
|
*/
|
|
3991
|
-
websocket?:
|
|
3968
|
+
websocket?: WebSocketModule;
|
|
3992
3969
|
/**
|
|
3993
3970
|
* The maximum number of events to buffer per subscription when no handler is attached.
|
|
3994
3971
|
* @default 1000
|
|
@@ -4044,7 +4021,7 @@ declare class WebSocketChannel {
|
|
|
4044
4021
|
/**
|
|
4045
4022
|
* The underlying WebSocket instance.
|
|
4046
4023
|
*/
|
|
4047
|
-
websocket:
|
|
4024
|
+
websocket: WebSocket;
|
|
4048
4025
|
private WsImplementation;
|
|
4049
4026
|
private activeSubscriptions;
|
|
4050
4027
|
private readonly maxBufferSize;
|
|
@@ -4110,7 +4087,7 @@ declare class WebSocketChannel {
|
|
|
4110
4087
|
* console.log('Connected!');
|
|
4111
4088
|
* ```
|
|
4112
4089
|
*/
|
|
4113
|
-
waitForConnection(): Promise<
|
|
4090
|
+
waitForConnection(): Promise<WebSocket['readyState']>;
|
|
4114
4091
|
/**
|
|
4115
4092
|
* Closes the WebSocket connection.
|
|
4116
4093
|
* This method is user-initiated and will prevent automatic reconnection for this closure.
|
|
@@ -4122,7 +4099,7 @@ declare class WebSocketChannel {
|
|
|
4122
4099
|
* Returns a Promise that resolves when the WebSocket connection is closed.
|
|
4123
4100
|
* @returns {Promise<number | Event>} A Promise that resolves with the WebSocket's `readyState` or a `CloseEvent` when disconnected.
|
|
4124
4101
|
*/
|
|
4125
|
-
waitForDisconnection(): Promise<
|
|
4102
|
+
waitForDisconnection(): Promise<WebSocket['readyState'] | Event>;
|
|
4126
4103
|
/**
|
|
4127
4104
|
* Unsubscribes from a Starknet subscription.
|
|
4128
4105
|
* It is recommended to use the `unsubscribe()` method on the `Subscription` object instead.
|
package/dist/index.global.js
CHANGED