Skip to content

Commit

Permalink
New Release (#258)
Browse files Browse the repository at this point in the history
* Bump buidler-core version

* Fix some tests

* Fix clean task

* Bump core version

* Bump buidler-ethers version

* Bump buidler-solhint version

* Bump buidler-solpp version

* Bump buidler-web3-legacy version

* Bump buidler-web3 version

* Bump version in buidler-truffle4

* Add missing typings and bump version in buidler-truffle5
  • Loading branch information
alcuadrado authored May 7, 2019
1 parent e8c264f commit 1e7cd78
Show file tree
Hide file tree
Showing 20 changed files with 21,383 additions and 517 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "1.0.0-beta.4"
"version": "1.0.0-beta.5"
}
2 changes: 1 addition & 1 deletion packages/buidler-core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/buidler-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nomiclabs/buidler",
"version": "1.0.0-beta.4",
"version": "1.0.0-beta.6",
"author": "Nomic Labs SRL",
"license": "MIT",
"homepage": "https://buidler.dev",
Expand Down Expand Up @@ -35,7 +35,7 @@
"coverage": "../../node_modules/.bin/nyc ../../node_modules/.bin/mocha",
"build": "../../node_modules/.bin/tsc --build src",
"build-test": "../../node_modules/.bin/tsc --build .",
"clean": "rm -rf builtin-tasks internal *.d.ts *.map *.js build-test"
"clean": "rm -rf builtin-tasks internal *.d.ts *.map *.js build-test tsconfig.tsbuildinfo"
},
"files": [
"builtin-tasks/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ describe("Compiler downloader", function() {

before(function() {
localCompilerBuild = {
path: "soljson-v0.5.5+commit.47a71e8f.js",
version: "0.5.5",
build: "commit.47a71e8f",
longVersion: "0.5.5+commit.47a71e8f",
path: "soljson-v0.5.8+commit.23d335f2.js",
version: "0.5.8",
build: "commit.23d335f2",
longVersion: "0.5.8+commit.23d335f2",
keccak256:
"0x7dab358bfe745766bf640e78799beb84646a856717b773eb36c08d274f24fd21",
"0x7bdfc3e09790d5b1f488b10a8c0da4f85a8a64482c2be5566969feafdd7deb9d",
urls: [
"bzzr://b1d6cee21ac31939a391b84c465160725699c5baf3b7ab74f27f45ecc91387ad"
"bzzr://8923240b6d3f6e2f38ced6d5f8bfeb1b8a64ee49cdd358ea5c582dde194a699a"
]
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ describe("Dependency Graph", function() {
localResolver = new Resolver(await getFixtureProjectPath(PROJECT));
});

it.only("should work with cyclic dependencies", async () => {
it("should work with cyclic dependencies", async () => {
const fileA = await localResolver.resolveProjectSourceFile(
"contracts/A.sol"
);
Expand Down
14 changes: 8 additions & 6 deletions packages/buidler-core/test/internal/util/lazy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import { ERRORS } from "../../../src/internal/core/errors";
import { lazyFunction, lazyObject } from "../../../src/internal/util/lazy";
import { expectBuidlerError } from "../../helpers/errors";

// tslint:disable no-inferred-empty-object-type

describe("lazy module", () => {
describe("lazyObject", () => {
it("shouldn't call the initializer function eagerly", () => {
let called = false;
lazyObject(() => {
called = true;
return { a: 1 };
return {};
});

assert.isFalse(called);
Expand Down Expand Up @@ -93,7 +95,7 @@ describe("lazy module", () => {
});

it("should trap defineProperty correctly", () => {
const obj = lazyObject(() => ({ a: 1 })) as any;
const obj = lazyObject(() => ({})) as any;
obj.asd = 123;

assert.equal(obj.asd, 123);
Expand Down Expand Up @@ -145,15 +147,15 @@ describe("lazy module", () => {

it("should trap isExtensible correctly", () => {
const obj = lazyObject(() => {
const v = { a: 1 };
const v = {};
Object.preventExtensions(v);

return v;
});

assert.isFalse(Object.isExtensible(obj));

const obj2 = lazyObject(() => ({ a: 1 }));
const obj2 = lazyObject(() => ({}));
assert.isTrue(Object.isExtensible(obj2));
});

Expand All @@ -172,14 +174,14 @@ describe("lazy module", () => {
});

it("should trap preventExtensions correctly", () => {
const obj = lazyObject(() => ({ a: 1 }));
const obj = lazyObject(() => ({}));
Object.preventExtensions(obj);

assert.isFalse(Object.isExtensible(obj));
});

it("should trap set correctly", () => {
const obj = lazyObject(() => ({ a: 1 })) as any;
const obj = lazyObject(() => ({})) as any;
obj.asd = 123;

assert.deepEqual(Object.getOwnPropertyNames(obj), ["asd"]);
Expand Down
Loading

0 comments on commit 1e7cd78

Please # to comment.