Skip to content

Commit

Permalink
Bump version to 4.0.0-pre.3 (#3558)
Browse files Browse the repository at this point in the history
* Bump version to 4.0.0-pre.3

* Update CHANGELOG.md

* Add more logs to understand why the tests are failing

* Timeout instead of idle *hack*

* remove unwanted changes

* Fix lint, revert code

---------

Co-authored-by: HarelM <[email protected]>
Co-authored-by: Harel M <[email protected]>
  • Loading branch information
3 people authored Jan 10, 2024
1 parent 624ba14 commit f29d492
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

### ✨ Features and improvements

- _...Add new stuff here..._

### 🐞 Bug fixes
- _...Add new stuff here..._

## 4.0.0-pre.3

### ✨ Features and improvements

- ⚠️ Add the ability to import a script in the worker thread and call `addProtocol` and `removeProtocol` there ([#3459](https://github.com/maplibre/maplibre-gl-js/pull/3459)) - this also changed how `addSourceType` works since now you'll need to load the script with `maplibregl.importScriptInWorkers`.
- Upgraded to use Node JS 20 and removed the dependency of `gl` package from the tests to allow easier develpment setup.
- Improved precision and added a subtle fade transition to marker opacity changes ([#3431](https://github.com/maplibre/maplibre-gl-js/pull/3431))
- Adds support for terrain in `setStyle` with diff method ([#3515](https://github.com/maplibre/maplibre-gl-js/pull/3515), [#3463](https://github.com/maplibre/maplibre-gl-js/pull/3463))
- _...Add new stuff here..._

### 🐞 Bug fixes

- Fix the shifted mouse events after a css transform scale on the map container ([#3437](https://github.com/maplibre/maplibre-gl-js/pull/3437))
- Fix markers remaining transparent when disabling terrain ([#3431](https://github.com/maplibre/maplibre-gl-js/pull/3431))
- Fix labels disappearing when enabling terrain at high zoom ([#3545](https://github.com/maplibre/maplibre-gl-js/pull/3545))
- _...Add new stuff here..._

## 4.0.0-pre.2

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "maplibre-gl",
"description": "BSD licensed community fork of mapbox-gl, a WebGL interactive maps library",
"version": "4.0.0-pre.2",
"version": "4.0.0-pre.3",
"main": "dist/maplibre-gl.js",
"style": "dist/maplibre-gl.css",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion test/integration/browser/browser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,14 @@ describe('Browser tests', () => {

return new Promise<any>((resolve) => {
map.once('idle', () => {
map.setTerrain({source: 'terrainSource'});
map.once('idle', () => {
const markerBounding = marker.getElement().getBoundingClientRect();
resolve({
x: markerBounding.x,
y: markerBounding.y
});
});
map.setTerrain({source: 'terrainSource'});
});
});
});
Expand Down
3 changes: 1 addition & 2 deletions test/integration/query/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,13 @@ describe('query tests', () => {
globPattern = globPattern.replace(/\\/g, '/');
const testStyles = globSync(globPattern);

for (const [testindex, styleJson] of testStyles.entries()) {
for (const styleJson of testStyles) {
const testCaseRoot = path.dirname(styleJson.replace(/\\/g, '/')); // glob is returning paths that dirname can't handle...
const caseName = path.relative(allTestsRoot, testCaseRoot);
// eslint-disable-next-line no-loop-func
test(caseName, async () => {
const port = (server.address() as AddressInfo).port;
const fixture = await dirToJson(testCaseRoot, port);
console.log(`${testindex + 1} / ${testStyles.length}: ${caseName}`);

const style = fixture.style;
const options = style.metadata.test;
Expand Down

0 comments on commit f29d492

Please sign in to comment.