diff --git a/CHANGELOG.md b/CHANGELOG.md index 10df13c384..a0ae67c9c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to ## [Unreleased] +### Changed + +- all: The TypeScript compilation target is now ES2020 ([#1002]). + +[#1002]: https://github.com/cosmos/cosmjs/issues/1002 + ## [0.29.5] - 2022-12-07 ### Fixed diff --git a/README.md b/README.md index bd4a55d3e1..11b4b96fdb 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ 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 ES2018. We use WebAssembly to +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 diff --git a/packages/cli/tsconfig_repl.json b/packages/cli/tsconfig_repl.json index a29807e755..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": "es2018", + "target": "es2020", "noUnusedLocals": false, "noImplicitAny": false } diff --git a/packages/ledger-amino/tsconfig.json b/packages/ledger-amino/tsconfig.json index 5fde64c17d..c1c08bab14 100644 --- a/packages/ledger-amino/tsconfig.json +++ b/packages/ledger-amino/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "outDir": "build", "rootDir": "src", - "lib": ["es2018", "dom"] + "lib": ["es2020", "dom"] }, "include": ["src/**/*"] } diff --git a/tsconfig.json b/tsconfig.json index 46d6669c9e..c94d2ce2c7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,8 @@ "declaration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "lib": ["es2018"], - "target": "es2018", + "lib": ["es2020"], + "target": "es2020", "module": "commonjs", "moduleResolution": "node", "newLine": "LF",