Skip to content

Commit

Permalink
update dependencies, package.json, and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Jan 30, 2020
1 parent 415b2a2 commit 1f94ab6
Show file tree
Hide file tree
Showing 30 changed files with 168 additions and 176 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## HEAD
## 4.4.0

- Update protozero to v1.6.8
- Update geometry.hpp to v1.0.0
- Update wagyu to 0.5.0
- Drop support for Node versions less than 10.
- Consistent output image size compatible with other SVG libraries (#938)

## 4.3.1
- Update to mapnik@a0ea7db1a
Expand Down
2 changes: 1 addition & 1 deletion deps/geometry
Submodule geometry updated 47 files
+88 −0 .clang-format
+28 −0 .clang-tidy
+4 −1 .gitignore
+0 −3 .gitmodules
+0 −1 .mason
+50 −19 .travis.yml
+55 −0 CMakeLists.txt
+34 −12 Makefile
+3 −1 README.md
+24 −0 bench/geometry.cpp
+6 −0 bench/main.cpp
+231 −0 cmake/mason.cmake
+3 −0 codecov.yml
+40 −18 include/mapbox/feature.hpp
+0 −1 include/mapbox/geometry.hpp
+4 −2 include/mapbox/geometry/box.hpp
+18 −0 include/mapbox/geometry/empty.hpp
+2 −2 include/mapbox/geometry/envelope.hpp
+12 −6 include/mapbox/geometry/for_each_point.hpp
+21 −23 include/mapbox/geometry/geometry.hpp
+9 −2 include/mapbox/geometry/line_string.hpp
+8 −1 include/mapbox/geometry/multi_line_string.hpp
+8 −1 include/mapbox/geometry/multi_point.hpp
+8 −1 include/mapbox/geometry/multi_polygon.hpp
+9 −2 include/mapbox/geometry/point.hpp
+16 −2 include/mapbox/geometry/polygon.hpp
+98 −0 include/mapbox/geometry_io.hpp
+38 −0 scripts/clang-tidy.sh
+29 −0 scripts/coverage.sh
+36 −0 scripts/format.sh
+132 −0 scripts/setup.sh
+16 −0 test/empty.cpp
+27 −0 test/envelope.cpp
+68 −0 test/feature.cpp
+61 −0 test/for_each_point.cpp
+144 −0 test/geometry.cpp
+8 −0 test/geometry_collection.cpp
+57 −0 test/io.cpp
+48 −0 test/line_string.cpp
+2 −0 test/main.cpp
+61 −0 test/multi_line_string.cpp
+48 −0 test/multi_point.cpp
+42 −0 test/multi_polygon.cpp
+86 −0 test/point.cpp
+61 −0 test/polygon.cpp
+0 −5 tests/collection.cpp
+0 −260 tests/test.cpp
2 changes: 1 addition & 1 deletion deps/protozero
Submodule protozero updated 87 files
+20 −1 .clang-tidy
+87 −38 .travis.yml
+70 −1 CHANGELOG.md
+3 −3 CMakeLists.txt
+24 −11 appveyor.yml
+0 −65 build-appveyor.bat
+0 −29 build-local.bat
+0 −18 build-msys2.bat
+34 −18 include/protozero/byteswap.hpp
+8 −8 include/protozero/data_view.hpp
+36 −21 include/protozero/iterators.hpp
+2 −2 include/protozero/pbf_builder.hpp
+1 −1 include/protozero/pbf_message.hpp
+20 −15 include/protozero/pbf_reader.hpp
+65 −29 include/protozero/pbf_writer.hpp
+1 −1 include/protozero/types.hpp
+37 −20 include/protozero/varint.hpp
+2 −2 include/protozero/version.hpp
+7 −0 test/create_pbf_test_data.sh
+14 −6 test/include/packed_access.hpp
+1 −0 test/t/bool/bool_testcase.proto
+1 −1 test/t/bool/reader_test_cases.cpp
+2 −1 test/t/bool/testcase.cpp
+1 −0 test/t/bytes/bytes_testcase.proto
+2 −1 test/t/bytes/testcase.cpp
+4 −10 test/t/complex/reader_test_cases.cpp
+2 −1 test/t/complex/testcase.cpp
+1 −0 test/t/complex/testcase.proto
+1 −0 test/t/double/double_testcase.proto
+2 −1 test/t/double/testcase.cpp
+1 −0 test/t/enum/enum_testcase.proto
+2 −1 test/t/enum/testcase.cpp
+1 −0 test/t/fixed32/fixed32_testcase.proto
+2 −1 test/t/fixed32/testcase.cpp
+2 −1 test/t/fixed64/testcase.cpp
+1 −0 test/t/fixed64/testcase.proto
+3 −3 test/t/float/reader_test_cases.cpp
+2 −1 test/t/float/testcase.cpp
+1 −0 test/t/float/testcase.proto
+1 −0 test/t/int32/int32_testcase.proto
+2 −1 test/t/int32/testcase.cpp
+2 −1 test/t/int64/testcase.cpp
+1 −0 test/t/int64/testcase.proto
+1 −0 test/t/message/message_testcase.proto
+6 −0 test/t/message/reader_test_cases.cpp
+2 −1 test/t/message/testcase.cpp
+1 −0 test/t/nested/nested_testcase.proto
+2 −1 test/t/nested/testcase.cpp
+1 −0 test/t/repeated/repeated_testcase.proto
+2 −1 test/t/repeated/testcase.cpp
+5 −3 test/t/repeated_packed_bool/reader_test_cases.cpp
+2 −1 test/t/repeated_packed_bool/testcase.cpp
+7 −3 test/t/repeated_packed_double/reader_test_cases.cpp
+2 −1 test/t/repeated_packed_double/testcase.cpp
+5 −3 test/t/repeated_packed_enum/reader_test_cases.cpp
+2 −1 test/t/repeated_packed_enum/testcase.cpp
+1 −0 test/t/repeated_packed_fixed32/repeated_packed_fixed32_testcase.proto
+2 −1 test/t/repeated_packed_fixed32/testcase.cpp
+8 −6 test/t/repeated_packed_fixed32/writer_test_cases.cpp
+2 −1 test/t/repeated_packed_fixed64/testcase.cpp
+9 −7 test/t/repeated_packed_float/reader_test_cases.cpp
+2 −1 test/t/repeated_packed_float/testcase.cpp
+2 −1 test/t/repeated_packed_int32/testcase.cpp
+2 −1 test/t/repeated_packed_int64/testcase.cpp
+2 −1 test/t/repeated_packed_sfixed32/testcase.cpp
+2 −1 test/t/repeated_packed_sfixed64/testcase.cpp
+2 −1 test/t/repeated_packed_sint32/testcase.cpp
+2 −1 test/t/repeated_packed_sint64/testcase.cpp
+2 −1 test/t/repeated_packed_uint32/testcase.cpp
+2 −1 test/t/repeated_packed_uint64/testcase.cpp
+2 −1 test/t/sfixed32/testcase.cpp
+2 −1 test/t/sfixed64/testcase.cpp
+2 −1 test/t/sint32/testcase.cpp
+2 −1 test/t/sint64/testcase.cpp
+1 −0 test/t/string/string_testcase.proto
+2 −1 test/t/string/testcase.cpp
+1 −1 test/t/tag_and_type/reader_test_cases.cpp
+2 −1 test/t/tag_and_type/testcase.cpp
+5 −5 test/t/tags/reader_test_cases.cpp
+2 −1 test/t/tags/testcase.cpp
+2 −1 test/t/uint32/testcase.cpp
+2 −1 test/t/uint64/testcase.cpp
+2 −0 test/t/vector_tile/reader_test_cases.cpp
+45 −15 test/unit/test_basic.cpp
+18 −18 test/unit/test_endian.cpp
+41 −27 test/unit/test_varint.cpp
+9 −3 test/unit/test_zigzag.cpp
2 changes: 1 addition & 1 deletion deps/wagyu
Submodule wagyu updated 60 files
+1 −1 .clang-format
+28 −0 .clang-tidy
+4 −0 .gitignore
+49 −83 .travis.yml
+4 −0 CHANGELOG.md
+69 −0 CMakeLists.txt
+6 −4 LICENSE
+29 −82 Makefile
+1 −0 README.md
+5,975 −0 bench/angus.cpp
+473 −0 bench/angus.hpp
+245 −0 bench/fixtures.hpp
+10 −0 bench/run.cpp
+231 −0 cmake/mason.cmake
+4 −0 codecov.yml
+2 −6 docs/README.md
+7 −0 docs/building_and_testing.md
+1 −1 docs/getting_started.md
+2 −2 docs/local_min_and_max.md
+1 −1 docs/overview.md
+15 −12 fuzzer/main.cpp
+37 −47 include/mapbox/geometry/wagyu/active_bound_list.hpp
+277 −0 include/mapbox/geometry/wagyu/almost_equal.hpp
+5 −7 include/mapbox/geometry/wagyu/bound.hpp
+3 −3 include/mapbox/geometry/wagyu/bubble_sort.hpp
+6 −9 include/mapbox/geometry/wagyu/build_edges.hpp
+3 −3 include/mapbox/geometry/wagyu/build_local_minima_list.hpp
+6 −10 include/mapbox/geometry/wagyu/build_result.hpp
+12 −15 include/mapbox/geometry/wagyu/config.hpp
+8 −13 include/mapbox/geometry/wagyu/edge.hpp
+50 −0 include/mapbox/geometry/wagyu/interrupt.hpp
+6 −8 include/mapbox/geometry/wagyu/intersect.hpp
+12 −19 include/mapbox/geometry/wagyu/intersect_util.hpp
+4 −5 include/mapbox/geometry/wagyu/local_minimum.hpp
+15 −24 include/mapbox/geometry/wagyu/local_minimum_util.hpp
+4 −5 include/mapbox/geometry/wagyu/point.hpp
+29 −41 include/mapbox/geometry/wagyu/process_horizontal.hpp
+14 −18 include/mapbox/geometry/wagyu/process_maxima.hpp
+20 −14 include/mapbox/geometry/wagyu/quick_clip.hpp
+13 −25 include/mapbox/geometry/wagyu/ring.hpp
+34 −50 include/mapbox/geometry/wagyu/ring_util.hpp
+14 −5 include/mapbox/geometry/wagyu/scanbeam.hpp
+8 −12 include/mapbox/geometry/wagyu/snap_rounding.hpp
+51 −73 include/mapbox/geometry/wagyu/topology_correction.hpp
+24 −23 include/mapbox/geometry/wagyu/util.hpp
+8 −10 include/mapbox/geometry/wagyu/vatti.hpp
+15 −11 include/mapbox/geometry/wagyu/wagyu.hpp
+38 −0 scripts/clang-tidy.sh
+21 −33 scripts/coverage.sh
+36 −0 scripts/format.sh
+132 −0 scripts/setup.sh
+0 −387 tests/benchmark.cpp
+0 −9,460 tests/catch.hpp
+21 −22 tests/fixtures/fixture-tester.cpp
+0 −51 tests/quick_clip_profile.cpp
+0 −39 tests/run-benchmark-tests.sh
+2 −0 tests/unit/main.cpp
+18 −5 tests/unit/vatti.cpp
+10 −10 tests/util/boost_geometry_adapters.hpp
+38 −0 tests/util/fixture_utils.hpp
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"url": "http://github.com/mapnik/node-mapnik",
"homepage": "http://mapnik.org",
"author": "Dane Springmeyer <[email protected]> (mapnik.org)",
"version": "4.3.1",
"mapnik_version": "a0ea7db1a",
"version": "4.4.0",
"mapnik_version": "0636734f8",
"main": "./lib/mapnik.js",
"binary": {
"module_name": "mapnik",
Expand Down Expand Up @@ -53,11 +53,11 @@
"docs": "documentation build src/*.cpp src/mapnik_plugins.hpp --polyglot -o documentation -f html --github --name Mapnik"
},
"devDependencies": {
"@mapbox/sphericalmercator": "~1.0.2",
"aws-sdk": "2.0.12",
"bytes": "~2.1.0",
"jshint": "^2.5.10",
"mocha": "2.x",
"@mapbox/sphericalmercator": "~1.0.2",
"bytes": "~2.1.0"
"mocha": "^7.0.1"
},
"jshintConfig": {
"node": true,
Expand Down
Binary file modified test/data/images/10x10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/data/images/10x10.tiff
Binary file not shown.
Binary file modified test/data/vector_tile/nz-1b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/data/vector_tile/pasted/pasted4.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/pasted/pasted8.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-area_threshold.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-b.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/data/vector_tile/tile0-c.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/data/vector_tile/tile0-evenOdd.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-mpu-false.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-mpu-true.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-nonZero.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-process-all-mp-rings.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-simple_and_distance.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-simplify_distance.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-strictly_simple.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile0-strictly_simple_false.mvt
Binary file not shown.
144 changes: 69 additions & 75 deletions test/data/vector_tile/tile0.expected-cairo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 69 additions & 75 deletions test/data/vector_tile/tile0.expected-svg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/data/vector_tile/tile0.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/data/vector_tile/tile0.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile_threading_async.mvt
Binary file not shown.
Binary file modified test/data/vector_tile/tile_threading_auto.mvt
Binary file not shown.
6 changes: 3 additions & 3 deletions test/image.svg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ describe('mapnik.Image SVG', function() {
assert.ok(img instanceof mapnik.Image);
assert.equal(img.width(), 256);
assert.equal(img.height(), 256);
assert.equal(img.encodeSync('png32').length, 17571);
assert.equal(img.encodeSync('png32').length, 17546);
});

it('#fromSVGSync load from SVG file - 2', function() {
Expand All @@ -244,7 +244,7 @@ describe('mapnik.Image SVG', function() {
assert.ok(img instanceof mapnik.Image);
assert.equal(img.width(), 256);
assert.equal(img.height(), 256);
assert.equal(img.encodeSync('png32').length, 17571);
assert.equal(img.encodeSync('png32').length, 17546);
});


Expand All @@ -253,7 +253,7 @@ describe('mapnik.Image SVG', function() {
assert.ok(img); assert.ok(img instanceof mapnik.Image);
assert.equal(img.width(), 256);
assert.equal(img.height(), 256);
assert.equal(img.encodeSync('png32').length, 17571);
assert.equal(img.encodeSync('png32').length, 17546);
assert.equal(img.premultiplied(), false);
done();
});
Expand Down
28 changes: 14 additions & 14 deletions test/vector-tile.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2241,7 +2241,7 @@ describe('mapnik.VectorTile ', function() {
if (err) throw err;
if (hasBoostSimple) {
assert.equal(vtile.reportGeometrySimplicity().length, 0);
assert.equal(vtile.reportGeometryValidity().length, 25); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity().length, 23); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile0.mvt';
Expand Down Expand Up @@ -2279,7 +2279,7 @@ describe('mapnik.VectorTile ', function() {
if (hasBoostSimple) {
// commented since this is not stable across boost versions
//assert.equal(vtile.reportGeometrySimplicity().length, 1); // seems simple, boost bug?
assert.equal(vtile.reportGeometryValidity().length, 25); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity().length, 23); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile_threading_auto.mvt';
Expand Down Expand Up @@ -2318,7 +2318,7 @@ describe('mapnik.VectorTile ', function() {
if (hasBoostSimple) {
// commented since this is not stable across boost versions
//assert.equal(vtile.reportGeometrySimplicity().length, 1); // geometry is simple, boost bug?
assert.equal(vtile.reportGeometryValidity().length, 25); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity().length, 23); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile_threading_async.mvt';
Expand Down Expand Up @@ -2349,7 +2349,7 @@ describe('mapnik.VectorTile ', function() {
if (err) throw err;
if (hasBoostSimple) {
assert.equal(vtile.reportGeometrySimplicity().length, 0);
assert.equal(vtile.reportGeometryValidity().length, 24); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity().length, 23); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile0-area_threshold.mvt';
Expand Down Expand Up @@ -2381,7 +2381,7 @@ describe('mapnik.VectorTile ', function() {
var simplicityReport = vtile.reportGeometrySimplicity();
var validityReport = vtile.reportGeometryValidity();
assert.equal(simplicityReport.length, 0);
assert.equal(validityReport.length, 25); // Dataset not expected to be OGC valid
assert.equal(validityReport.length, 23); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile0-strictly_simple.mvt';
Expand Down Expand Up @@ -2416,10 +2416,10 @@ describe('mapnik.VectorTile ', function() {
var validityReport3 = vtile.reportGeometryValidity({lat_lon:true});
var validityReport4 = vtile.reportGeometryValidity({web_merc:true});
assert.equal(simplicityReport.length, 0);
assert.equal(validityReport.length, 25); // Dataset not expected to be OGC valid
assert.equal(validityReport.length, 23); // Dataset not expected to be OGC valid
assert.equal(validityReport2.length, 0); // Dataset not expected to be OGC valid
assert.equal(validityReport3.length, 26); // Dataset not expected to be OGC valid
assert.equal(validityReport4.length, 25); // Dataset not expected to be OGC valid
assert.equal(validityReport3.length, 24); // Dataset not expected to be OGC valid
assert.equal(validityReport4.length, 23); // Dataset not expected to be OGC valid
}
var expected = './test/data/vector_tile/tile0-strictly_simple_false.mvt';
var actual = './test/data/vector_tile/tile0-strictly_simple_false.actual.mvt';
Expand Down Expand Up @@ -2450,7 +2450,7 @@ describe('mapnik.VectorTile ', function() {
var simplicityReport = vtile.reportGeometrySimplicity();
var validityReport = vtile.reportGeometryValidity();
assert.equal(simplicityReport.length, 0);
assert.equal(validityReport.length, 33); // Dataset not expected to be OGC valid
assert.equal(validityReport.length, 30); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile0-simplify_distance.mvt';
Expand Down Expand Up @@ -2490,7 +2490,7 @@ describe('mapnik.VectorTile ', function() {
var simplicityReport = vtile.reportGeometrySimplicity();
var validityReport = vtile.reportGeometryValidity();
assert.equal(simplicityReport.length, 0);
assert.equal(validityReport.length, 33); // Dataset not expected to be OGC valid
assert.equal(validityReport.length, 30); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile0-simple_and_distance.mvt';
Expand Down Expand Up @@ -2531,7 +2531,7 @@ describe('mapnik.VectorTile ', function() {
var validityReport = vtile.reportGeometryValidity();
var validityReport2 = vtile.reportGeometryValidity({split_multi_features:true});
assert.equal(simplicityReport.length, 0);
assert.equal(validityReport.length, 25); // Dataset not expected to be OGC valid
assert.equal(validityReport.length, 23); // Dataset not expected to be OGC valid
assert.equal(validityReport2.length, 0);
}
var expected = './test/data/vector_tile/tile0-mpu-false.mvt';
Expand Down Expand Up @@ -2595,7 +2595,7 @@ describe('mapnik.VectorTile ', function() {
var simplicityReport = vtile.reportGeometrySimplicity();
var validityReport = vtile.reportGeometryValidity();
assert.equal(simplicityReport.length, 0);
assert.equal(validityReport.length, 25); // Dataset not expected to be OGC valid
assert.equal(validityReport.length, 23); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile0-evenOdd.mvt';
Expand Down Expand Up @@ -2627,7 +2627,7 @@ describe('mapnik.VectorTile ', function() {
var simplicityReport = vtile.reportGeometrySimplicity();
var validityReport = vtile.reportGeometryValidity();
assert.equal(simplicityReport.length, 0);
assert.equal(validityReport.length, 25); // Dataset not expected to be OGC valid
assert.equal(validityReport.length, 23); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile0-nonZero.mvt';
Expand Down Expand Up @@ -2659,7 +2659,7 @@ describe('mapnik.VectorTile ', function() {
var simplicityReport = vtile.reportGeometrySimplicity();
var validityReport = vtile.reportGeometryValidity();
assert.equal(simplicityReport.length, 0);
assert.equal(validityReport.length, 25); // Dataset not expected to be OGC valid
assert.equal(validityReport.length, 23); // Dataset not expected to be OGC valid
assert.equal(vtile.reportGeometryValidity({split_multi_features:true}).length, 0);
}
var expected = './test/data/vector_tile/tile0-process-all-mp-rings.mvt';
Expand Down

0 comments on commit 1f94ab6

Please sign in to comment.