Skip to content

Commit 2d2e98a

Browse files
authored
v2.14.1 (#12661)
* Forbid class fields to fix transpilation errors with Vite/ESBuild (#12658) * forbid class fields to fix transpilation errors with vite/esbuild * fix flow * v2.14.1 version bump + changelog update
1 parent 9980ee9 commit 2d2e98a

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
"no-duplicate-imports": "off",
2828
"import/no-duplicates": "error",
2929

30+
// prevent issues with esbuild/vite https://github.com/mapbox/mapbox-gl-js/issues/12656
31+
"no-restricted-syntax": ["error", "ClassProperty[value]"],
32+
3033
// ensure compatibility with Node's native ESM
3134
"import/extensions": ["error", {
3235
"js": "always",

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
## 2.14.1
2+
3+
### Bug fixes 🐞
4+
5+
* Fix a bug where certain bundling configurations involving Vite or ESBuild could produce a broken build. [#12658](https://github.com/mapbox/mapbox-gl-js/pull/12658)
6+
17
## 2.14.0
28

39
### Features ✨ and improvements 🏁
410

511
* Support `referrerPolicy` option for the `transformRequest` function when using fetch ([#12590](https://github.com/mapbox/mapbox-gl-js/pull/12590)) (h/t [robertcepa](https://github.com/robertcepa))
612

7-
## Bug fixes 🐞
13+
### Bug fixes 🐞
814

915
* Enable anisotropic filtering on tiles beyond 20 degrees pitch to prevent it from compromising image crispness on flat or low-tilted maps. ([#12577](https://github.com/mapbox/mapbox-gl-js/pull/12577))
1016
* Fix LngLatBounds.extend() with literal LngLat object. ([#12605](https://github.com/mapbox/mapbox-gl-js/pull/12605))

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mapbox-gl",
33
"description": "A WebGL interactive maps library",
4-
"version": "2.14.0",
4+
"version": "2.14.1",
55
"main": "dist/mapbox-gl.js",
66
"style": "dist/mapbox-gl.css",
77
"license": "SEE LICENSE IN LICENSE.txt",

src/style/style_layer/line_style_layer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {TilespaceQueryGeometry} from '../query_geometry.js';
2222
import type {IVectorTileFeature} from '@mapbox/vector-tile';
2323

2424
class LineFloorwidthProperty extends DataDrivenProperty<number> {
25-
useIntegerZoom = true;
25+
useIntegerZoom: ?boolean;
2626

2727
possiblyEvaluate(value, parameters) {
2828
parameters = new EvaluationParameters(Math.floor(parameters.zoom), {

test/unit/util/util.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@ test('util', (t) => {
6969
this.name = 'Tom';
7070
}
7171

72-
ontimer = () => {
72+
ontimer() {
7373
t.equal(this.name, 'Tom');
7474
t.end();
7575
}
7676
}
7777

7878
const my = new MyClass();
79+
// $FlowFixMe[method-unbinding]
7980
setTimeout(my.ontimer, 0);
8081
});
8182

0 commit comments

Comments
 (0)