Skip to content

Commit

Permalink
Bump typescript to 4.9.5 and ts-node to 10.9.1 (#6238)
Browse files Browse the repository at this point in the history
* Bump typescript version to 4.9.5

* Update CHANGELOG

* Bump ts-node to 10.9.1

* Correct test cases for check-address-checksum-test

* dtslint debug
  • Loading branch information
spacesailor24 committed Jun 28, 2023
1 parent 6bde558 commit 512aba7
Show file tree
Hide file tree
Showing 28 changed files with 30,814 additions and 23,329 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -680,4 +680,8 @@ Released with 1.0.0-beta.37 code base.
- Updated dependencies (#6044)


## [Unreleased]
## [Unreleased]

### Fixed

- Builds fixed by updating all typescript versions to 4.9.5 (#6238)
58 changes: 58 additions & 0 deletions dist/web3.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/

/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/

/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/

/*!
* v2.1.4-104-gc868b3a
*
*/

/*! https://mths.be/utf8js v3.0.0 by @mathias */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */

/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.5.7
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2016
* @license MIT
*/

/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.8.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2015-2018
* @license MIT
*/
53,942 changes: 30,682 additions & 23,260 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@
"sandboxed-module": "^2.0.4",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"ts-node": "^9.0.0",
"typescript": "4.1",
"ts-node": "^10.9.1",
"typescript": "4.9.5",
"wait-port": "^0.2.9",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-bzz/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-core-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"devDependencies": {
"@types/node": "^12.12.6",
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-core-method/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-core-subscriptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth-abi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth-accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth-ens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1",
"typescript": "4.9.5",
"web3-eth": "1.10.0"
}
}
82 changes: 41 additions & 41 deletions packages/web3-eth-ens/types/tests/ens-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,43 +48,43 @@ ens.getResolver('name', (error: Error, contract: Contract) => {});
// $ExpectType Promise<Contract>
ens.getResolver('name', (value: any) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setResolver('name', '0x0...');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setResolver('name', '0x0...', {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setResolver('name', '0x0...', {}, (error: Error, receipt: TransactionReceipt) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setSubnodeOwner('name', 'label', '0x...');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setSubnodeOwner('name', 'label', '0x...', {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setSubnodeOwner('name', 'label', '0x...', {}, (error: Error, receipt: TransactionReceipt) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setRecord('name', 'owner', 'resolver', '100000');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setRecord('name', 'owner', 'resolver', 100000);
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setRecord('name', 'owner', 'resolver', 100000, {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setRecord('name', 'owner', 'resolver', 100000, {}, (error: Error, receipt: TransactionReceipt) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setSubnodeRecord('name', 'label', 'owner', 'resolver', '100000');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setSubnodeRecord('name', 'label', 'owner', 'resolver', 100000);
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setSubnodeRecord('name', 'label', 'owner', 'resolver', 100000, {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setSubnodeRecord('name', 'label', 'owner', 'resolver', 100000, {}, (error: Error, receipt: TransactionReceipt) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setApprovalForAll('name', true);
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setApprovalForAll('name', false, {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setApprovalForAll('name', true, {}, (error: Error, receipt: TransactionReceipt) => {});

// $ExpectType Promise<boolean>
Expand All @@ -108,11 +108,11 @@ ens.getTTL('name', (error: Error, ttl: string) => {});
// $ExpectType Promise<string>
ens.getTTL('name', (value: any) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setTTL('name', 10000);
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setTTL('name', 10000, {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setTTL('name', '0xa', {}, (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => {});

// $ExpectType Promise<string>
Expand All @@ -122,11 +122,11 @@ ens.getOwner('name', (value: any) => {});
// $ExpectType Promise<string>
ens.getOwner('name', (error: Error, owner: string) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setOwner('name', '0x...');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setOwner('name', '0x...', {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setOwner('name', '0x...', {}, (error: Error | TransactionRevertInstructionError, receipt: TransactionReceipt) => {});

// $ExpectType Promise<boolean>
Expand All @@ -151,11 +151,11 @@ ens.getAddress('name', (error: Error, address: string) => {});
// $ExpectType Promise<string>
ens.getAddress('name', (value: any) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setAddress('name', 'address');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setAddress('name', 'address', {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setAddress('name', 'address', {}, (error: Error, result: any) => {});

// $ExpectType Promise<{ [x: string]: string; }>
Expand All @@ -165,11 +165,11 @@ ens.getPubkey('name', (error: Error, result: { [x: string]: string }) => {});
// $ExpectType Promise<{ [x: string]: string; }>
ens.getPubkey('name', (value: any) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setPubkey('name', 'x', 'y');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setPubkey('name', 'x', 'y', {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setPubkey('name', 'x', 'y', {}, (error: Error, result: any) => {});

// $ExpectType Promise<string>
Expand All @@ -179,11 +179,11 @@ ens.getText('name', 'key', (error: Error, ensName: string) => {});
// $ExpectType Promise<string>
ens.getText('name', 'key', (value: any) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setText('name', 'key', 'value');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setText('name', 'key', 'value', {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setText('name', 'key', 'value', {}, (error: Error, result: any) => {});

// $ExpectType Promise<string>
Expand All @@ -193,11 +193,11 @@ ens.getContent('name', (error: Error, contentHash: string) => {});
// $ExpectType Promise<string>
ens.getContent('name', (value: any) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setContent('name', 'hash');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setContent('name', 'hash', {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setContent('name', 'hash', {}, (error: Error, result: any) => {});

// $ExpectType Promise<string>
Expand All @@ -207,11 +207,11 @@ ens.getMultihash('name', (error: Error, multihash: string) => {});
// $ExpectType Promise<string>
ens.getMultihash('name', (value: any) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setMultihash('name', 'hash');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setMultihash('name', 'hash', {}, (error: Error, result: any) => {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setMultihash('name', 'hash', {});

// $ExpectType Promise<ContentHash>
Expand All @@ -221,9 +221,9 @@ ens.getContenthash('name', (error: Error, contenthash: ContentHash) => {});
// $ExpectType Promise<ContentHash>
ens.getContenthash('name', (value: ContentHash) => {});

// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setContenthash('name', 'hash');
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setContenthash('name', 'hash', {});
// $ExpectType PromiEvent<TransactionReceipt | TransactionRevertInstructionError>
// $ExpectType PromiEvent<TransactionRevertInstructionError | TransactionReceipt>
ens.setContenthash('name', 'hash', {}, (error: Error, result: any) => {});
3 changes: 2 additions & 1 deletion packages/web3-eth-ens/types/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"whitespace": false,
"no-unnecessary-class": false,
"no-empty-interface": false,
"unified-signatures": false
"unified-signatures": false,
"no-redundant-jsdoc": false
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth-iban/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth-personal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth2-beaconchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"@types/node": "^14.11.2",
"babel-jest": "^26.6.3",
"jest": "^26.4.2",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-eth2-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"@types/node": "^14.14.22",
"jest": "^26.5.3",
"ts-jest": "^26.4.4",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-net/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
2 changes: 1 addition & 1 deletion packages/web3-providers-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
},
"devDependencies": {
"dtslint": "^3.4.1",
"typescript": "4.1"
"typescript": "4.9.5"
}
}
Loading

0 comments on commit 512aba7

Please sign in to comment.