Skip to content

Commit

Permalink
Bump target to es2020
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Jan 27, 2022
1 parent 53c5235 commit 4db57fa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tsconfig_repl.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es2017",
"target": "es2020",
"noUnusedLocals": false,
"noImplicitAny": false
}
Expand Down
4 changes: 1 addition & 3 deletions packages/json-rpc/src/compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion packages/ledger-amino/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"baseUrl": ".",
"outDir": "build",
"rootDir": "src",
"lib": ["es2017", "dom"]
"lib": ["es2020", "dom"]
},
"include": ["src/**/*"]
}
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2017"],
"lib": ["es2020"],
"target": "es2020",
"module": "commonjs",
"moduleResolution": "node",
"newLine": "LF",
Expand All @@ -18,7 +19,6 @@
"removeComments": false,
"resolveJsonModule": true,
"sourceMap": true,
"strict": true,
"target": "es2017"
"strict": true
}
}

0 comments on commit 4db57fa

Please sign in to comment.