diff --git a/.circleci/config.yml b/.circleci/config.yml index 41e06eecc..755afac11 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -285,6 +285,12 @@ jobs: working_directory: ~/web3-onboard-monorepo/packages/vue steps: - node-build-steps + build-gas: + docker: + - image: cimg/node:16.13.1 + working_directory: ~/web3-onboard-monorepo/packages/gas + steps: + - node-build-steps # Build staging/Alpha releases build-staging-core: @@ -407,6 +413,12 @@ jobs: working_directory: ~/web3-onboard-monorepo/packages/vue steps: - node-staging-build-steps + build-staging-gas: + docker: + - image: cimg/node:16.13.1 + working_directory: ~/web3-onboard-monorepo/packages/gas + steps: + - node-staging-build-steps workflows: version: 2 @@ -531,3 +543,9 @@ workflows: <<: *deploy_production_filters - build-staging-vue: <<: *deploy_staging_filters + gas: + jobs: + - build-gas: + <<: *deploy_production_filters + - build-staging-gas: + <<: *deploy_staging_filters diff --git a/package.json b/package.json index 7690d46d7..9cb7ca1a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web3-onboard-monorepo", - "version": "2.5.0", + "version": "2.6.0", "private": true, "workspaces": [ "./packages/*" diff --git a/packages/coinbase/package.json b/packages/coinbase/package.json index 9f84cb034..12425e1f5 100644 --- a/packages/coinbase/package.json +++ b/packages/coinbase/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/coinbase", - "version": "2.0.9", + "version": "2.0.10", "description": "Coinbase SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -59,6 +59,6 @@ }, "dependencies": { "@coinbase/wallet-sdk": "^3.0.5", - "@web3-onboard/common": "^2.1.6" + "@web3-onboard/common": "^2.1.7" } } diff --git a/packages/common/package.json b/packages/common/package.json index 0878ce05c..16e286f55 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@web3-onboard/common", - "version": "2.1.6", + "version": "2.1.7", "description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.", "keywords": [ "Ethereum", @@ -73,6 +73,7 @@ "prettier-plugin-svelte": "^2.4.0", "rollup": "^2.3.4", "rollup-plugin-svelte": "^7.0.0", + "rollup-plugin-terser": "^7.0.2", "svelte": "^3.42.5", "svelte-check": "^2.2.6", "svelte-preprocess": "^4.9.4", @@ -81,6 +82,7 @@ }, "dependencies": { "@ethereumjs/common": "2.6.2", + "bignumber.js": "^9.0.0", "ethers": "5.5.4", "joi": "^17.4.2", "rxjs": "^7.5.2" diff --git a/packages/common/rollup.config.js b/packages/common/rollup.config.js index aa41939bf..1925d6540 100644 --- a/packages/common/rollup.config.js +++ b/packages/common/rollup.config.js @@ -4,6 +4,7 @@ import replace from '@rollup/plugin-replace' import json from '@rollup/plugin-json' import sveltePreprocess from 'svelte-preprocess' import typescript from '@rollup/plugin-typescript' +import { terser } from 'rollup-plugin-terser' const production = !process.env.ROLLUP_WATCH @@ -11,7 +12,8 @@ export default { input: 'src/index.ts', output: { format: 'esm', - dir: 'dist/' + dir: 'dist/', + sourcemap: true, }, plugins: [ json(), @@ -33,7 +35,19 @@ export default { typescript({ sourceMap: !production, inlineSources: !production + }), + production && terser({ + ecma: 2017, + mangle: { toplevel: true }, + compress: { + module: true, + toplevel: true, + unsafe_arrows: true, + drop_console: production, + drop_debugger: production + }, + output: { quote_style: 1 } }) ], - external: ['joi', 'rxjs', 'ethers', '@ethereumjs/common'] + external: ['joi', 'rxjs', 'ethers', '@ethereumjs/common', 'bignumber.js'] } diff --git a/packages/common/src/elements/AddressTable.svelte b/packages/common/src/elements/AddressTable.svelte index 704098e1a..99cacce03 100644 --- a/packages/common/src/elements/AddressTable.svelte +++ b/packages/common/src/elements/AddressTable.svelte @@ -1,6 +1,6 @@