@cowprotocol/permit-utils 2.1.0 → 2.3.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,5 +1,33 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.3.0](https://github.com/cowprotocol/cowswap/compare/permit-utils-v2.2.0...permit-utils-v2.3.0) (2026-02-20)
4
+
5
+
6
+ ### ✨ Features
7
+
8
+ * **chains:** disable Lens and support deprecating networks ([#7028](https://github.com/cowprotocol/cowswap/issues/7028)) ([c12d6c2](https://github.com/cowprotocol/cowswap/commit/c12d6c21ad69258c587378add9da86d72ff755b2))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @cowprotocol/hook-dapp-lib bumped to 2.0.4
16
+
17
+ ## [2.2.0](https://github.com/cowprotocol/cowswap/compare/permit-utils-v2.1.0...permit-utils-v2.2.0) (2026-02-13)
18
+
19
+
20
+ ### ✨ Features
21
+
22
+ * replace toLowerCase on getAddressKey ([#6866](https://github.com/cowprotocol/cowswap/issues/6866)) ([a41b23c](https://github.com/cowprotocol/cowswap/commit/a41b23c4384cdbcde9534abcdde37441121381e7))
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @cowprotocol/hook-dapp-lib bumped to 2.0.3
30
+
3
31
  ## [2.1.0](https://github.com/cowprotocol/cowswap/compare/permit-utils-v2.0.1...permit-utils-v2.1.0) (2026-02-05)
4
32
 
5
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cowprotocol/permit-utils",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "access": "public"
10
10
  },
11
11
  "dependencies": {
12
- "@cowprotocol/cow-sdk": "7.3.4",
12
+ "@cowprotocol/cow-sdk": "7.3.7",
13
13
  "@1inch/permit-signed-approvals-utils": "^1.5.1",
14
14
  "@ethersproject/abi": "5.7.0",
15
15
  "@ethersproject/abstract-signer": "5.7.0",
@@ -22,7 +22,7 @@
22
22
  "ethers": "5.7.2",
23
23
  "ms.macro": "^2.0.0",
24
24
  "viem": "^2.42.1",
25
- "@cowprotocol/hook-dapp-lib": "2.0.2"
25
+ "@cowprotocol/hook-dapp-lib": "2.0.4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/ms.macro": "^2.0.0"
@@ -1,3 +1,4 @@
1
+ import { getTokenId } from '@cowprotocol/cow-sdk'
1
2
  import type { JsonRpcProvider } from '@ethersproject/providers'
2
3
 
3
4
  import { getPermitUtilsInstance } from './getPermitUtilsInstance'
@@ -30,8 +31,7 @@ const UNSUPPORTED: PermitInfo = { type: 'unsupported' }
30
31
 
31
32
  export async function getTokenPermitInfo(params: GetTokenPermitInfoParams): Promise<GetTokenPermitIntoResult> {
32
33
  const { tokenAddress, chainId } = params
33
-
34
- const key = `${chainId}-${tokenAddress.toLowerCase()}`
34
+ const key = getTokenId({ address: tokenAddress, chainId })
35
35
 
36
36
  const cached = REQUESTS_CACHE[key]
37
37