chore: update to new router version and address breaking changes (#344)

* chore: update to new router version and address breaking changes

* chore: add changelog entry
This commit is contained in:
Kim Persson 2021-10-18 12:15:31 +02:00 committed by GitHub
parent d7cff52e75
commit a6d690f10a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 6 deletions

View File

@ -1,4 +1,13 @@
[ [
{
"version": "16.29.3",
"changes": [
{
"note": "Update neon-router version and address breaking changes",
"pr": 344
}
]
},
{ {
"version": "16.29.2", "version": "16.29.2",
"changes": [ "changes": [

View File

@ -66,7 +66,7 @@
"@0x/contracts-zero-ex": "^0.29.1", "@0x/contracts-zero-ex": "^0.29.1",
"@0x/dev-utils": "^4.2.9", "@0x/dev-utils": "^4.2.9",
"@0x/json-schemas": "^6.3.0", "@0x/json-schemas": "^6.3.0",
"@0x/neon-router": "^0.1.3", "@0x/neon-router": "^0.2.1",
"@0x/protocol-utils": "^1.9.2", "@0x/protocol-utils": "^1.9.2",
"@0x/quote-server": "^6.0.6", "@0x/quote-server": "^6.0.6",
"@0x/types": "^3.3.4", "@0x/types": "^3.3.4",

View File

@ -213,7 +213,8 @@ function findRoutesAndCreateOptimalPath(
}; };
const before = performance.now(); const before = performance.now();
const allSourcesRustRoute = route(rustArgs, RUST_ROUTER_NUM_SAMPLES); const allSourcesRustRoute = new Float64Array(rustArgs.pathsIn.length);
route(rustArgs, allSourcesRustRoute, RUST_ROUTER_NUM_SAMPLES);
DEFAULT_INFO_LOGGER( DEFAULT_INFO_LOGGER(
{ router: 'neon-router', performanceMs: performance.now() - before, type: 'real' }, { router: 'neon-router', performanceMs: performance.now() - before, type: 'real' },
'Rust router real routing performance', 'Rust router real routing performance',

View File

@ -959,10 +959,10 @@
typedoc "~0.16.11" typedoc "~0.16.11"
yargs "^10.0.3" yargs "^10.0.3"
"@0x/neon-router@^0.1.3": "@0x/neon-router@^0.2.1":
version "0.1.3" version "0.2.1"
resolved "https://registry.yarnpkg.com/@0x/neon-router/-/neon-router-0.1.3.tgz#70da4c17ca4b59dfe8b5e539673e364a70e62ebd" resolved "https://registry.yarnpkg.com/@0x/neon-router/-/neon-router-0.2.1.tgz#23bb3cedc0eafd55a8ba6b6ea8a59ee4c538064b"
integrity sha512-EfdrG829NalYjAK5/nMTD6YyJQgUzgssL2Hvyphu1ugWxWlZ3QMM9qpZsKt82hUiyZT/64I4JJ3hkerMhTaHeg== integrity sha512-feCCKuox4staZl8lxLY4nf5U256NcDHrgvSFra5cU/TUhoblLHb8F7eWAC9ygpukZUCVFLy13mExkFQHXlEOYw==
dependencies: dependencies:
"@mapbox/node-pre-gyp" "^1.0.5" "@mapbox/node-pre-gyp" "^1.0.5"