Skip to content

Commit 4798985

Browse files
committedAug 19, 2021
release: v2.2.0-beta.6
1 parent 6059244 commit 4798985

22 files changed

+72931
-3309
lines changed
 

‎.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
ROUTER_MODE: 'readonly',
55
NODE_ENV: 'readonly'
66
},
7+
ignorePatterns: ['dist/**/*.js'],
78
root: true,
89
env: {
910
node: true,

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- ### Release 2.2.0-beta.6
2+
- update rollup and more cleanup
3+
14
- ### Release 2.2.0-beta.4
25
- cleanup and rollup updates
36

‎babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [['@babel/preset-env', { targets: { node: 'current' } }]]
2+
presets: ['@babel/preset-env']
33
};

‎dist/cjs/index.js

+36,359-1,510
Large diffs are not rendered by default.

‎dist/esm/index.js

+36,336-1,510
Large diffs are not rendered by default.

‎package-lock.json

+17-96
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@myetherwallet/mewconnect-web-client",
33
"homepage": "https://github.com/myetherwallet/MEWconnect-web-client",
4-
"version": "2.2.0-beta.4",
4+
"version": "2.2.0-beta.6",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
77
"scripts": {
@@ -12,7 +12,7 @@
1212
"test": "npm run test:jest",
1313
"buildBrowserTest": "webpack --config tests/browser/webpack.config.js",
1414
"buildBrowserTest:watch": "webpack --config tests/browser/webpack.config.js -w",
15-
"build": "npm run lint && rimraf dist/ && npx rollup -c && babel dist/cjs --out-dir dist/cjs && babel dist/esm --out-dir dist/esm",
15+
"build": "npm run lint && rimraf dist/ && npx rollup -c",
1616
"build:dev": "rimraf dist/ && npx rollup -c",
1717
"lint": "npx eslint --fix 'src/**.js'",
1818
"update:mainlist": "node src/connectProvider/fetchLists/fetchMainLists.js",
@@ -25,13 +25,16 @@
2525
"pre-commit": "npm run lint"
2626
},
2727
"dependencies": {
28+
"@rollup/plugin-babel": "^5.3.0",
29+
"@rollup/plugin-commonjs": "^20.0.0",
2830
"@rollup/plugin-json": "^4.1.0",
2931
"bignumber.js": "^9.0.0",
3032
"browser-or-node": "^1.2.1",
3133
"core-js": "^3.4.4",
3234
"debug": "^4.0.1",
3335
"detect-browser": "^3.0.1",
3436
"eccrypto": "^1.1.3",
37+
"eth-sig-util": "^3.0.1",
3538
"ethereumjs-common": "^1.5.0",
3639
"ethereumjs-tx": "^2.1.2",
3740
"ethereumjs-utils": "^5.2.5",
@@ -102,9 +105,5 @@
102105
"url-loader": "^3.0.0",
103106
"vue-template-compiler": "^2.6.10",
104107
"yorkie": "^2.0.0"
105-
},
106-
"optionalDependencies": {
107-
"eth-sig-util": "^3.0.1",
108-
"ethereumjs-util": "^5.2.1"
109108
}
110109
}

‎rollup.config.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import json from '@rollup/plugin-json';
22
import image from '@rollup/plugin-image';
3+
import { babel } from '@rollup/plugin-babel';
4+
import commonjs from '@rollup/plugin-commonjs';
35
export default {
46
input: 'src/index.js',
57
output: [
@@ -9,5 +11,12 @@ export default {
911
},
1012
{ format: 'cjs', dir: 'dist/cjs/' }
1113
],
12-
plugins: [json(), image()]
14+
plugins: [
15+
json(),
16+
image(),
17+
commonjs({
18+
include: /node_modules/
19+
}),
20+
babel()
21+
]
1322
};

‎src/connectClient/MewConnectCrypto.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import eccrypto from 'eccrypto';
2-
import ethUtils from 'ethereumjs-util';
2+
import ethUtils from 'ethereumjs-utils';
33
import crypto from 'crypto';
44
import secp256k1 from 'secp256k1';
55

‎src/connectProvider/web3Provider/MEWconnect/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
getBufferFromHex,
99
calculateChainIdFromV
1010
} from '../utils';
11-
import { hashPersonalMessage } from 'ethereumjs-util';
11+
import { hashPersonalMessage } from 'ethereumjs-utils';
1212
import errorHandler from './errorHandler';
1313
import commonGenerator from '../helpers/commonGenerator';
1414
import Misc from '../helpers/misc';

‎src/connectProvider/web3Provider/WalletInterface.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
privateToPublic,
1717
isHexString,
1818
toBuffer as utilsToBuffer
19-
} from 'ethereumjs-util';
19+
} from 'ethereumjs-utils';
2020
import { toChecksumAddress } from './helpers/addressUtils';
2121

2222
const toBuffer = v => {

‎src/connectProvider/web3Provider/helpers/misc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isAddress } from './addressUtils';
22
import url from 'url';
33
import utils from 'web3-utils';
4-
import { isHexString, toBuffer as utilsToBuffer } from 'ethereumjs-util';
4+
import { isHexString, toBuffer as utilsToBuffer } from 'ethereumjs-utils';
55
import { uint, address, string, bytes, bool } from './solidityTypes';
66

77
const toBuffer = v => {

‎src/connectProvider/web3Provider/helpers/webWorkerTimer/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const getTimer = () => {
141141
const url = URL.createObjectURL(
142142
new Blob([workerCode()], { type: 'text/javascript' })
143143
);
144-
worker = new Worker(url);
144+
const worker = new Worker(url);
145145
worker.onmessage = Timer.onmessage;
146146
return Timer;
147147
}

‎src/connectProvider/web3Provider/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { bufferToInt } from 'ethereumjs-util';
1+
import { bufferToInt } from 'ethereumjs-utils';
22

33
const getBufferFromHex = hex => {
44
hex = sanitizeHex(hex);

‎src/connectProvider/web3Provider/web3-provider/methods/eth_decrypt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { toError, toPayload } from '../jsonrpc';
33
import EventNames from '../events';
44
import debugLogger from 'debug';
55
import { isHexStrict } from 'web3-utils';
6-
import { bufferToHex } from 'ethereumjs-util';
6+
import { bufferToHex } from 'ethereumjs-utils';
77
const debug = debugLogger('MEWconnectWeb3');
88
const debugErrors = debugLogger('MEWconnectError');
99

‎src/connectProvider/web3Provider/web3-provider/methods/personal_ecRecover.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable */
22
import misc from '../../helpers/misc';
33
import { toError, toPayload } from '../jsonrpc';
4-
import utils from 'ethereumjs-util';
4+
import utils from 'ethereumjs-utils';
55

66
export default async ({ payload }, res, next) => {
77
if (payload.method !== 'personal_ecRecover') return next();

0 commit comments

Comments
 (0)
Please sign in to comment.