@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.0 (2025-08-25)
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 corner case in devproxy when pathname is null. @sneridagh [#7276](https://github.com/plone/volto/issues/7276)
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
 
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
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "16.34.0",
12
+ "version": "16.34.2",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plone/volto-slate",
3
- "version": "16.34.0",
3
+ "version": "16.34.2",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -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.headers.location,
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 {
@@ -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.body.message,
334
+ message: error.response?.body?.message,
335
335
  connectionRefused: false,
336
336
  type: SET_APIERROR,
337
337
  });