starknet 7.6.2 → 7.6.4

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,15 @@
1
+ ## [7.6.4](https://github.com/starknet-io/starknet.js/compare/v7.6.3...v7.6.4) (2025-07-10)
2
+
3
+ ### Bug Fixes
4
+
5
+ - allow numeric revision value for typed data ([d4c9627](https://github.com/starknet-io/starknet.js/commit/d4c962749fa994a654057a930087529c13fa9562))
6
+
7
+ ## [7.6.3](https://github.com/starknet-io/starknet.js/compare/v7.6.2...v7.6.3) (2025-07-10)
8
+
9
+ ### Bug Fixes
10
+
11
+ - check for the existence of window.WebSocket before bind ([ba7428b](https://github.com/starknet-io/starknet.js/commit/ba7428be4e6560106b8332ad8688a8f7e99a221b))
12
+
1
13
  ## [7.6.2](https://github.com/starknet-io/starknet.js/compare/v7.6.1...v7.6.2) (2025-06-24)
2
14
 
3
15
  ### Bug Fixes
@@ -13663,7 +13663,7 @@ ${indent}}` : "}";
13663
13663
  };
13664
13664
 
13665
13665
  // src/utils/connect/ws.ts
13666
- var ws_default = typeof WebSocket !== "undefined" && WebSocket || typeof globalThis !== "undefined" && globalThis.WebSocket || typeof window !== "undefined" && window.WebSocket.bind(window) || typeof global !== "undefined" && global.WebSocket || class {
13666
+ var ws_default = typeof WebSocket !== "undefined" && WebSocket || typeof globalThis !== "undefined" && globalThis.WebSocket || typeof window !== "undefined" && window.WebSocket && window.WebSocket.bind(window) || typeof global !== "undefined" && global.WebSocket || class {
13667
13667
  constructor() {
13668
13668
  throw new LibraryError(
13669
13669
  "WebSocket module not detected, use the 'websocket' constructor parameter to set a compatible connection"
@@ -14506,7 +14506,7 @@ ${indent}}` : "}";
14506
14506
  assert(value >= min && value <= max, `${value} (${type}) is out of bounds [${min}, ${max}]`);
14507
14507
  }
14508
14508
  function identifyRevision({ types, domain }) {
14509
- if (revisionConfiguration[TypedDataRevision.ACTIVE].domain in types && domain.revision === TypedDataRevision.ACTIVE)
14509
+ if (revisionConfiguration[TypedDataRevision.ACTIVE].domain in types && domain.revision?.toString() === TypedDataRevision.ACTIVE)
14510
14510
  return TypedDataRevision.ACTIVE;
14511
14511
  if (revisionConfiguration[TypedDataRevision.LEGACY].domain in types && (domain.revision ?? TypedDataRevision.LEGACY) === TypedDataRevision.LEGACY)
14512
14512
  return TypedDataRevision.LEGACY;