diff --git a/CHANGELOG.md b/CHANGELOG.md index 5585bbef86..b42091083d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to ### Changed - all: Drop support for Node.js < 20. +- all: All JS output is now es2022. - all: Upgrade cosmjs-types to ^0.10.1 (Cosmos SDK 0.50 series) - @cosmjs/cli: package got removed with no replacement - @cosmjs/tendermint-rpc: Make constructor functions diff --git a/packages/amino/webpack.web.config.cjs b/packages/amino/webpack.web.config.cjs index ff4db0af8b..246709d703 100644 --- a/packages/amino/webpack.web.config.cjs +++ b/packages/amino/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/cosmwasm-stargate/webpack.web.config.cjs b/packages/cosmwasm-stargate/webpack.web.config.cjs index d7f4a37c90..ac9ae94237 100644 --- a/packages/cosmwasm-stargate/webpack.web.config.cjs +++ b/packages/cosmwasm-stargate/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/crypto/webpack.web.config.cjs b/packages/crypto/webpack.web.config.cjs index ff4db0af8b..246709d703 100644 --- a/packages/crypto/webpack.web.config.cjs +++ b/packages/crypto/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/encoding/webpack.web.config.cjs b/packages/encoding/webpack.web.config.cjs index 435733aaf1..16c9d3ba0e 100644 --- a/packages/encoding/webpack.web.config.cjs +++ b/packages/encoding/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/faucet-client/webpack.web.config.cjs b/packages/faucet-client/webpack.web.config.cjs index a00cffa684..414894e663 100644 --- a/packages/faucet-client/webpack.web.config.cjs +++ b/packages/faucet-client/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/faucet/webpack.node.config.cjs b/packages/faucet/webpack.node.config.cjs index bab1e48c7e..b8c80a73f6 100644 --- a/packages/faucet/webpack.node.config.cjs +++ b/packages/faucet/webpack.node.config.cjs @@ -8,6 +8,7 @@ module.exports = [ target: target, entry: "./build/cli.js", output: { + asyncChunks: false, path: distdir, filename: "cli.js", library: { diff --git a/packages/json-rpc/webpack.web.config.cjs b/packages/json-rpc/webpack.web.config.cjs index aa1500dfce..ffce4c6b08 100644 --- a/packages/json-rpc/webpack.web.config.cjs +++ b/packages/json-rpc/webpack.web.config.cjs @@ -10,6 +10,7 @@ module.exports = [ target: target, entry: "./build/workers/dummyservice.worker.js", output: { + asyncChunks: false, path: distdir, filename: "dummyservice.worker.js", }, @@ -19,6 +20,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/ledger-amino/webpack.demo.config.cjs b/packages/ledger-amino/webpack.demo.config.cjs index dea15b6b02..a4f523133c 100644 --- a/packages/ledger-amino/webpack.demo.config.cjs +++ b/packages/ledger-amino/webpack.demo.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/demo/web.js"), output: { + asyncChunks: false, path: demodir, filename: "ledger.js", }, diff --git a/packages/math/webpack.web.config.cjs b/packages/math/webpack.web.config.cjs index e8efc5ad31..e6b0cf8844 100644 --- a/packages/math/webpack.web.config.cjs +++ b/packages/math/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/proto-signing/webpack.web.config.cjs b/packages/proto-signing/webpack.web.config.cjs index ff4db0af8b..246709d703 100644 --- a/packages/proto-signing/webpack.web.config.cjs +++ b/packages/proto-signing/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/socket/webpack.web.config.cjs b/packages/socket/webpack.web.config.cjs index b291f7b2d9..797dca59c6 100644 --- a/packages/socket/webpack.web.config.cjs +++ b/packages/socket/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/stargate/webpack.web.config.cjs b/packages/stargate/webpack.web.config.cjs index c1a9e322db..be85522b6e 100644 --- a/packages/stargate/webpack.web.config.cjs +++ b/packages/stargate/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/stream/webpack.web.config.cjs b/packages/stream/webpack.web.config.cjs index 203b29a691..3430433607 100644 --- a/packages/stream/webpack.web.config.cjs +++ b/packages/stream/webpack.web.config.cjs @@ -10,6 +10,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/tendermint-rpc/webpack.web.config.cjs b/packages/tendermint-rpc/webpack.web.config.cjs index 7d66bf9d97..48881a09cf 100644 --- a/packages/tendermint-rpc/webpack.web.config.cjs +++ b/packages/tendermint-rpc/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/packages/utils/webpack.web.config.cjs b/packages/utils/webpack.web.config.cjs index e8efc5ad31..e6b0cf8844 100644 --- a/packages/utils/webpack.web.config.cjs +++ b/packages/utils/webpack.web.config.cjs @@ -11,6 +11,7 @@ module.exports = [ target: target, entry: globSync("./build/**/*.spec.js", { dotRelative: true }).sort(), output: { + asyncChunks: false, path: distdir, filename: "tests.js", }, diff --git a/tsconfig.json b/tsconfig.json index f52c003f57..c678ea51f0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,10 +9,9 @@ "declaration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "lib": ["es2020"], - "target": "es2020", - "module": "commonjs", - "moduleResolution": "node", + "lib": ["es2022"], + "target": "es2022", + "module": "node20", "newLine": "LF", "noEmitOnError": true, "noFallthroughCasesInSwitch": true,