From aba2a96826e2d4c2a5ef2eb4b76f7da7060d6721 Mon Sep 17 00:00:00 2001 From: Antonio Date: Fri, 16 Feb 2024 10:10:02 +0100 Subject: [PATCH] fix: viem types compatibility --- .projen/deps.json | 2 +- .projenrc.ts | 4 +++- package.json | 2 +- tsconfig.dev.json | 3 ++- tsconfig.json | 3 ++- yarn.lock | 8 ++++---- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index 3ec9610..5b0e866 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -89,7 +89,7 @@ }, { "name": "viem", - "version": "2.7.6", + "version": "2.7.9", "type": "runtime" } ], diff --git a/.projenrc.ts b/.projenrc.ts index ee87266..589e960 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -22,7 +22,7 @@ const project = new typescript.TypeScriptProject({ deps: [ '@noble/secp256k1@1.7.1', '@safe-global/safe-deployments@1.29.0', - 'viem@2.7.6', + 'viem@2.7.9', ], devDeps: [ 'istanbul-badges-readme@1.8.5', @@ -33,6 +33,8 @@ const project = new typescript.TypeScriptProject({ 'example/**/*', ], compilerOptions: { + // needed due to bug with viem types. In the future, try to remove it and run npx projen build to see if viem types are fixed + skipLibCheck: true, lib: [ 'es2019', 'dom', ], diff --git a/package.json b/package.json index 7057b95..bde48c2 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "dependencies": { "@noble/secp256k1": "1.7.1", "@safe-global/safe-deployments": "1.29.0", - "viem": "2.7.6" + "viem": "2.7.9" }, "main": "lib/index.js", "license": "MIT", diff --git a/tsconfig.dev.json b/tsconfig.dev.json index 35cc25c..dc338b9 100644 --- a/tsconfig.dev.json +++ b/tsconfig.dev.json @@ -24,7 +24,8 @@ "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, - "target": "ES2019" + "target": "ES2019", + "skipLibCheck": true }, "include": [ "src/**/*.ts", diff --git a/tsconfig.json b/tsconfig.json index 151e61e..838b712 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,7 +26,8 @@ "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, - "target": "ES2019" + "target": "ES2019", + "skipLibCheck": true }, "include": [ "src/**/*.ts" diff --git a/yarn.lock b/yarn.lock index 5a883f9..019ba3a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4565,10 +4565,10 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" -viem@2.7.6: - version "2.7.6" - resolved "https://registry.yarnpkg.com/viem/-/viem-2.7.6.tgz#2ada30ece1469367b606137983e5655cf66d721e" - integrity sha512-43TF0VYcTeNef9dax1/BhqlRLXpAo6HAiQ68hrJ8XRhDOou73nHZEjeFl8Eai4UFFodKhu+PbRUFzuuoixOUfg== +viem@2.7.9: + version "2.7.9" + resolved "https://registry.yarnpkg.com/viem/-/viem-2.7.9.tgz#0d2b0c4722530b53fbef449d70f0cedc1bb867b0" + integrity sha512-iDfc8TwaZFp1K95zlsxYh6Cs0OWCt35Tqs8uYgXKSxtz7w075mZ0H5SJ8zSyJGoEaticVDhtdmRRX6TtcW9EeQ== dependencies: "@adraffy/ens-normalize" "1.10.0" "@noble/curves" "1.2.0"