Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump target to es2020 #52

Merged
merged 2 commits into from Dec 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,8 @@ and this project adheres to
the end of 2022. Then all potential issues should be fixed.
- `fromJSON`/`toJSON` are not generated anymore. They were never needed for
CosmJS and do not produce a Cosmos SDK compatible JSON.
- The TypeScript build target is now ES2020,
[analogue to CosmJS 0.30](https://github.com/cosmos/cosmjs/issues/1002).

## [0.5.2] - 2022-10-11

Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Expand Up @@ -4,7 +4,7 @@
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2018"],
"lib": ["es2020"],
"module": "commonjs",
"moduleResolution": "node",
"newLine": "LF",
Expand All @@ -15,12 +15,15 @@
"noUnusedParameters": false,
"outDir": "build",
"pretty": true,
// We want comments in the .d.ts files. TS does not allow us to remove comments
// from .js output only (https://github.com/microsoft/TypeScript/issues/45187, https://github.com/microsoft/TypeScript/issues/13318).
// So minifiers have to strip them off later on.
"removeComments": false,
"resolveJsonModule": true,
"rootDir": "src",
"sourceMap": true,
"strict": true,
"target": "es2018"
"target": "es2020"
},
"include": ["src/**/*"]
}