maplibre-gl 2.1.8 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.1.8/LICENSE.txt */
1
+ /* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.1.9/LICENSE.txt */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -1,4 +1,4 @@
1
- /* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.1.8/LICENSE.txt */
1
+ /* MapLibre GL JS is licensed under the 3-Clause BSD License. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v2.1.9/LICENSE.txt */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "maplibre-gl",
3
3
  "description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
4
- "version": "2.1.8",
4
+ "version": "2.1.9",
5
5
  "main": "dist/maplibre-gl.js",
6
6
  "style": "dist/maplibre-gl.css",
7
7
  "license": "BSD-3-Clause",
@@ -21,6 +21,9 @@
21
21
  "@mapbox/vector-tile": "^1.3.1",
22
22
  "@mapbox/whoots-js": "^3.1.0",
23
23
  "@types/geojson": "^7946.0.8",
24
+ "@types/mapbox__point-geometry": "^0.1.2",
25
+ "@types/mapbox__vector-tile": "^1.3.0",
26
+ "@types/pbf": "^3.0.2",
24
27
  "csscolorparser": "~1.0.3",
25
28
  "earcut": "^2.2.3",
26
29
  "geojson-vt": "^3.2.1",
@@ -57,13 +60,10 @@
57
60
  "@types/glob": "^7.2.0",
58
61
  "@types/jest": "^27.4.0",
59
62
  "@types/jsdom": "^16.2.14",
60
- "@types/mapbox__point-geometry": "^0.1.2",
61
- "@types/mapbox__vector-tile": "^1.3.0",
62
63
  "@types/minimist": "^1.2.2",
63
64
  "@types/murmurhash-js": "^1.0.3",
64
65
  "@types/nise": "^1.4.0",
65
66
  "@types/offscreencanvas": "^2019.6.4",
66
- "@types/pbf": "^3.0.2",
67
67
  "@types/pixelmatch": "^5.2.4",
68
68
  "@types/pngjs": "^6.0.1",
69
69
  "@types/react": "^17.0.38",
@@ -158,14 +158,14 @@
158
158
  "lint-docs": "documentation lint src/index.ts",
159
159
  "lint-css": "stylelint \"src/css/maplibre-gl.css\"",
160
160
  "test": "run-s lint lint-css lint-docs test-unit",
161
- "test-build": "jest ./test/build",
162
- "test-symbol-shaping": "jest ./test/integration/symbol-shaping",
163
- "test-style-spec": "jest ./test/integration/style-spec",
164
- "test-browser": "jest -c ./jest.config.e2e.js ./test/integration/browser",
161
+ "test-build": "jest --roots ./test/build",
162
+ "test-symbol-shaping": "jest --roots ./test/integration/symbol-shaping",
163
+ "test-style-spec": "jest --roots ./test/integration/style-spec",
164
+ "test-browser": "jest -c ./jest.config.e2e.js --roots ./test/integration/browser",
165
165
  "test-render": "node --loader ts-node/esm --experimental-specifier-resolution=node --experimental-json-modules --max-old-space-size=2048 test/integration/render/render.test.ts",
166
- "test-query": "jest -c ./jest.config.e2e.js test/integration/query",
167
- "test-expression": "jest test/integration/expression",
168
- "test-unit": "jest ./src",
166
+ "test-query": "jest -c ./jest.config.e2e.js --roots ./test/integration/query",
167
+ "test-expression": "jest --roots ./test/integration/expression",
168
+ "test-unit": "jest --roots ./src",
169
169
  "codegen": "npm run generate-style-code && npm run generate-struct-arrays && npm run generate-style-spec && npm run generate-shaders",
170
170
  "benchmark": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/run-benchmarks.ts",
171
171
  "gl-stats": "node --loader ts-node/esm --experimental-specifier-resolution=node test/bench/gl-stats.ts",
@@ -61,7 +61,7 @@ describe('CanvasSource', () => {
61
61
  });
62
62
 
63
63
  test('self-validates', () => {
64
- const stub = jest.spyOn(console, 'error');
64
+ const stub = jest.spyOn(console, 'error').mockImplementation(() => {});
65
65
  createSource({coordinates: []});
66
66
  expect(stub).toHaveBeenCalled();
67
67
  stub.mockReset();