diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 7018757d9b..84109b095b 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -51,8 +51,8 @@ jobs: name: dist path: before repo: maplibre/maplibre-gl-js - - run: yarn source-map-explorer before/mapbox-gl.js --gzip --json before.json - - run: yarn source-map-explorer after/mapbox-gl.js --gzip --json after.json + - run: yarn source-map-explorer before/maplibre-gl.js --gzip --json before.json + - run: yarn source-map-explorer after/maplibre-gl.js --gzip --json after.json - name: Build bundle size report run: node build/check-bundle-size.js > comment-body.txt - name: Dump bundle size report diff --git a/bench/gl-stats.html b/bench/gl-stats.html index 7e580e4da3..2b16bc84ab 100644 --- a/bench/gl-stats.html +++ b/bench/gl-stats.html @@ -8,15 +8,15 @@ let now = performance.now(); window.performance.now = () => now; - +
`) + .replace(/`) .replace('MAPBOX_ACCESS_TOKEN', process.env.MAPBOX_ACCESS_TOKEN); function waitForConsole(page) { @@ -33,8 +33,8 @@ function waitForConsole(page) { await page.setContent(benchHTML); const stats = JSON.parse(await waitForConsole(page)); - stats["bundle_size"] = mapboxGLJSSrc.length + mapboxGLCSSSrc.length; - stats["bundle_size_gz"] = zlib.gzipSync(mapboxGLJSSrc).length + zlib.gzipSync(mapboxGLCSSSrc).length; + stats["bundle_size"] = maplibreGLJSSrc.length + maplibreGLCSSSrc.length; + stats["bundle_size_gz"] = zlib.gzipSync(maplibreGLJSSrc).length + zlib.gzipSync(maplibreGLCSSSrc).length; stats.dt = execSync('git show --no-patch --no-notes --pretty=\'%cI\' HEAD').toString().substring(0, 19); stats.commit = execSync('git rev-parse --short HEAD').toString().trim(); stats.message = execSync('git show -s --format=%s HEAD').toString().trim(); diff --git a/bench/styles/benchmarks.js b/bench/styles/benchmarks.js index eb573073fc..9ca0233365 100644 --- a/bench/styles/benchmarks.js +++ b/bench/styles/benchmarks.js @@ -1,4 +1,4 @@ -import mapboxgl from '../../src'; +import maplibregl from '../../src'; import accessToken from '../lib/access_token'; import locationsWithTileID from '../lib/locations_with_tile_id'; import styleBenchmarkLocations from '@mapbox/gazetteer/benchmark/style-benchmark-locations.json'; @@ -13,7 +13,7 @@ import getWorkerPool from '../../src/util/global_worker_pool'; const locations = locationsWithTileID(styleBenchmarkLocations.features); -mapboxgl.accessToken = accessToken; +maplibregl.accessToken = accessToken; const benchmarks = window.benchmarks = []; @@ -44,4 +44,4 @@ Promise.resolve().then(() => { getWorkerPool().acquire(-1); }); -export default mapboxgl; +export default maplibregl; diff --git a/bench/styles/index.html b/bench/styles/index.html index 4344efa544..596e40c9c8 100644 --- a/bench/styles/index.html +++ b/bench/styles/index.html @@ -7,7 +7,7 @@ - + diff --git a/bench/versions/benchmarks.js b/bench/versions/benchmarks.js index 3738aded4e..f796b746a5 100644 --- a/bench/versions/benchmarks.js +++ b/bench/versions/benchmarks.js @@ -1,4 +1,4 @@ -import mapboxgl from '../../src'; +import maplibregl from '../../src'; import accessToken from '../lib/access_token'; import locationsWithTileID from '../lib/locations_with_tile_id'; import styleBenchmarkLocations from '@mapbox/gazetteer/benchmark/style-benchmark-locations.json'; @@ -25,15 +25,15 @@ import getWorkerPool from '../../src/util/global_worker_pool'; const styleLocations = locationsWithTileID(styleBenchmarkLocations.features); -mapboxgl.accessToken = accessToken; +maplibregl.accessToken = accessToken; -window.mapboxglBenchmarks = window.mapboxglBenchmarks || {}; +window.maplibreglBenchmarks = window.maplibreglBenchmarks || {}; const version = process.env.BENCHMARK_VERSION; function register(name, bench) { - window.mapboxglBenchmarks[name] = window.mapboxglBenchmarks[name] || {}; - window.mapboxglBenchmarks[name][version] = bench; + window.maplibreglBenchmarks[name] = window.maplibreglBenchmarks[name] || {}; + window.maplibreglBenchmarks[name][version] = bench; } const style = 'mapbox://styles/mapbox/streets-v10'; @@ -84,4 +84,4 @@ Promise.resolve().then(() => { getWorkerPool().acquire(-1); }); -export default mapboxgl; +export default maplibregl; diff --git a/bench/versions/index.html b/bench/versions/index.html index 81007f00aa..eeacafba91 100644 --- a/bench/versions/index.html +++ b/bench/versions/index.html @@ -7,7 +7,7 @@ - + diff --git a/build/mapbox-gl.js.flow b/build/maplibre-gl.js.flow similarity index 100% rename from build/mapbox-gl.js.flow rename to build/maplibre-gl.js.flow diff --git a/debug/.eslintrc b/debug/.eslintrc index 5e8b0a0b21..62ffd8a1f1 100644 --- a/debug/.eslintrc +++ b/debug/.eslintrc @@ -22,7 +22,7 @@ "browser": true }, "globals": { - "mapboxgl": false, + "maplibregl": false, "React": false, "ReactDOM": false } diff --git a/debug/2762.html b/debug/2762.html index 753f0131a2..0176af5cff 100644 --- a/debug/2762.html +++ b/debug/2762.html @@ -4,7 +4,7 @@ Mapbox GL JS debug page - + @@ -13,11 +13,11 @@
- + + + + + + + diff --git a/debug/color_spaces.html b/debug/color_spaces.html index f3bc0164bb..6eb9c6723a 100644 --- a/debug/color_spaces.html +++ b/debug/color_spaces.html @@ -4,7 +4,7 @@ Mapbox GL JS debug page - +