Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

270 update dependencies #304

Merged
merged 7 commits into from
Sep 4, 2021
Merged

Conversation

chippieTV
Copy link
Contributor

@chippieTV chippieTV commented Sep 4, 2021

  • confirm your changes do not include backports from Mapbox projects (unless with compliant license) - if you are not sure about this, please ask!
  • briefly describe the changes in this PR
update testem to 3.5.0
update eslint
update selenium (from beta.4 to rc-1)
update rollup, plugin-strip and remove deprecated rolllup @types
update react, react-dom and types
update @babel/core to 7.15.0
update stylelint 9.10.1 -> 13.13.1, types and config
patch update to @types/jsonwebtoken
patch update to @types/request
update tape to 5.3.1
update sinon to 11.1.2 and types
update semver to 7.3.5
update chalk to 4.1.2
update browserify to 17.0.0
update cssnano to 5.0.8
update pngjs to 6.0.0 and types
update patch @babel/core 7.15.4
update puppeteer to 10.2.0
update json-stringify-pretty-compact to 3.0.0
update ejs to 3.1.6 and types
update st to 3.0.0

These were separate commits however rebasing ontop of main from typescript causes too many conflicts, so I squashed before cherry-picking to get this branch updated.

Original PR #295

before

Package                                Current      Wanted      Latest  Location
@babel/core                             7.14.6      7.15.4      7.15.4  maplibre-gl
@mapbox/gazetteer                        4.0.4       4.0.4       5.1.0  maplibre-gl
@mapbox/mapbox-gl-supported              1.5.0       1.5.0       2.0.0  maplibre-gl
@octokit/rest                          16.43.2     16.43.2     18.10.0  maplibre-gl
@rollup/plugin-strip                     1.3.3       1.3.3       2.1.0  maplibre-gl
@types/d3                              4.13.12     4.13.12       7.0.0  maplibre-gl
@types/diff                              4.0.2       4.0.2       5.0.1  maplibre-gl
@types/ejs                               2.7.0       2.7.0       3.1.0  maplibre-gl
@types/jsonwebtoken                      8.5.4       8.5.5       8.5.5  maplibre-gl
@types/pngjs                             3.4.2       3.4.2       6.0.1  maplibre-gl
@types/puppeteer                        1.20.8      1.20.8       5.4.4  maplibre-gl
@types/react                          16.14.11    16.14.14     17.0.19  maplibre-gl
@types/react-dom                       16.9.14     16.9.14      17.0.9  maplibre-gl
@types/request                          2.48.6      2.48.7      2.48.7  maplibre-gl
@types/rollup-plugin-sourcemaps          0.4.2       0.4.2       0.5.0  maplibre-gl
@types/sinon                             7.5.2       7.5.2      10.0.2  maplibre-gl
@types/stylelint                        9.10.1      9.10.1     13.13.2  maplibre-gl
@types/tape                             4.13.1      4.13.2      4.13.2  maplibre-gl
@typescript-eslint/eslint-plugin        4.29.1      4.30.0      4.30.0  maplibre-gl
@typescript-eslint/parser               4.29.1      4.30.0      4.30.0  maplibre-gl
browserify                              16.5.2      16.5.2      17.0.0  maplibre-gl
chalk                                    3.0.0       3.0.0       4.1.2  maplibre-gl
cssnano                                 4.1.11      4.1.11       5.0.8  maplibre-gl
d3                                      4.13.0      4.13.0       7.0.1  maplibre-gl
diff                                     4.0.2       4.0.2       5.0.0  maplibre-gl
documentation                           12.1.4      12.1.4      13.2.5  maplibre-gl
ejs                                      2.7.4       2.7.4       3.1.6  maplibre-gl
eslint-plugin-import                    2.24.0      2.24.2      2.24.2  maplibre-gl
eslint-plugin-jsdoc                     36.0.6      36.0.8      36.0.8  maplibre-gl
eslint-plugin-react                     7.24.0      7.25.1      7.25.1  maplibre-gl
jsdom                                   13.2.0      13.2.0      17.0.0  maplibre-gl
json-stringify-pretty-compact            2.0.0       2.0.0       3.0.0  maplibre-gl
node-notifier                            5.4.5       5.4.5      10.0.0  maplibre-gl
npm-packlist                             2.2.2       2.2.2       3.0.0  maplibre-gl
nyc                                     13.3.0      13.3.0      15.1.0  maplibre-gl
pngjs                                    3.4.0       3.4.0       6.0.0  maplibre-gl
puppeteer                               1.20.0      1.20.0      10.2.0  maplibre-gl
react                                  16.14.0     16.14.0      17.0.2  maplibre-gl
react-dom                              16.14.0     16.14.0      17.0.2  maplibre-gl
rollup                                  2.56.1      2.56.3      2.56.3  maplibre-gl
selenium-webdriver                4.0.0-beta.4  4.0.0-rc-1  4.0.0-rc-1  maplibre-gl
semver                                   5.7.1       5.7.1       7.3.5  maplibre-gl
sinon                                    7.5.0       7.5.0      11.1.2  maplibre-gl
st                                       1.2.2       1.2.2       3.0.0  maplibre-gl
stylelint                               9.10.1      9.10.1     13.13.1  maplibre-gl
stylelint-config-standard               18.3.0      18.3.0      22.0.0  maplibre-gl
tap                                     12.4.1      12.4.1      15.0.9  maplibre-gl
tape                                    4.14.0      4.14.0       5.3.1  maplibre-gl
testem                                   3.4.2       3.5.0       3.5.0  maplibre-gl
typescript                               4.3.5       4.4.2       4.4.2  maplibre-gl

after (below not updated yet)

Package        Current   Wanted  Latest  Location
@types/d3      4.13.12  4.13.12   7.0.0  maplibre-gl
@types/diff      4.0.2    4.0.2   5.0.1  maplibre-gl
d3              4.13.0   4.13.0   7.0.1  maplibre-gl
diff             4.0.2    4.0.2   5.0.0  maplibre-gl
documentation   12.1.4   12.1.4  13.2.5  maplibre-gl
jsdom           13.2.0   13.2.0  17.0.0  maplibre-gl
tap             12.4.1   12.4.1  15.0.9  maplibre-gl

update testem to 3.5.0
update eslint
update selenium (from beta.4 to rc-1)
update rollup, plugin-strip and remove deprecated rolllup @types
update react, react-dom and types
update @babel/core to 7.15.0
update stylelint 9.10.1 -> 13.13.1, types and config
patch update to @types/jsonwebtoken
patch update to @types/request
update tape to 5.3.1
update sinon to 11.1.2 and types
update semver to 7.3.5
update chalk to 4.1.2
update browserify to 17.0.0
update cssnano to 5.0.8
update pngjs to 6.0.0 and types
update patch @babel/core 7.15.4
update puppeteer to 10.2.0
update json-stringify-pretty-compact to 3.0.0
update ejs to 3.1.6 and types
update st to 3.0.0
@chippieTV chippieTV force-pushed the main-270-update-deps branch from f526a28 to 2cb1af7 Compare September 4, 2021 04:19
@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2021

Bundle size report:

Size Change: -3.33 kB
Total Size Before: 197 kB
Total Size After: 194 kB

Output file Before After Change
maplibre-gl.js 188 kB 185 kB -3.27 kB
maplibre-gl.css 9.55 kB 9.49 kB -60 B
ℹ️ View Details
Source file Before After Change
rollup/build/tsc/util/request_manager.js 0 B 357 B +357 B
rollup/build/tsc/util/webp_supported.js 380 B 492 B +112 B
rollup/build/tsc/source/rtl_text_plugin.js 904 B 924 B +20 B
rollup/build/tsc/util/actor.js 1.09 kB 1.11 kB +12 B
rollup/build/tsc/util/intersection_tests.js 933 B 944 B +11 B
rollup/build/tsc/symbol/get_anchors.js 572 B 581 B +9 B
rollup/build/tsc/style-spec/validate/validate_filter.js 619 B 627 B +8 B
rollup/build/tsc/source/tile_id.js 1.09 kB 1.09 kB +8 B
rollup/build/tsc/symbol/shaping.js 3.62 kB 3.63 kB +7 B
rollup/build/tsc/symbol/symbol_size.js 534 B 540 B +6 B
rollup/build/tsc/style-spec/expression/index.js 1.59 kB 1.6 kB +5 B
rollup/build/tsc/util/evented.js 3.84 kB 3.85 kB +5 B
node_modules/quickselect/index.js 349 B 354 B +5 B
rollup/build/tsc/style/style_layer/line_style_layer.js 1.01 kB 1.02 kB +5 B
rollup/build/tsc/geo/lng_lat_bounds.js 608 B 613 B +5 B
rollup/build/tsc/geo/mercator_coordinate.js 342 B 347 B +5 B
rollup/build/tsc/util/global_worker_pool.js 337 B 342 B +5 B
rollup/build/tsc/style-spec/validate/validate_function.js 1.14 kB 1.15 kB +4 B
rollup/build/tsc/style-spec/validate/validate_source.js 617 B 621 B +4 B
rollup/build/tsc/data/bucket/circle_bucket.js 970 B 974 B +4 B
rollup/build/tsc/style-spec/validate/validate_object.js 390 B 393 B +3 B
rollup/build/tsc/style-spec/validate/validate.js 384 B 387 B +3 B
rollup/build/tsc/data/load_geometry.js 253 B 256 B +3 B
rollup/build/tsc/data/bucket/fill_bucket.js 1.09 kB 1.09 kB +3 B
rollup/build/tsc/symbol/transform_text.js 201 B 204 B +3 B
rollup/build/tsc/style-spec/deref.js 208 B 211 B +3 B
rollup/build/tsc/ui/popup.js 1.9 kB 1.9 kB +3 B
rollup/build/tsc/style-spec/expression/scope.js 194 B 196 B +2 B
rollup/build/tsc/style-spec/validate/validate_constants.js 112 B 114 B +2 B
rollup/build/tsc/style-spec/util/unbundle_jsonlint.js 179 B 181 B +2 B
rollup/build/tsc/style-spec/validate/validate_array.js 355 B 357 B +2 B
rollup/build/tsc/style-spec/validate/validate_number.js 221 B 223 B +2 B
rollup/build/tsc/style-spec/validate/validate_expression.js 452 B 454 B +2 B
node_modules/earcut/src/earcut.js 2.62 kB 2.62 kB +2 B
rollup/build/tsc/util/verticalize_punctuation.js 587 B 589 B +2 B
rollup/build/tsc/symbol/anchor.js 168 B 170 B +2 B
rollup/build/tsc/style/style_layer/fill_style_layer.js 283 B 285 B +2 B
rollup/build/tsc/style/light.js 560 B 562 B +2 B
rollup/build/tsc/source/source_state.js 602 B 604 B +2 B
rollup/build/tsc/symbol/grid_index.js 1.28 kB 1.28 kB +2 B
rollup/build/tsc/symbol/placement.js 4.65 kB 4.66 kB +2 B
rollup/build/tsc/gl/vertex_buffer.js 537 B 539 B +2 B
rollup/build/tsc/gl/framebuffer.js 220 B 222 B +2 B
rollup/build/tsc/render/draw_collision_debug.js 1.07 kB 1.08 kB +2 B
rollup/build/tsc/render/draw_hillshade.js 1.09 kB 1.09 kB +2 B
rollup/build/tsc/render/draw_debug.js 1.11 kB 1.12 kB +2 B
rollup/build/tsc/geo/edge_insets.js 422 B 424 B +2 B
node_modules/grid-index/grid-index.js 991 B 992 B +1 B
rollup/build/tsc/style-spec/util/color.js 353 B 354 B +1 B
rollup/build/tsc/style-spec/expression/types/collator.js 202 B 203 B +1 B
rollup/build/tsc/style-spec/expression/types/formatted.js 414 B 415 B +1 B
rollup/build/tsc/style-spec/expression/definitions/collator.js 437 B 438 B +1 B
rollup/build/tsc/style-spec/expression/is_constant.js 258 B 259 B +1 B
rollup/build/tsc/style-spec/expression/parsing_context.js 1.01 kB 1.02 kB +1 B
rollup/build/tsc/style-spec/expression/definitions/case.js 469 B 470 B +1 B
rollup/build/tsc/style-spec/util/properties.js 156 B 157 B +1 B
rollup/build/tsc/style-spec/error/validation_error.js 124 B 125 B +1 B
rollup/build/tsc/style-spec/validate/validate_enum.js 210 B 211 B +1 B
rollup/build/tsc/style-spec/validate/validate_property.js 550 B 551 B +1 B
rollup/build/tsc/style-spec/validate/validate_string.js 123 B 124 B +1 B
rollup/build/tsc/style-spec/validate/validate_boolean.js 123 B 124 B +1 B
rollup/build/tsc/style-spec/validate/validate_color.js 141 B 142 B +1 B
rollup/build/tsc/style-spec/validate/validate_formatted.js 61 B 62 B +1 B
rollup/build/tsc/style-spec/validate/validate_image.js 62 B 63 B +1 B
rollup/build/tsc/style/validate_style.js 154 B 155 B +1 B
rollup/build/tsc/style/evaluation_parameters.js 386 B 387 B +1 B
rollup/build/tsc/data/array_types.js 2.35 kB 2.35 kB +1 B
rollup/build/tsc/style/query_utils.js 264 B 265 B +1 B
rollup/build/tsc/util/classify_rings.js 246 B 247 B +1 B
rollup/build/tsc/data/bucket/pattern_bucket_features.js 326 B 327 B +1 B
rollup/build/tsc/data/bucket/fill_extrusion_bucket.js 1.3 kB 1.3 kB +1 B
rollup/build/tsc/data/bucket/symbol_attributes.js 766 B 767 B +1 B
rollup/build/tsc/symbol/check_max_angle.js 292 B 293 B +1 B
rollup/build/tsc/symbol/clip_line.js 303 B 304 B +1 B
rollup/build/tsc/data/bucket/symbol_bucket.js 4.23 kB 4.23 kB +1 B
rollup/build/tsc/style/format_section_override.js 307 B 308 B +1 B
rollup/build/tsc/geo/lng_lat.js 582 B 583 B +1 B
rollup/build/tsc/data/dem_data.js 760 B 761 B +1 B
rollup/build/tsc/render/texture.js 677 B 678 B +1 B
rollup/build/tsc/render/image_manager.js 1.41 kB 1.42 kB +1 B
node_modules/@mapbox/tiny-sdf/index.js 1.2 kB 1.2 kB +1 B
rollup/build/tsc/util/dispatcher.js 331 B 332 B +1 B
rollup/build/tsc/source/tile_bounds.js 315 B 316 B +1 B
rollup/build/tsc/source/image_source.js 1.11 kB 1.11 kB +1 B
rollup/build/tsc/source/source.js 360 B 361 B +1 B
rollup/build/tsc/source/query_features.js 1.21 kB 1.21 kB +1 B
rollup/build/tsc/style-spec/diff.js 1.53 kB 1.53 kB +1 B
rollup/build/tsc/symbol/projection.js 1.78 kB 1.78 kB +1 B
rollup/build/tsc/data/pos_attributes.js 7.06 kB 7.06 kB +1 B
rollup/build/tsc/render/vertex_array_object.js 553 B 554 B +1 B
rollup/build/tsc/gl/index_buffer.js 297 B 298 B +1 B
rollup/build/tsc/gl/color_mode.js 172 B 173 B +1 B
rollup/build/tsc/render/draw_symbol.js 2.47 kB 2.47 kB +1 B
rollup/build/tsc/render/draw_fill_extrusion.js 807 B 808 B +1 B
rollup/build/tsc/render/draw_line.js 1.01 kB 1.01 kB +1 B
rollup/build/tsc/render/draw_background.js 528 B 529 B +1 B
rollup/build/tsc/ui/handler_inertia.js 815 B 816 B +1 B
rollup/build/tsc/ui/handler/keyboard.js 571 B 572 B +1 B
rollup/build/tsc/ui/handler/shim/dblclick_zoom.js 149 B 150 B +1 B
rollup/build/tsc/ui/handler/tap_drag_zoom.js 482 B 483 B +1 B
rollup/build/tsc/ui/handler/shim/drag_rotate.js 178 B 179 B +1 B
rollup/build/tsc/ui/handler/shim/touch_zoom_rotate.js 289 B 290 B +1 B
rollup/build/tsc/ui/control/navigation_control.js 1.62 kB 1.62 kB +1 B
rollup/build/tsc/ui/anchor.js 217 B 218 B +1 B
rollup/build/tsc/ui/marker.js 2.72 kB 2.72 kB +1 B
rollup/build/tsc/ui/control/scale_control.js 742 B 743 B +1 B
rollup/build/tsc/style-spec/expression/values.js 491 B 490 B -1 B
rollup/build/tsc/style-spec/expression/definitions/literal.js 390 B 389 B -1 B
rollup/build/tsc/style-spec/expression/definitions/assertion.js 678 B 677 B -1 B
rollup/build/tsc/style-spec/expression/definitions/format.js 722 B 721 B -1 B
rollup/build/tsc/style-spec/expression/definitions/var.js 338 B 337 B -1 B
rollup/build/tsc/style-spec/expression/definitions/coalesce.js 457 B 456 B -1 B
rollup/build/tsc/style-spec/expression/definitions/length.js 370 B 369 B -1 B
rollup/build/tsc/style-spec/validate/validate_glyphs_url.js 171 B 170 B -1 B
rollup/build/tsc/util/is_char_in_unicode_block.js 876 B 875 B -1 B
node_modules/gl-matrix/esm/vec4.js 428 B 427 B -1 B
rollup/build/tsc/style/style_layer/circle_style_layer.js 552 B 551 B -1 B
rollup/build/tsc/util/color_ramp.js 319 B 318 B -1 B
node_modules/@mapbox/point-geometry/index.js 633 B 632 B -1 B
node_modules/@mapbox/vector-tile/lib/vectortile.js 164 B 163 B -1 B
node_modules/potpack/index.mjs 353 B 352 B -1 B
rollup/build/tsc/symbol/quads.js 1.89 kB 1.89 kB -1 B
rollup/build/tsc/symbol/collision_feature.js 379 B 378 B -1 B
rollup/build/tsc/symbol/symbol_layout.js 3.61 kB 3.61 kB -1 B
rollup/build/tsc/style/style_layer/hillshade_style_layer.js 143 B 142 B -1 B
rollup/build/tsc/data/feature_index.js 1.7 kB 1.7 kB -1 B
rollup/build/tsc/render/glyph_manager.js 874 B 873 B -1 B
rollup/build/tsc/source/tile_cache.js 557 B 556 B -1 B
rollup/build/tsc/util/worker_pool.js 420 B 419 B -1 B
rollup/build/tsc/render/program.js 912 B 911 B -1 B
rollup/build/tsc/render/program/pattern.js 615 B 614 B -1 B
rollup/build/tsc/render/program/fill_extrusion_program.js 800 B 799 B -1 B
rollup/build/tsc/render/program/collision_program.js 726 B 725 B -1 B
rollup/build/tsc/render/program/line_program.js 1.15 kB 1.15 kB -1 B
rollup/build/tsc/gl/value.js 1.09 kB 1.09 kB -1 B
rollup/build/tsc/gl/stencil_mode.js 152 B 151 B -1 B
rollup/build/tsc/ui/handler/touch_pan.js 431 B 430 B -1 B
rollup/build/tsc/ui/control/logo_control.js 597 B 596 B -1 B
rollup/build/tsc/ui/control/fullscreen_control.js 857 B 856 B -1 B
rollup/build/tsc/style-spec/expression/definitions/step.js 696 B 694 B -2 B
rollup/build/tsc/style-spec/expression/definitions/interpolate.js 1.31 kB 1.31 kB -2 B
rollup/build/tsc/style-spec/expression/definitions/at.js 402 B 400 B -2 B
rollup/build/tsc/style-spec/expression/definitions/in.js 446 B 444 B -2 B
rollup/build/tsc/style-spec/expression/definitions/number_format.js 605 B 603 B -2 B
rollup/build/tsc/style-spec/expression/definitions/index.js 1.63 kB 1.62 kB -2 B
rollup/build/tsc/style-spec/function/index.js 1.18 kB 1.18 kB -2 B
rollup/build/tsc/util/web_worker_transfer.js 979 B 977 B -2 B
rollup/build/tsc/util/script_detection.js 1.65 kB 1.65 kB -2 B
rollup/build/tsc/util/struct_array.js 699 B 697 B -2 B
rollup/build/tsc/data/segment.js 451 B 449 B -2 B
rollup/build/tsc/data/bucket/pattern_attributes.js 141 B 139 B -2 B
rollup/build/tsc/data/feature_position_map.js 559 B 557 B -2 B
rollup/build/tsc/render/uniform_binding.js 628 B 626 B -2 B
rollup/build/tsc/style/style_layer/circle_style_layer_properties.js 231 B 229 B -2 B
rollup/build/tsc/style/style_layer/hillshade_style_layer_properties.js 165 B 163 B -2 B
rollup/build/tsc/data/bucket/fill_attributes.js 112 B 110 B -2 B
rollup/build/tsc/style/style_layer/fill_style_layer_properties.js 198 B 196 B -2 B
rollup/build/tsc/style/style_layer/fill_extrusion_style_layer.js 936 B 934 B -2 B
node_modules/tinyqueue/index.js 361 B 359 B -2 B
rollup/build/tsc/style/style_layer/symbol_style_layer_properties.js 648 B 646 B -2 B
rollup/build/tsc/style/style_layer/raster_style_layer_properties.js 169 B 167 B -2 B
node_modules/@mapbox/mapbox-gl-supported/index.js 994 B 992 B -2 B
rollup/build/tsc/render/draw_heatmap.js 1.04 kB 1.04 kB -2 B
rollup/build/tsc/ui/camera.js 2.96 kB 2.96 kB -2 B
rollup/build/tsc/ui/control/geolocate_control.js 2.26 kB 2.26 kB -2 B
node_modules/csscolorparser/csscolorparser.js 2.05 kB 2.05 kB -3 B
rollup/build/tsc/style-spec/expression/definitions/coercion.js 800 B 797 B -3 B
rollup/build/tsc/style-spec/expression/definitions/index_of.js 544 B 541 B -3 B
rollup/build/tsc/style-spec/expression/definitions/comparison.js 879 B 876 B -3 B
rollup/build/tsc/style-spec/feature_filter/index.js 887 B 884 B -3 B
rollup/build/tsc/style-spec/validate_style.min.js 296 B 293 B -3 B
rollup/build/tsc/style/style_layer.js 1.22 kB 1.21 kB -3 B
rollup/build/tsc/style/style_layer/fill_extrusion_style_layer_properties.js 192 B 189 B -3 B
rollup/build/tsc/style/parse_glyph_pbf.js 368 B 365 B -3 B
rollup/build/tsc/util/find_pole_of_inaccessibility.js 690 B 687 B -3 B
rollup/build/tsc/style/style_layer/custom_style_layer.js 488 B 485 B -3 B
rollup/build/tsc/style/style_layer/heatmap_style_layer.js 365 B 362 B -3 B
rollup/build/tsc/util/performance.js 470 B 467 B -3 B
rollup/build/tsc/render/painter.js 3.3 kB 3.29 kB -3 B
rollup/build/tsc/util/primitives.js 1.08 kB 1.08 kB -3 B
rollup/build/tsc/style-spec/expression/definitions/slice.js 491 B 487 B -4 B
rollup/build/tsc/util/offscreen_canvas_supported.js 160 B 156 B -4 B
rollup/build/tsc/render/image_atlas.js 833 B 829 B -4 B
rollup/build/tsc/symbol/cross_tile_symbol_index.js 1.13 kB 1.13 kB -4 B
rollup/build/tsc/geo/transform.js 3.79 kB 3.79 kB -4 B
rollup/build/tsc/data/program_configuration.js 2.62 kB 2.61 kB -5 B
rollup/build/tsc/util/image.js 653 B 648 B -5 B
node_modules/@mapbox/vector-tile/lib/vectortilefeature.js 1.01 kB 1.01 kB -5 B
rollup/build/tsc/style/style_layer/line_style_layer_properties.js 281 B 276 B -5 B
rollup/build/tsc/ui/handler/touch_zoom_rotate.js 970 B 964 B -6 B
node_modules/@mapbox/vector-tile/lib/vectortilelayer.js 432 B 425 B -7 B
rollup/build/tsc/style/properties.js 1.88 kB 1.87 kB -8 B
node_modules/pbf/index.js 2.82 kB 2.81 kB -8 B
rollup/build/tsc/style/load_glyph_range.js 235 B 223 B -12 B
rollup/build/tsc/source/raster_dem_tile_source.js 900 B 882 B -18 B
node_modules/gl-matrix/esm/mat4.js 2.09 kB 2.07 kB -20 B
rollup/build/tsc/source/load_tilejson.js 310 B 281 B -29 B
rollup/build/tsc/style/style.js 6.55 kB 6.51 kB -39 B
rollup/build/tsc/ui/map.js 6.14 kB 6.1 kB -45 B
node_modules/gl-matrix/esm/vec3.js 930 B 882 B -48 B
rollup/build/tsc/index.js 717 B 666 B -51 B
rollup/build/tsc/source/raster_tile_source.js 973 B 914 B -59 B
rollup/build/tsc/source/vector_tile_source.js 1.17 kB 1.11 kB -67 B
rollup/build/tsc/util/dom.js 732 B 621 B -111 B
rollup/build/tsc/util/config.js 245 B 80 B -165 B
rollup/build/tsc/util/sku_token.js 238 B 0 B -238 B
rollup/build/tsc/util/tile_request_cache.js 1.29 kB 1.02 kB -272 B
rollup/build/tsc/ui/control/attribution_control.js 1.31 kB 1.03 kB -280 B
rollup/build/tsc/util/ajax.js 2.7 kB 2.3 kB -398 B
rollup/build/tsc/util/util.js 2.46 kB 1.97 kB -491 B
rollup/build/tsc/util/mapbox.js 2.88 kB 0 B -2.88 kB

@HarelM
Copy link
Collaborator

HarelM commented Sep 4, 2021

Cool.
Can I merge this or is this still in progress?

@maplibre maplibre deleted a comment from nyurik Sep 4, 2021
@maplibre maplibre deleted a comment from nyurik Sep 4, 2021
@chippieTV
Copy link
Contributor Author

It's working but as you can see.. not 100% complete. The remaining libraries require more effort to fix. I think it's good for now and we can open issues for these others later depending if other changes leave some of these packages no longer necessary

summary of issues (for other PRs)

Package        Current   Wanted  Latest  Location
@types/d3      4.13.12  4.13.12   7.0.0  maplibre-gl
@types/diff      4.0.2    4.0.2   5.0.1  maplibre-gl
d3              4.13.0   4.13.0   7.0.1  maplibre-gl
diff             4.0.2    4.0.2   5.0.0  maplibre-gl
documentation   12.1.4   12.1.4  13.2.5  maplibre-gl
jsdom           13.2.0   13.2.0  17.0.0  maplibre-gl
tap             12.4.1   12.4.1  15.0.9  maplibre-gl

d3 5.0+ causes issues - deprecates queue used in test harness. It is possible to replace with regular promises and no library, or possibly p-queue may be an option: to investigate (for now will not update)

jsdom 17.0.0 causes issues so I rolled back until I have time to investigate and/or step through releases

tap 15 deprecates callbacks in beforeEach and afterEach, remove callbacks (affected tests passing again in other PR, will transfer the changes and update soon)

documentation 13+ breaks testem (npm run start-tests), not sure exactly which version or why yet

diff 5.0.0 breaks test-query

@HarelM
Copy link
Collaborator

HarelM commented Sep 4, 2021

Nice work! I agree the rest can be done separately.
I'm not sure it's worth investing in tap as I would like to replace it with jest.

@chippieTV
Copy link
Contributor Author

when I tried updating Tap to 15, even after fixing the main issue of the deprecated before/after, there are only a couple of errors, 9 of the unit tests fail, so nothing significant.

If we are switching to something else (or investigating how much effort that is) I agree it's not really worth to spend too much time on these, but if there's a quick win it might ease the transition.

The later versions of Tap do support Typescript, so it might be worth looking into pros/cons of the options before committing to anything major. I'm also curious about using AVA, but I think any of these might require significant rewrites of the tests themselves, which would be quite a rabbit hole.

Running against the .ts files should mean for Tap at least we don't need to run the build first. It's not very heavy to build so not a huge time saver, but probably a little cleaner to work with..

@HarelM
Copy link
Collaborator

HarelM commented Sep 4, 2021

I agree. You see it the way I do. Converting the tests to typescript and referencing the ts files would be ideal, but not super urgent.
Regardless, Can I merge this PR?

@chippieTV
Copy link
Contributor Author

yes please!

@HarelM HarelM merged commit 8216085 into maplibre:main Sep 4, 2021
@wipfli
Copy link
Contributor

wipfli commented Sep 4, 2021

I propose we enable dependabot with the following .github/dependabot.yml config file:

# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
  - package-ecosystem: "npm" # See documentation for possible values
    directory: "/" # Location of package manifests
    schedule:
      interval: "daily"
    ignore:
      - dependency-name: "@types/d3"
      - dependency-name: "@types/diff"
      - dependency-name: "d3"
      - dependency-name: "diff"
      - dependency-name: "documentation"
      - dependency-name: "jsdom"
      - dependency-name: "tap"

Any objections or other input?

@HarelM
Copy link
Collaborator

HarelM commented Sep 4, 2021

Go ahead.

@wipfli
Copy link
Contributor

wipfli commented Sep 4, 2021

4201c0e

wipfli referenced this pull request in wipfli/maplibre-gl-js Sep 9, 2021
Resolves #270
* update typescript to 4.4.2
update testem to 3.5.0
update eslint
update selenium (from beta.4 to rc-1)
update rollup, plugin-strip and remove deprecated rolllup @types
update react, react-dom and types
update @babel/core to 7.15.0
update stylelint 9.10.1 -> 13.13.1, types and config
patch update to @types/jsonwebtoken
patch update to @types/request
update tape to 5.3.1
update sinon to 11.1.2 and types
update semver to 7.3.5
update chalk to 4.1.2
update browserify to 17.0.0
update cssnano to 5.0.8
update pngjs to 6.0.0 and types
update patch @babel/core 7.15.4
update puppeteer to 10.2.0
update json-stringify-pretty-compact to 3.0.0
update ejs to 3.1.6 and types
update st to 3.0.0

* update nyc to 15.1.0

* update @octokit/rest to 18.10.0

* update node-notifier to 10.0.0

* update npm-packlist to 3.0.0

* update @mapbox/mapbox-gl-supported to 2.0.0

* update @mapbox/gazetteer to 5.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants