Skip to content

Commit

Permalink
v5.0.0: drop cjs support and focus on umd+esm
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Dec 27, 2021
1 parent f3c2c99 commit 0916fd7
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 89 deletions.
2 changes: 1 addition & 1 deletion dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<script crossorigin src="https://unpkg.com/@depay/walletconnect-v1@1"></script>
<script crossorigin src="https://unpkg.com/@depay/web3-blockchains@3/dist/umd/index.js"></script>
<script crossorigin src="https://unpkg.com/@depay/web3-client@7/dist/umd/index.js"></script>
<script crossorigin src="https://unpkg.com/@depay/web3-wallets@6/dist/umd/index.js"></script>
<script crossorigin src="https://unpkg.com/@depay/web3-wallets@7"></script>
<script src="tmp/index.dev.js"></script>
</head>
<body>
Expand Down
68 changes: 0 additions & 68 deletions dist/cjs/index.js

This file was deleted.

File renamed without changes.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@depay/web3-assets",
"moduleName": "Web3Assets",
"version": "4.0.2",
"version": "5.0.0",
"description": "",
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
"source": "src/index.js",
"files": [
"dist"
Expand Down Expand Up @@ -38,20 +38,20 @@
"@depay/web3-blockchains": "^3.0.0",
"@depay/web3-client": "^7.2.0",
"@depay/web3-constants": "^4.0.1",
"@depay/web3-wallets": "^6.1.6"
"@depay/web3-wallets": "^7.0.0"
},
"engines": {
"node": ">=10"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/preset-env": "^7.12.7",
"@depay/walletconnect-v1": "^1.0.17",
"@depay/walletconnect-v1": "^1.0.18",
"@depay/web3-blockchains": "^3.0.0",
"@depay/web3-client": "^7.2.0",
"@depay/web3-constants": "^4.0.1",
"@depay/web3-mock": "^9.2.0",
"@depay/web3-wallets": "^6.1.6",
"@depay/web3-wallets": "^7.0.0",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.4.2",
Expand Down
7 changes: 1 addition & 6 deletions rollup.module.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ import { nodeResolve } from '@rollup/plugin-node-resolve'
export default {
input: 'src/index.js',
output: [
{
format: 'cjs',
globals: globals,
file: 'dist/cjs/index.js'
},
{
format: 'es',
globals: globals,
file: 'dist/es/index.js'
file: 'dist/esm/index.js'
},
{
format: 'umd',
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -875,10 +875,10 @@
"@babel/helper-validator-identifier" "^7.14.9"
to-fast-properties "^2.0.0"

"@depay/walletconnect-v1@^1.0.17":
version "1.0.17"
resolved "https://registry.yarnpkg.com/@depay/walletconnect-v1/-/walletconnect-v1-1.0.17.tgz#b050103c9b5d2f7bfe757d01c72d2bf6dfeca6f8"
integrity sha512-oNPaqQzO2a4L9iY2jAlWqHEoLzCNvnW1QNIMbbEkhub3yICjIQ5Ly5kyHPkdoTH3EP/YSyfsmLvirZxx7Ivxig==
"@depay/walletconnect-v1@^1.0.18":
version "1.0.18"
resolved "https://registry.yarnpkg.com/@depay/walletconnect-v1/-/walletconnect-v1-1.0.18.tgz#57a368580077b886c68216071f4694b3bd821abc"
integrity sha512-PD1HH7eH3QjGgEU4k4L0PHjIu4WMxX4f5r7wezkP9y1bvlzdGtxfyQCsgY/+0O3iu+spQvfOoY5h8gSO5x1B/A==
dependencies:
"@walletconnect/client" "^1.6.5"
"@walletconnect/qrcode-modal" "^1.6.5"
Expand All @@ -903,10 +903,10 @@
resolved "https://registry.yarnpkg.com/@depay/web3-mock/-/web3-mock-9.2.0.tgz#f19fb2d3dd7912ba229fcdfa0e1092bb31f16e96"
integrity sha512-7XVds6JVlfCPc5A6SyOlaGLkvP3Rh06xEi5h7EAS6BQGZgOyBHLWRbctNqHEbzWexUvW/xtQCdp1ujM1zi0FXA==

"@depay/web3-wallets@^6.1.6":
version "6.1.6"
resolved "https://registry.yarnpkg.com/@depay/web3-wallets/-/web3-wallets-6.1.6.tgz#7f0681abe8cf65be342e9d4b831210ded3e397bf"
integrity sha512-eyUgpafpPW/nKrbGmAyHVwUNniCUyGglLqyt8BXrsEcd0bpAqenzXCdtdJ8NsJSZgOyE3zrtL2cjiv3kVJNFbA==
"@depay/web3-wallets@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@depay/web3-wallets/-/web3-wallets-7.0.0.tgz#ff94c5d9acf4d5ad779ffb4b3d61e79d3e11c809"
integrity sha512-lZzZnAmhfd+Sd5Zthuz0JtkWKJeDl82oIPpgAvQJWe6ecLCyJJ3egxTXvEPBVfnvsE8F6bl4LxuFlf3Ci5twNg==

"@eslint/eslintrc@^0.4.3":
version "0.4.3"
Expand Down

0 comments on commit 0916fd7

Please sign in to comment.