Skip to content

Commit 0415cfd

Browse files
authored
Merge branch 'maplibre:main' into issue_7149
2 parents 463d5fb + f8f9870 commit 0415cfd

File tree

5 files changed

+38
-66
lines changed

5 files changed

+38
-66
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
# Initializes the CodeQL tools for scanning.
4646
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
47+
uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
4848
with:
4949
languages: ${{ matrix.language }}
5050
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -55,7 +55,7 @@ jobs:
5555
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5656
# If this step fails, then you should remove it and run the build manually (see below)
5757
- name: Autobuild
58-
uses: github/codeql-action/autobuild@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
58+
uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6
5959

6060
# ℹ️ Command-line programs to run using the OS shell.
6161
# 📚 https://git.io/JvXDl
@@ -69,4 +69,4 @@ jobs:
6969
# make release
7070

7171
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
72+
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6

package-lock.json

Lines changed: 28 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@mapbox/vector-tile": "^2.0.4",
2525
"@mapbox/whoots-js": "^3.1.0",
2626
"@maplibre/geojson-vt": "^6.0.1",
27-
"@maplibre/maplibre-gl-style-spec": "^24.6.0",
27+
"@maplibre/maplibre-gl-style-spec": "^24.7.0",
2828
"@maplibre/mlt": "^1.1.6",
2929
"@maplibre/vt-pbf": "^4.3.0",
3030
"@types/geojson": "^7946.0.16",
@@ -40,14 +40,14 @@
4040
"devDependencies": {
4141
"@mapbox/mapbox-gl-rtl-text": "^0.3.0",
4242
"@mapbox/mvt-fixtures": "^3.10.0",
43-
"@rollup/plugin-commonjs": "^29.0.0",
43+
"@rollup/plugin-commonjs": "^29.0.1",
4444
"@rollup/plugin-json": "^6.1.0",
4545
"@rollup/plugin-node-resolve": "^16.0.3",
4646
"@rollup/plugin-replace": "^6.0.3",
4747
"@rollup/plugin-strip": "^3.0.4",
4848
"@rollup/plugin-terser": "^0.4.4",
4949
"@rollup/plugin-typescript": "^12.1.4",
50-
"@stylistic/eslint-plugin": "^5.9.0",
50+
"@stylistic/eslint-plugin": "^5.10.0",
5151
"@types/benchmark": "^2.1.5",
5252
"@types/d3": "^7.4.3",
5353
"@types/earcut": "^3.0.0",
@@ -57,7 +57,7 @@
5757
"@types/minimist": "^1.2.5",
5858
"@types/murmurhash-js": "^1.0.6",
5959
"@types/nise": "^1.4.5",
60-
"@types/node": "^25.3.3",
60+
"@types/node": "^25.3.5",
6161
"@types/offscreencanvas": "^2019.7.3",
6262
"@types/pixelmatch": "^5.2.6",
6363
"@types/pngjs": "^6.0.5",
@@ -80,7 +80,7 @@
8080
"cssnano": "^7.1.2",
8181
"d3": "^7.9.0",
8282
"d3-queue": "^3.0.7",
83-
"devtools-protocol": "^0.0.1591319",
83+
"devtools-protocol": "^0.0.1594462",
8484
"diff": "^8.0.3",
8585
"dts-bundle-generator": "^9.5.1",
8686
"eslint": "^9.39.2",
@@ -97,7 +97,7 @@
9797
"minimist": "^1.2.8",
9898
"mock-geolocation": "^1.0.11",
9999
"monocart-coverage-reports": "^2.12.9",
100-
"nise": "^6.1.2",
100+
"nise": "^6.1.3",
101101
"npm-font-open-sans": "^1.1.0",
102102
"npm-run-all": "^4.1.5",
103103
"pdf-merger-js": "^5.1.2",
@@ -113,7 +113,7 @@
113113
"regenerate": "^1.4.2",
114114
"rollup": "^4.59.0",
115115
"rollup-plugin-sourcemaps2": "^0.5.6",
116-
"rollup-plugin-visualizer": "^7.0.0",
116+
"rollup-plugin-visualizer": "^7.0.1",
117117
"rw": "^1.3.3",
118118
"semver": "^7.7.4",
119119
"sharp": "^0.34.5",

src/style/style_layer/raster_style_layer.test.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,4 @@ describe('RasterStyleLayer correctly handles "resampling" and "raster-resampling
2929
expect(resampling).toEqual(undefined);
3030
});
3131

32-
test('warns when both "resampling" and "raster-resampling" are specified upon instantiation', () => {
33-
const originalWarn = console.warn;
34-
console.warn = vi.fn();
35-
36-
const layerSpec = createLayerSpec({
37-
paint: {
38-
resampling: 'nearest',
39-
'raster-resampling': 'nearest',
40-
}
41-
});
42-
createStyleLayer(layerSpec, {});
43-
expect(console.warn).toHaveBeenCalledTimes(1);
44-
console.warn = originalWarn;
45-
});
46-
4732
});

src/style/style_layer/raster_style_layer.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {StyleLayer} from '../style_layer';
2-
import {warnOnce} from '../../util/util';
32

43
import properties, {type RasterPaintPropsPossiblyEvaluated} from './raster_style_layer_properties.g';
54
import {type Transitionable, type Transitioning, type PossiblyEvaluated} from '../properties';
@@ -15,10 +14,6 @@ export class RasterStyleLayer extends StyleLayer {
1514
paint: PossiblyEvaluated<RasterPaintProps, RasterPaintPropsPossiblyEvaluated>;
1615

1716
constructor(layer: LayerSpecification, globalState: Record<string, any>) {
18-
const resampling = layer.paint?.['resampling'];
19-
if (resampling && layer.paint?.['raster-resampling']) {
20-
warnOnce(`Raster layer "${layer.id}" paint properties "resampling" and "raster-resampling" are both specified, but only "resampling" needs to be specified. Defaulting to "resampling" (${resampling}).`);
21-
}
2217
super(layer, properties, globalState);
2318
}
2419
}

0 commit comments

Comments
 (0)