Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #398 from 0xProject/v4.0.0-beta
Browse files Browse the repository at this point in the history
Release version 4.0.0-beta
  • Loading branch information
albrow authored Sep 5, 2019
2 parents 9742536 + d7c4b82 commit 7c72d2b
Show file tree
Hide file tree
Showing 114 changed files with 20,790 additions and 34,455 deletions.
19 changes: 12 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ jobs:
environment:
BASH_ENV: ~/.nvm/nvm.sh
docker:
- image: circleci/golang:1.12
- image: 0xorg/mesh-ganache-cli:6.0.0
- image: circleci/golang:1.12.9-browsers
- image: 0xorg/ganache-cli:latest
environment:
VERSION: 4.3.0
working_directory: /go/src/github.com/0xProject/0x-mesh
steps:
- checkout
- run:
name: Install dependencies for Google Chrome
command: sudo apt-get update && sudo apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget --fix-missing
- run:
name: Install dep
command: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
Expand Down Expand Up @@ -41,8 +40,14 @@ jobs:
name: Run Go tests
command: make test-go
- run:
name: Run WebAssembly tests
command: make test-wasm
name: Run WebAssembly tests in Node.js
command: make test-wasm-node
- run:
name: Run WebAssembly tests in a headless browser
command: make test-wasm-browser
- run:
name: Run integration tests
command: make test-integration
- run:
name: Test installing Mesh without CGO
command: CGO_ENABLED=0 go install ./...
Expand Down
2 changes: 1 addition & 1 deletion .gitbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ root: ./docs/

structure:
readme: ../README.md
summary: ./SUMMARY.md
summary: ./summary.md
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@ rpc/clients/typescript/node_modules
rpc/clients/typescript/lib
rpc/clients/typescript/yarn-error.log
*.wasm
browser/lib
browser/ts/generated
examples/browser/dist/bundle.js
integration-tests/browser/dist/bundle.js
integration-tests/data/standalone-0/db/
integration-tests/data/standalone-0/p2p/
integration-tests/data/bootstrap-0/p2p/

26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# CHANGELOG

## Upcoming release
This changelog is a work in progress and may contain notes for versions which have not actually been released. Check the [Releases](https://github.com/0xProject/0x-mesh/releases) page to see full release notes and more information about the latest released versions.

## v4.0.0-beta

### Breaking changes 🛠

- Renamed the environment variable `P2P_LISTEN_PORT` to `P2P_TCP_PORT` ([#366](https://github.com/0xProject/0x-mesh/pull/366)). This makes it possible to configure Mesh to use both the TCP and Websocket transports by listening on different ports.

### Features ✅

- Enabled WebSocket transport for bootstrap nodes and all other nodes ([#361](https://github.com/0xProject/0x-mesh/pull/361), [#363](https://github.com/0xProject/0x-mesh/pull/363), [#366](https://github.com/0xProject/0x-mesh/pull/366)). By default the WebSocket transport listens on port `60559` but this can be changed via the `P2P_WEBSOCKETS_PORT` environment variable.
- Created TypeScript bindings and an NPM package for running Mesh directly in the browser ([#369](https://github.com/0xProject/0x-mesh/pull/369)). Documentation for the NPM package and a guide for running Mesh in the browser can be found at [https://0x-org.gitbook.io/mesh/](https://0x-org.gitbook.io/mesh/).
- Added ability to use custom bootstrap list via the `BOOTSTRAP_LIST` environment variable ([#374](https://github.com/0xProject/0x-mesh/pull/374)). Typically this should only be used for testing/debugging.
- Added WebAssembly/Browser support to packages that previously did not support it ([#358](https://github.com/0xProject/0x-mesh/pull/358), [#359](https://github.com/0xProject/0x-mesh/pull/359), [#366](https://github.com/0xProject/0x-mesh/pull/366)).
- Order hash calculations are now cached, which slightly improves performance ([#365](https://github.com/0xProject/0x-mesh/pull/365)).
- Refactored `BlockWatch` so that it can be used without using `LevelDB` for Ethereum block storage. ([#355](https://github.com/0xProject/0x-mesh/pull/355))

### Bug fixes 🐞

- Fixed two related bugs: One where order expiration events would be emitted multiple times and another that meant subsequent fill/cancel events for orders deemed expired were not emitted. Fills/cancels for expired orders will continue to be emitted if they occur within ~4 mins (i.e. 20 blocks) of the expiration ([#385](https://github.com/0xProject/0x-mesh/pull/385)).
- Fixed a data race-condition in OrderWatcher that could have caused order collection updates to be overwritten in the DB. ([#386](https://github.com/0xProject/0x-mesh/pull/386))
- Fixed a bug where `fillableTakerAssetAmount` and `lastUpdated` were not always being properly updated in the DB. ([#386](https://github.com/0xProject/0x-mesh/pull/386))
- Fixed some issues with key prefixes for certain types not being applied correctly to logs ([#375](https://github.com/0xProject/0x-mesh/pull/375)).
- Fixed an issue where order hashes were not being correctly logged ([#368](https://github.com/0xProject/0x-mesh/pull/368)).
- Mesh will now properly shut down if the database is unexpectedly closed ([#370](https://github.com/0xProject/0x-mesh/pull/370)).

## v3.0.1-beta

Expand Down
177 changes: 155 additions & 22 deletions Gopkg.lock

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

Loading

0 comments on commit 7c72d2b

Please sign in to comment.