Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ethers-io/ethers.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.1
Choose a base ref
...
head repository: ethers-io/ethers.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.2
Choose a head ref
  • 6 commits
  • 42 files changed
  • 1 contributor

Commits on Jun 13, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    renovate-bot Mend Renovate
    Copy the full SHA
    039bad3 View commit details
  2. Copy the full SHA
    e0e0dbe View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    738d349 View commit details

Commits on Jun 14, 2020

  1. Fixed typo in changelog.

    ricmoo committed Jun 14, 2020
    Copy the full SHA
    be7e86e View commit details
  2. Copy the full SHA
    bbb4f40 View commit details
  3. Updated dist files.

    ricmoo committed Jun 14, 2020
    Copy the full SHA
    3017a31 View commit details
Showing with 8,215 additions and 2,391 deletions.
  1. +8 −1 CHANGELOG.md
  2. +13 −5 admin/cmds/lock-versions.js
  3. +21 −14 admin/cmds/publish.js
  4. +3 −3 admin/cmds/spell-check.js
  5. +1 −1 admin/cmds/update-versions.js
  6. +2 −2 admin/index.js
  7. +2 −2 admin/npm.js
  8. +761 −1,920 package-lock.json
  9. +2 −2 package.json
  10. +2 −2 packages/ethers/dist/ethers-all.esm.min.js
  11. +2 −2 packages/ethers/dist/ethers-all.umd.min.js
  12. +3,656 −199 packages/ethers/dist/ethers.esm.js
  13. +2 −2 packages/ethers/dist/ethers.esm.min.js
  14. +3,656 −198 packages/ethers/dist/ethers.umd.js
  15. +2 −2 packages/ethers/dist/ethers.umd.min.js
  16. +1 −1 packages/ethers/lib.esm/_version.d.ts
  17. +1 −1 packages/ethers/lib.esm/_version.js
  18. +1 −1 packages/ethers/lib/_version.d.ts
  19. +1 −1 packages/ethers/lib/_version.js
  20. +2 −2 packages/ethers/package.json
  21. +1 −1 packages/ethers/src.ts/_version.ts
  22. +1 −1 packages/logger/lib.esm/_version.d.ts
  23. +1 −1 packages/logger/lib.esm/_version.js
  24. +1 −0 packages/logger/lib.esm/index.js
  25. +1 −1 packages/logger/lib/_version.d.ts
  26. +1 −1 packages/logger/lib/_version.js
  27. +1 −0 packages/logger/lib/index.js
  28. +2 −2 packages/logger/package.json
  29. +1 −1 packages/logger/src.ts/_version.ts
  30. +1 −0 packages/logger/src.ts/index.ts
  31. +1 −1 packages/providers/lib.esm/_version.d.ts
  32. +1 −1 packages/providers/lib.esm/_version.js
  33. +15 −4 packages/providers/lib.esm/base-provider.js
  34. +4 −1 packages/providers/lib.esm/json-rpc-provider.js
  35. +1 −1 packages/providers/lib/_version.d.ts
  36. +1 −1 packages/providers/lib/_version.js
  37. +16 −4 packages/providers/lib/base-provider.js
  38. +4 −1 packages/providers/lib/json-rpc-provider.js
  39. +2 −2 packages/providers/package.json
  40. +1 −1 packages/providers/src.ts/_version.ts
  41. +15 −4 packages/providers/src.ts/base-provider.ts
  42. +4 −1 packages/providers/src.ts/json-rpc-provider.ts
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,10 +3,17 @@ Changelog

This change log is managed by `scripts/cmds/update-versions` but may be manually updated.

ethers/v5.0.2 (2020-06-13 21:36)
--------------------------------

- Allow provider.ready to stall until the network is available. ([#882](https://github.com/ethers-io/ethers.js/issues/882); [bbb4f40](https://github.com/ethers-io/ethers.js/commit/bbb4f407b34782c36ff93fa528e3b9f793987d4a))
- Reduce dependencies to squash security issues. ([738d349](https://github.com/ethers-io/ethers.js/commit/738d34969d7c2184242b92f78228ba6a8aed1f3a))
- Updated admin scripts for publishing prod releases. ([e0e0dbe](https://github.com/ethers-io/ethers.js/commit/e0e0dbef1830572c465670b826a7aa2b403ad2e8))

ethers/v5.0.1 (2020-06-12 23:09)
--------------------------------

- Fixed embedded pacakge version strings. ([5a69e9c](https://github.com/ethers-io/ethers.js/commit/5a69e9caa882aa5f1b44c4453d67cde43254eafe))
- Fixed embedded package version strings. ([5a69e9c](https://github.com/ethers-io/ethers.js/commit/5a69e9caa882aa5f1b44c4453d67cde43254eafe))

ethers/v5.0.0 (2020-06-12 19:58)
--------------------------------
18 changes: 13 additions & 5 deletions admin/cmds/lock-versions.js
Original file line number Diff line number Diff line change
@@ -23,15 +23,23 @@ const { log } = require("../log");
const deps = info[key];
if (!deps) { return; }
Object.keys(deps).forEach((name) => {
if (versions[name] == null) { return; }
const value = ">=" + versions[name];
if (value !== deps[name])
if (!deps[name]) { return; }
// Not a package in this monorepoa
const version = versions[name];
if (version == null) { return; }

const value = ((version.indexOf("beta") !== -1) ? ">=": "^") + version;

// No change
if (value === deps[name]) { return; }

// Show a header for the first change
if (!shown) {
log(`<bold:Locking ${ info.name }:>`);
shown = true;
}
log(` <green:${ name }>: ${ deps[name] } => <bold:${ value.substring(2) }>`);

// Show the locked version
log(` <green:${ name }>: ${ deps[name] } => <bold:${ value.replace(">", "&gt;") }>`);
deps[name] = value;
});
});
35 changes: 21 additions & 14 deletions admin/cmds/publish.js
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ const { getPackageVersion, publish } = require("../npm");
const { log } = require("../log");

const USER_AGENT = "ethers-dist@0.0.0";
const TAG = "next";
const TAG = "latest";


let dirnames = getOrdered();
@@ -75,10 +75,7 @@ if (process.argv.length > 2) {
let dirname = dirnames[i];

if (dirname === "ethers") {
options.tag = "next";
includeEthers = true;
} else {
options.tag = "latest";
}

let info = loadPackage(dirname);
@@ -98,20 +95,30 @@ if (process.argv.length > 2) {
log(" <green:Done.>");
}

// Publish the GitHub release (currently beta)
const beta = true;
// Publish the GitHub release
const beta = false;
if (includeEthers) {
{
// The password above already succeeded
const username = await config.get("github-user");
const password = await config.get("github-release");

// The password above already succeeded
const username = await config.get("github-user");
const password = await config.get("github-release");
// Get the latest change from the changelog
const change = latestChange();

// Get the latest change from the changelog
const change = latestChange();
// Publish the release
const link = await createRelease(username, password, change.version, change.title, change.content, beta, gitCommit);
log(`<bold:Published Release:> ${ link }`);
}

/*
{
const accessKey = await config.get("aws-upload-scripts-accesskey");
const secretKey = await config.get("aws-upload-scripts-secretkey");
const s3 =
}
*/

// Publish the release
const link = await createRelease(username, password, change.version, change.title, change.content, beta, gitCommit);
log(`<bold:Published Release:> ${ link }`);
}

})();
6 changes: 3 additions & 3 deletions admin/cmds/spell-check.js
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ expired failed fetches formatted formatting funding generated
has ignoring implemented implementer imported including instantiate
keyword labelled larger lookup matches mined modified modifies multi
named needed nested neutered numeric offline optimizer overriding owned packed
padded parsed parsing passed placeholder processing reached
padded parsed parsing passed placeholder processing properties reached
recommended recovered redacted remaining replaced required
serializes shared signed signing skipped stored supported tagging targetted
transactions uninstall unstake unsubscribe using verifies website
@@ -42,8 +42,8 @@ jumpdest mstore shr shl xor
ABIEncoder testcase numberish Wordlist
// Common Code Strings
abi addr api app arg arrayify asm basex bigint bn byte bytecode
callback calldata checksum ciphertext cli codepoint config
abi addr api app arg arrayify asm basex bigint bignumber bn byte
bytecode callback calldata checksum ciphertext cli codepoint config
contenthash ctr ctrl debug dd dklen eexist encseed eof ethaddr
ethseed ethers eval exec filename func gz hid http https hw iv
info init ipc json kdf kdfparams labelhash lang lib mm multihash nfc
2 changes: 1 addition & 1 deletion admin/cmds/update-versions.js
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ if (process.argv.length > 2) {

// Bump the version if necessary
if (info.version === npmInfo.version) {
let newVersion = semver.inc(info.version, "prerelease", "beta");
let newVersion = semver.inc(info.version, "patch");

// Write out the _version.ts
if (!info._ethers_nobuild) {
4 changes: 2 additions & 2 deletions admin/index.js
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ async function runDiff(dirnames) {

// Bump the version if necessary
if (info.version === npmInfo.version) {
info.version = semver.inc(info.version, "prerelease", "beta");
info.version = semver.inc(info.version, "patch");
}

console.log(colorify("<bold:Package>: ") + info.name);
@@ -176,7 +176,7 @@ async function runUpdate(dirnames) {

// Bump the version if necessary
if (info.version === npmInfo.version) {
let newVersion = semver.inc(info.version, "prerelease", "beta");
let newVersion = semver.inc(info.version, "patch");

// Write out the _version.ts
if (!info._ethers_skipPrepare) {
4 changes: 2 additions & 2 deletions admin/npm.js
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

const resolve = require("path").resolve;

const npm = require("libnpm");
const npmpub = require("libnpmpublish");
const semver = require("semver");

const local = require("./local");
@@ -60,7 +60,7 @@ async function getTarballHash(name, version) {

async function _publish(info, tarball, options) {
try {
let result = await npm.publish(info, tarball, options);
let result = await npmpub.publish(info, tarball, options);
return result;
} catch (error) {

Loading