@masterportal/masterportalapi 2.52.0 → 2.54.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 CHANGED
@@ -3,18 +3,21 @@
3
3
 
4
4
  The [Semantic Versioning](https://semver.org/spec/v2.0.0.html) is used.
5
5
 
6
- ## Unreleased - in development
7
- ### __Breaking Changes__
8
-
9
- ### Added
6
+ ## 2.54.0 - 2025-11-26
10
7
 
11
- ### Changed
8
+ ### Fixed
9
+ - Restored compatibility for deep imports under @masterportal/masterportalapi/src/* by adding a scoped subpath export in package.json.
10
+ ---
12
11
 
13
- ### Deprecated
12
+ ## 2.53.0 - 2025-11-18
14
13
 
15
- ### Removed
14
+ ### Changed
15
+ - The following packages have been updated:
16
+ - dependencies:
17
+ - ol: 10.6.0 to 10.7.0
16
18
 
17
19
  ### Fixed
20
+ - Issue #1450: WMS-Layer: if fetch on load fails, the default tileLoadFunction from openlayers is used.
18
21
 
19
22
  ---
20
23
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@masterportal/masterportalapi",
3
3
  "author": "Implementierungspartnerschaft Masterportal <info@masterportal.org> (https://www.masterportal.org)",
4
- "version": "2.52.0",
4
+ "version": "2.54.0",
5
5
  "license": "MIT",
6
6
  "description": "Basic functions of the Masterportal as api",
7
7
  "repository": {
@@ -9,8 +9,10 @@
9
9
  "url": "git+https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git"
10
10
  },
11
11
  "source": "src/index.js",
12
+ "main": "src/index.js",
12
13
  "exports": {
13
- ".": "./src/index.js"
14
+ ".": "./src/index.js",
15
+ "./src/*": "./src/*"
14
16
  },
15
17
  "targets": {
16
18
  "library": {
@@ -31,7 +33,7 @@
31
33
  "dependencies": {
32
34
  "core-js": "^3.33.1",
33
35
  "dayjs": "^1.11.10",
34
- "ol": "^10.6.0",
36
+ "ol": "^10.7.0",
35
37
  "ol-mapbox-style": "12.5.0",
36
38
  "olcs": "^2.22.1",
37
39
  "proj4": "^2.10.0",
@@ -80,6 +82,5 @@
80
82
  },
81
83
  "bugs": {
82
84
  "url": "https://bitbucket.org/geowerkstatt-hamburg/masterportalapi/issues"
83
- },
84
- "main": "jest.config.js"
85
+ }
85
86
  }
package/publiccode.yml CHANGED
@@ -81,8 +81,8 @@ maintenance:
81
81
  name: Masterportal
82
82
  platforms:
83
83
  - web
84
- releaseDate: '2025-04-29'
84
+ releaseDate: '2025-11-26'
85
85
  roadmap: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi/src/master/'
86
86
  softwareType: api
87
- softwareVersion: 2.49.0
87
+ softwareVersion: 2.54.0
88
88
  url: 'https://bitbucket.org/geowerkstatt-hamburg/masterportalapi.git'
package/src/layer/wms.js CHANGED
@@ -78,15 +78,22 @@ export function makeParams (rawLayer) {
78
78
 
79
79
  /**
80
80
  * Return a ol tile or image load function for the rawLayer.
81
+ * If fetch fails the default tile load function of openlayers is used.
81
82
  * @param {object} rawLayer - layer specification as in services.json
82
83
  * @returns {function} tile/image load function
83
84
  */
84
85
  export function defaultLoadFunction ({isSecured}) {
85
86
  return async (image, src) => {
86
- const response = await fetch(src, {credentials: isSecured ? "include" : "omit"}),
87
- data = await response.blob();
87
+ try {
88
+ const response = await fetch(src, {credentials: isSecured ? "include" : "omit"}),
89
+ data = await response.blob();
88
90
 
89
- image.getImage().src = URL.createObjectURL(data);
91
+ image.getImage().src = URL.createObjectURL(data);
92
+ }
93
+ catch (e) {
94
+ console.error(e.message);
95
+ image.getImage().src = src;
96
+ }
90
97
  };
91
98
  }
92
99