Skip to content

Commit bc9dd98

Browse files
committed
Upgrade @mapbox/gazetteer to v4.0.4
1 parent cbbbbfc commit bc9dd98

File tree

4 files changed

+87
-12
lines changed

4 files changed

+87
-12
lines changed

bench/styles/benchmarks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import mapboxgl from '../../src';
22
import accessToken from '../lib/access_token';
33
import locationsWithTileID from '../lib/locations_with_tile_id';
4-
import styleBenchmarkLocations from '@mapbox/gazetteer/mapbox-streets/style-benchmark-locations.json';
4+
import {benchmark} from '@mapbox/gazetteer';
55
import StyleLayerCreate from '../benchmarks/style_layer_create';
66
import Validate from '../benchmarks/style_validate';
77
import Layout from '../benchmarks/layout';
@@ -11,7 +11,7 @@ import QueryBox from '../benchmarks/query_box';
1111

1212
import getWorkerPool from '../../src/util/global_worker_pool';
1313

14-
const locations = locationsWithTileID(styleBenchmarkLocations.features);
14+
const locations = locationsWithTileID(benchmark.features);
1515

1616
mapboxgl.accessToken = accessToken;
1717

bench/versions/benchmarks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import mapboxgl from '../../src';
22
import accessToken from '../lib/access_token';
33
import locationsWithTileID from '../lib/locations_with_tile_id';
4-
import styleBenchmarkLocations from '@mapbox/gazetteer/mapbox-streets/style-benchmark-locations.json';
4+
import {benchmark} from '@mapbox/gazetteer';
55
import Layout from '../benchmarks/layout';
66
import LayoutDDS from '../benchmarks/layout_dds';
77
import SymbolLayout from '../benchmarks/symbol_layout';
@@ -21,17 +21,17 @@ import FilterEvaluate from '../benchmarks/filter_evaluate';
2121

2222
import getWorkerPool from '../../src/util/global_worker_pool';
2323

24-
const styleLocations = locationsWithTileID(styleBenchmarkLocations.features);
24+
const styleLocations = locationsWithTileID(benchmark.features);
2525

2626
mapboxgl.accessToken = accessToken;
2727

2828
window.mapboxglBenchmarks = window.mapboxglBenchmarks || {};
2929

3030
const version = process.env.BENCHMARK_VERSION;
3131

32-
function register(name, benchmark) {
32+
function register(name, bench) {
3333
window.mapboxglBenchmarks[name] = window.mapboxglBenchmarks[name] || {};
34-
window.mapboxglBenchmarks[name][version] = benchmark;
34+
window.mapboxglBenchmarks[name][version] = bench;
3535
}
3636

3737
const style = 'mapbox://styles/mapbox/streets-v10';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"devDependencies": {
4141
"@mapbox/flow-remove-types": "^1.3.0-await.upstream.2",
42-
"@mapbox/gazetteer": "^3.1.2",
42+
"@mapbox/gazetteer": "^4.0.4",
4343
"@mapbox/mapbox-gl-rtl-text": "^0.2.1",
4444
"@mapbox/mapbox-gl-test-suite": "file:test/integration",
4545
"@octokit/rest": "^16.30.1",

yarn.lock

Lines changed: 80 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,10 +954,12 @@
954954
pirates "^3.0.2"
955955
vlq "^0.2.1"
956956

957-
"@mapbox/gazetteer@^3.1.2":
958-
version "3.2.0"
959-
resolved "https://registry.yarnpkg.com/@mapbox/gazetteer/-/gazetteer-3.2.0.tgz#2675cc56853e262ac55384572dacfec13d068c77"
960-
integrity sha512-iXstzYyHQCHcdgN0ovVJ6uI0oj0+et/l4b361xSNeJuP9tUgfl61hB5wi+ps94DlpBaTt3SFDx9MKj5lOeBgeA==
957+
"@mapbox/gazetteer@^4.0.4":
958+
version "4.0.4"
959+
resolved "https://registry.yarnpkg.com/@mapbox/gazetteer/-/gazetteer-4.0.4.tgz#511b059d5f2a58e0b4d7ec6c1562c846a888fb82"
960+
integrity sha512-XzOaDedR2EAfjlVApDn+cV6Upi8tsa8J6fBRWHxzmG0ekdC03jvqXkOKPS/P4BkUDyBD6bMLMJ8WH5A0iZNmwQ==
961+
dependencies:
962+
"@mapbox/geojsonhint" "^2.2.0"
961963

962964
"@mapbox/geojson-area@0.2.2":
963965
version "0.2.2"
@@ -981,6 +983,17 @@
981983
resolved "https://registry.yarnpkg.com/@mapbox/geojson-types/-/geojson-types-1.0.2.tgz#9aecf642cb00eab1080a57c4f949a65b4a5846d6"
982984
integrity sha512-e9EBqHHv3EORHrSfbR9DqecPNn+AmuAoQxV6aL8Xu30bJMJR1o8PZLZzpk1Wq7/NfCbuhmakHTPYRhoqLsXRnw==
983985

986+
"@mapbox/geojsonhint@^2.2.0":
987+
version "2.2.0"
988+
resolved "https://registry.yarnpkg.com/@mapbox/geojsonhint/-/geojsonhint-2.2.0.tgz#75ca94706e9a56e6debf4e1c78fabdc67978b883"
989+
integrity sha512-8qQYRB+/2z2JsN5s6D0WAnpo69+3V3nvJsSFLwMB1dsaWz1V4oZeuoje9srbYAxxL8PXCwIywfhYa3GxOkBv5Q==
990+
dependencies:
991+
concat-stream "^1.6.1"
992+
jsonlint-lines "1.7.1"
993+
minimist "1.2.0"
994+
vfile "^4.0.0"
995+
vfile-reporter "^5.1.1"
996+
984997
"@mapbox/jsonlint-lines-primitives@^2.0.2":
985998
version "2.0.2"
986999
resolved "https://registry.yarnpkg.com/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz#ce56e539f83552b58d10d672ea4d6fc9adc7b234"
@@ -1224,6 +1237,11 @@ JSONStream@^1.0.3:
12241237
jsonparse "^1.2.0"
12251238
through ">=2.2.7 <3"
12261239

1240+
"JSV@>= 4.0.x":
1241+
version "4.0.2"
1242+
resolved "https://registry.yarnpkg.com/JSV/-/JSV-4.0.2.tgz#d077f6825571f82132f9dffaed587b4029feff57"
1243+
integrity sha1-0Hf2glVx+CEy+d/67Vh7QCn+/1c=
1244+
12271245
abab@^2.0.0:
12281246
version "2.0.2"
12291247
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.2.tgz#a2fba1b122c69a85caa02d10f9270c7219709a9d"
@@ -1363,6 +1381,11 @@ ansi-styles@^3.2.0, ansi-styles@^3.2.1:
13631381
dependencies:
13641382
color-convert "^1.9.0"
13651383

1384+
ansi-styles@~1.0.0:
1385+
version "1.0.0"
1386+
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178"
1387+
integrity sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg=
1388+
13661389
ansicolors@~0.2.1:
13671390
version "0.2.1"
13681391
resolved "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.2.1.tgz#be089599097b74a5c9c4a84a0cdbcdb62bd87aef"
@@ -2194,6 +2217,15 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4
21942217
escape-string-regexp "^1.0.5"
21952218
supports-color "^5.3.0"
21962219

2220+
chalk@~0.4.0:
2221+
version "0.4.0"
2222+
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f"
2223+
integrity sha1-UZmj3c0MHv4jvAjBsCewYXbgxk8=
2224+
dependencies:
2225+
ansi-styles "~1.0.0"
2226+
has-color "~0.1.0"
2227+
strip-ansi "~0.1.0"
2228+
21972229
character-entities-html4@^1.0.0:
21982230
version "1.1.3"
21992231
resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-1.1.3.tgz#5ce6e01618e47048ac22f34f7f39db5c6fd679ef"
@@ -4755,6 +4787,11 @@ has-binary2@~1.0.2:
47554787
dependencies:
47564788
isarray "2.0.1"
47574789

4790+
has-color@~0.1.0:
4791+
version "0.1.7"
4792+
resolved "https://registry.yarnpkg.com/has-color/-/has-color-0.1.7.tgz#67144a5260c34fc3cca677d041daf52fe7b78b2f"
4793+
integrity sha1-ZxRKUmDDT8PMpnfQQdr1L+e3iy8=
4794+
47584795
has-cors@1.1.0:
47594796
version "1.1.0"
47604797
resolved "https://registry.yarnpkg.com/has-cors/-/has-cors-1.1.0.tgz#5e474793f7ea9843d1bb99c23eef49ff126fff39"
@@ -5769,6 +5806,14 @@ jsonify@~0.0.0:
57695806
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
57705807
integrity sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=
57715808

5809+
jsonlint-lines@1.7.1:
5810+
version "1.7.1"
5811+
resolved "https://registry.yarnpkg.com/jsonlint-lines/-/jsonlint-lines-1.7.1.tgz#507de680d3fb8c4be1641cc57d6f679f29f178ff"
5812+
integrity sha1-UH3mgNP7jEvhZBzFfW9nnynxeP8=
5813+
dependencies:
5814+
JSV ">= 4.0.x"
5815+
nomnom ">= 1.5.x"
5816+
57725817
jsonparse@^1.2.0:
57735818
version "1.3.1"
57745819
resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280"
@@ -6748,6 +6793,14 @@ node-releases@^1.1.38:
67486793
dependencies:
67496794
semver "^6.3.0"
67506795

6796+
"nomnom@>= 1.5.x":
6797+
version "1.8.1"
6798+
resolved "https://registry.yarnpkg.com/nomnom/-/nomnom-1.8.1.tgz#2151f722472ba79e50a76fc125bb8c8f2e4dc2a7"
6799+
integrity sha1-IVH3Ikcrp55Qp2/BJbuMjy5Nwqc=
6800+
dependencies:
6801+
chalk "~0.4.0"
6802+
underscore "~1.6.0"
6803+
67516804
noop-logger@^0.1.1:
67526805
version "0.1.1"
67536806
resolved "https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f1317553007d8966fd0e841b6a4c2"
@@ -9571,6 +9624,11 @@ strip-ansi@^5.1.0, strip-ansi@^5.2.0:
95719624
dependencies:
95729625
ansi-regex "^4.1.0"
95739626

9627+
strip-ansi@~0.1.0:
9628+
version "0.1.1"
9629+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.1.1.tgz#39e8a98d044d150660abe4a6808acf70bb7bc991"
9630+
integrity sha1-OeipjQRNFQZgq+SmgIrPcLt7yZE=
9631+
95749632
strip-bom@^3.0.0:
95759633
version "3.0.0"
95769634
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
@@ -9696,7 +9754,7 @@ supercluster@^7.0.0:
96969754
dependencies:
96979755
kdbush "^3.0.0"
96989756

9699-
supports-color@^5.3.0, supports-color@^5.4.0, supports-color@^5.5.0:
9757+
supports-color@^5.0.0, supports-color@^5.3.0, supports-color@^5.4.0, supports-color@^5.5.0:
97009758
version "5.5.0"
97019759
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
97029760
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==
@@ -10265,6 +10323,11 @@ underscore@>=1.8.3:
1026510323
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961"
1026610324
integrity sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==
1026710325

10326+
underscore@~1.6.0:
10327+
version "1.6.0"
10328+
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.6.0.tgz#8b38b10cacdef63337b8b24e4ff86d45aea529a8"
10329+
integrity sha1-izixDKze9jM3uLJOT/htRa6lKag=
10330+
1026810331
unherit@^1.0.4:
1026910332
version "1.1.2"
1027010333
resolved "https://registry.yarnpkg.com/unherit/-/unherit-1.1.2.tgz#14f1f397253ee4ec95cec167762e77df83678449"
@@ -10574,6 +10637,18 @@ vfile-message@^2.0.0:
1057410637
"@types/unist" "^2.0.2"
1057510638
unist-util-stringify-position "^2.0.0"
1057610639

10640+
vfile-reporter@^5.1.1:
10641+
version "5.1.2"
10642+
resolved "https://registry.yarnpkg.com/vfile-reporter/-/vfile-reporter-5.1.2.tgz#80f1db5cbe8f9c12f2f30cce3e2cd18353a48519"
10643+
integrity sha512-b15sTuss1wOPWVlyWOvu+n6wGJ/eTYngz3uqMLimQvxZ+Q5oFQGYZZP1o3dR9sk58G5+wej0UPCZSwQBX/mzrQ==
10644+
dependencies:
10645+
repeat-string "^1.5.0"
10646+
string-width "^2.0.0"
10647+
supports-color "^5.0.0"
10648+
unist-util-stringify-position "^2.0.0"
10649+
vfile-sort "^2.1.2"
10650+
vfile-statistics "^1.1.0"
10651+
1057710652
vfile-reporter@^6.0.0:
1057810653
version "6.0.0"
1057910654
resolved "https://registry.yarnpkg.com/vfile-reporter/-/vfile-reporter-6.0.0.tgz#753119f51dec9289b7508b457afc0cddf5e07f2e"

0 commit comments

Comments
 (0)