diff --git a/README.md b/README.md index 8afa517597..ae7775c23d 100644 --- a/README.md +++ b/README.md @@ -90,12 +90,12 @@ Currently the codebase supports the following runtime environments: [Edge Spartan](https://en.wikipedia.org/wiki/Microsoft_Edge#Development)) 3. Browser extensions (Chromium/Firefox) -Our current JavaScript target standard is ES2017, giving us native async/await -support. We use WebAssembly to implement certain cryptographic functions. +Our current JavaScript target standard is ES2020. We use WebAssembly to +implement certain cryptographic functions. We're happy to adjust this list according to users' needs as long as you don't ask for Internet Explorer support. If your environment does not support Wasm, we -can work on a solution with swapable implementations. +can work on a solution with swappable implementations. ## Roadmap diff --git a/packages/cli/tsconfig_repl.json b/packages/cli/tsconfig_repl.json index 4c72f4475e..6f9f9bd4f3 100644 --- a/packages/cli/tsconfig_repl.json +++ b/packages/cli/tsconfig_repl.json @@ -3,7 +3,7 @@ "esModuleInterop": true, "module": "commonjs", "moduleResolution": "node", - "target": "es2017", + "target": "es2020", "noUnusedLocals": false, "noImplicitAny": false } diff --git a/packages/json-rpc/src/compatibility.ts b/packages/json-rpc/src/compatibility.ts index 0906f38412..11777d88fd 100644 --- a/packages/json-rpc/src/compatibility.ts +++ b/packages/json-rpc/src/compatibility.ts @@ -67,7 +67,5 @@ export function isJsonCompatibleDictionary(data: unknown): data is JsonCompatibl return false; } - // TODO: replace with Object.values when available (ES2017+) - const values = Object.getOwnPropertyNames(data).map((key) => (data as any)[key]); - return values.every(isJsonCompatibleValue); + return Object.values(data).every(isJsonCompatibleValue); } diff --git a/packages/ledger-amino/tsconfig.json b/packages/ledger-amino/tsconfig.json index 17d7c8f9dc..c1c08bab14 100644 --- a/packages/ledger-amino/tsconfig.json +++ b/packages/ledger-amino/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "outDir": "build", "rootDir": "src", - "lib": ["es2017", "dom"] + "lib": ["es2020", "dom"] }, "include": ["src/**/*"] } diff --git a/tsconfig.json b/tsconfig.json index 0e357021cb..c94d2ce2c7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "declaration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "lib": ["es2017"], + "lib": ["es2020"], + "target": "es2020", "module": "commonjs", "moduleResolution": "node", "newLine": "LF", @@ -18,7 +19,6 @@ "removeComments": false, "resolveJsonModule": true, "sourceMap": true, - "strict": true, - "target": "es2017" + "strict": true } }