@plone/volto 16.34.0 → 16.34.2
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.draft
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
## 16.34.
|
|
2
|
-
|
|
3
|
-
### Feature
|
|
4
|
-
|
|
5
|
-
- Provide language alternate links @erral [#6615](https://github.com/plone/volto/issues/6615)
|
|
1
|
+
## 16.34.2 (2026-06-18)
|
|
6
2
|
|
|
7
3
|
### Bugfix
|
|
8
4
|
|
|
9
|
-
- Fix
|
|
5
|
+
- Fix project generator acceptance test on Node 16. @davisagli [#7421](https://github.com/plone/volto/issues/7421)
|
|
6
|
+
- Added more resilience to the API and Robots helper methods, based and backported from https://github.com/plone/volto/pull/8198 @sneridagh
|
|
10
7
|
|
|
11
8
|
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,19 @@
|
|
|
8
8
|
|
|
9
9
|
<!-- towncrier release notes start -->
|
|
10
10
|
|
|
11
|
+
## 16.34.2 (2026-06-18)
|
|
12
|
+
|
|
13
|
+
### Bugfix
|
|
14
|
+
|
|
15
|
+
- Fix project generator acceptance test on Node 16. @davisagli [#7421](https://github.com/plone/volto/issues/7421)
|
|
16
|
+
- Added more resilience to the API and Robots helper methods, based and backported from https://github.com/plone/volto/pull/8198 @sneridagh
|
|
17
|
+
|
|
18
|
+
## 16.34.1 (2025-09-29)
|
|
19
|
+
|
|
20
|
+
### Bugfix
|
|
21
|
+
|
|
22
|
+
- Added guard in API REDUX middleware. @sneridagh [#7412](https://github.com/plone/volto/issues/7412)
|
|
23
|
+
|
|
11
24
|
## 16.34.0 (2025-08-25)
|
|
12
25
|
|
|
13
26
|
### Feature
|
package/package.json
CHANGED
package/src/helpers/Api/Api.js
CHANGED
|
@@ -99,7 +99,7 @@ class Api {
|
|
|
99
99
|
request.attach.apply(request, attachment);
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
request.end((err, response) => {
|
|
102
|
+
request.end((err, response = {}) => {
|
|
103
103
|
if (
|
|
104
104
|
checkUrl &&
|
|
105
105
|
request.url &&
|
|
@@ -123,7 +123,7 @@ class Api {
|
|
|
123
123
|
if ([301, 302].includes(err?.status)) {
|
|
124
124
|
return reject({
|
|
125
125
|
code: err.status,
|
|
126
|
-
url: err.response
|
|
126
|
+
url: err.response?.headers?.location,
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -24,7 +24,7 @@ export const generateRobots = (req) =>
|
|
|
24
24
|
request.set('Authorization', `Bearer ${authToken}`);
|
|
25
25
|
}
|
|
26
26
|
request.use(addHeadersFactory(req));
|
|
27
|
-
request.end((error, { text }) => {
|
|
27
|
+
request.end((error, { text } = {}) => {
|
|
28
28
|
if (error) {
|
|
29
29
|
resolve(text || error);
|
|
30
30
|
} else {
|
package/src/middleware/api.js
CHANGED
|
@@ -331,7 +331,7 @@ const apiMiddlewareFactory = (api) => ({ dispatch, getState }) => (next) => (
|
|
|
331
331
|
...rest,
|
|
332
332
|
error,
|
|
333
333
|
statusCode: error.response,
|
|
334
|
-
message: error.response
|
|
334
|
+
message: error.response?.body?.message,
|
|
335
335
|
connectionRefused: false,
|
|
336
336
|
type: SET_APIERROR,
|
|
337
337
|
});
|