@masterportal/masterportalapi 2.50.0 → 2.51.0
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.
- package/CHANGELOG.md +21 -0
- package/bitbucket-pipelines.yml +1 -1
- package/package.json +28 -17
- package/src/renderer/webgl.js +8 -1
- package/test/lib/setBackgroundImage.test.js +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,27 @@
|
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
|
+
## 2.51.0 - 2025-09-18
|
|
22
|
+
|
|
23
|
+
### __Breaking Changes__
|
|
24
|
+
- Dropped support for **Node.js 18.x**, **20.x** and **npm 9**. Minimum required is now **Node.js 22.19.0 (LTS)** with **npm 10.x**.
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
- cesium/engine updated to current Version 20.0.1
|
|
28
|
+
- The following packages have been updated:
|
|
29
|
+
- devDependencies:
|
|
30
|
+
- @parcel: ^2.13.0 to ^2.15.4
|
|
31
|
+
- @swc/jest: ^0.2.29 to ^0.2.39
|
|
32
|
+
- canvas: ^2.11.2 to ^3.1.2
|
|
33
|
+
- jest: ^29.7.0 to ^30.0.5
|
|
34
|
+
- jest-environment-jsdom: ^29.7.0 to ^30.0.5
|
|
35
|
+
- transformer-sass: ^2.13.0 to ^2.15.4
|
|
36
|
+
- the following package has been added:
|
|
37
|
+
- devDependencies:
|
|
38
|
+
- @parcel/config-default": "^2.15.4"
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
21
42
|
## 2.50.0 - 2025-08-214
|
|
22
43
|
|
|
23
44
|
### Added
|
package/bitbucket-pipelines.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterportal/masterportalapi",
|
|
3
3
|
"author": "Implementierungspartnerschaft Masterportal <info@masterportal.org> (https://www.masterportal.org)",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.51.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Basic functions of the Masterportal as api",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git"
|
|
10
10
|
},
|
|
11
|
+
"source": "src/index.js",
|
|
11
12
|
"main": "src/index.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": "./src/index.js"
|
|
15
|
+
},
|
|
16
|
+
"targets": {
|
|
17
|
+
"library": {
|
|
18
|
+
"source": "src/index.js",
|
|
19
|
+
"distDir": "dist",
|
|
20
|
+
"outputFormat": "commonjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
12
23
|
"scripts": {
|
|
13
24
|
"test": "jest .test.js --config ./jest.config.js --collectCoverage",
|
|
14
25
|
"test:trace": "node --trace-warnings node_modules/jest/bin/jest.js .test.js --config ./jest.config.js",
|
|
@@ -28,26 +39,27 @@
|
|
|
28
39
|
"xml2js": "^0.6.2"
|
|
29
40
|
},
|
|
30
41
|
"devDependencies": {
|
|
31
|
-
"@babel/core": "
|
|
42
|
+
"@babel/core": "7.26.0",
|
|
32
43
|
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
|
|
33
|
-
"@parcel/
|
|
34
|
-
"@
|
|
44
|
+
"@parcel/config-default": "^2.15.4",
|
|
45
|
+
"@parcel/transformer-sass": "^2.15.4",
|
|
46
|
+
"@swc/jest": "^0.2.39",
|
|
35
47
|
"assert": "^2.1.0",
|
|
36
48
|
"browserify-zlib": "^0.2.0",
|
|
37
49
|
"buffer": "^6.0.3",
|
|
38
|
-
"canvas": "
|
|
39
|
-
"eslint": "
|
|
50
|
+
"canvas": "3.2.0",
|
|
51
|
+
"eslint": "8.57.1",
|
|
40
52
|
"events": "^3.3.0",
|
|
41
53
|
"https-browserify": "^1.0.0",
|
|
42
|
-
"husky": "
|
|
43
|
-
"jest": "
|
|
44
|
-
"jest-canvas-mock": "
|
|
45
|
-
"jest-environment-jsdom": "
|
|
54
|
+
"husky": "8.0.3",
|
|
55
|
+
"jest": "30.1.3",
|
|
56
|
+
"jest-canvas-mock": "2.5.2",
|
|
57
|
+
"jest-environment-jsdom": "30.1.2",
|
|
46
58
|
"jest-fetch-mock": "^3.0.3",
|
|
47
|
-
"jsdoc": "
|
|
48
|
-
"parcel": "^2.
|
|
59
|
+
"jsdoc": "4.0.2",
|
|
60
|
+
"parcel": "^2.15.4",
|
|
49
61
|
"process": "^0.11.10",
|
|
50
|
-
"sass": "
|
|
62
|
+
"sass": "1.69.4",
|
|
51
63
|
"stream-browserify": "^3.0.0",
|
|
52
64
|
"stream-http": "^3.2.0",
|
|
53
65
|
"timers-browserify": "^2.0.12",
|
|
@@ -56,15 +68,14 @@
|
|
|
56
68
|
"util": "^0.12.5"
|
|
57
69
|
},
|
|
58
70
|
"peerDependencies": {
|
|
59
|
-
"@cesium/engine": "^
|
|
71
|
+
"@cesium/engine": "^20.0.1"
|
|
60
72
|
},
|
|
61
73
|
"engines": {
|
|
62
|
-
"node": "^
|
|
63
|
-
"npm": "^
|
|
74
|
+
"node": "^22.19.0",
|
|
75
|
+
"npm": "^10.5.0"
|
|
64
76
|
},
|
|
65
77
|
"homepage": "https://bitbucket.org/geowerkstatt-hamburg/masterportalapi#readme",
|
|
66
78
|
"directories": {
|
|
67
|
-
"doc": "docs",
|
|
68
79
|
"example": "example",
|
|
69
80
|
"test": "test"
|
|
70
81
|
},
|
package/src/renderer/webgl.js
CHANGED
|
@@ -40,7 +40,14 @@ const defaultPointStyle = [
|
|
|
40
40
|
opacity: 1
|
|
41
41
|
},
|
|
42
42
|
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* @typedef {Object} LiteralStyle
|
|
45
|
+
* @property {string} [stroke-color]
|
|
46
|
+
* @property {number} [stroke-width]
|
|
47
|
+
* @property {string} [fill-color]
|
|
48
|
+
* @property {number} [opacity]
|
|
49
|
+
* @property {number} [size]
|
|
50
|
+
*/
|
|
44
51
|
style = Object.assign({
|
|
45
52
|
"stroke-color": ["get", "strokeColor"],
|
|
46
53
|
"stroke-width": ["get", "strokeWidth", "number"],
|
|
@@ -34,11 +34,12 @@ describe("setBackgroundImage.js", function () {
|
|
|
34
34
|
});
|
|
35
35
|
|
|
36
36
|
it("preserves empty string as input to set explicitly no background image", function () {
|
|
37
|
-
const backgroundImage = ""
|
|
37
|
+
const backgroundImage = "",
|
|
38
|
+
got = document.getElementById("map").style.backgroundImage;
|
|
38
39
|
|
|
39
40
|
setBackgroundImage({backgroundImage});
|
|
40
41
|
|
|
41
|
-
expect(
|
|
42
|
+
expect(["", "url()", "url(\"\")"]).toContain(got);
|
|
42
43
|
});
|
|
43
44
|
|
|
44
45
|
it("sets the default background image if none was given", function () {
|