@plone/volto 19.0.0-alpha.16 → 19.0.0-alpha.18

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
@@ -17,6 +17,23 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
+ ## 19.0.0-alpha.18 (2025-11-30)
21
+
22
+ ### Bugfix
23
+
24
+ - Fixed a TypeError in `flattenScales` that occurred when `image.scales` was missing. @pratyush07-hub [#7568](https://github.com/plone/volto/issues/7568)
25
+ - Moved hitorical amendment for the CssMinimizerPlugin to the Razzle fork, removed calc processing. @sneridagh [#7667](https://github.com/plone/volto/issues/7667)
26
+
27
+ ### Internal
28
+
29
+ - Revert #7646 Makefile, removing --prod experiment. @sneridagh
30
+
31
+ ## 19.0.0-alpha.17 (2025-11-21)
32
+
33
+ ### Bugfix
34
+
35
+ - Added `prettier` as a direct dependency of Volto, since is used by HTML block, to prevent the removal from the production build. @sneridagh
36
+
20
37
  ## 19.0.0-alpha.16 (2025-11-20)
21
38
 
22
39
  ### Bugfix
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "19.0.0-alpha.16",
12
+ "version": "19.0.0-alpha.18",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:plone/volto.git"
@@ -130,6 +130,7 @@
130
130
  "object-assign": "4.1.1",
131
131
  "prepend-http": "2",
132
132
  "pretty-bytes": "5.3.0",
133
+ "prettier": "3.2.5",
133
134
  "prismjs": "1.27.0",
134
135
  "process": "^0.11.10",
135
136
  "promise-file-reader": "1.0.2",
@@ -189,9 +190,9 @@
189
190
  "url": "^0.11.3",
190
191
  "use-deep-compare-effect": "1.8.1",
191
192
  "uuid": "^8.3.2",
192
- "@plone/components": "4.0.0-alpha.4",
193
- "@plone/volto-slate": "19.0.0-alpha.8",
194
193
  "@plone/registry": "3.0.0-alpha.8",
194
+ "@plone/volto-slate": "19.0.0-alpha.8",
195
+ "@plone/components": "4.0.0-alpha.4",
195
196
  "@plone/scripts": "4.0.0-alpha.4"
196
197
  },
197
198
  "devDependencies": {
@@ -276,7 +277,6 @@
276
277
  "postcss-loader": "7.0.2",
277
278
  "postcss-overrides": "3.1.4",
278
279
  "postcss-scss": "4.0.6",
279
- "prettier": "3.2.5",
280
280
  "razzle-dev-utils": "4.2.18",
281
281
  "react-docgen-typescript-plugin": "^1.0.5",
282
282
  "react-error-overlay": "6.0.9",
@@ -306,8 +306,8 @@
306
306
  "webpack-bundle-analyzer": "4.10.1",
307
307
  "webpack-dev-server": "4.11.1",
308
308
  "webpack-node-externals": "3.0.0",
309
- "@plone/razzle": "1.0.0-alpha.0",
310
309
  "@plone/babel-preset-razzle": "^1.0.0-alpha.0",
310
+ "@plone/razzle": "1.0.0-alpha.0",
311
311
  "@plone/types": "2.0.0-alpha.11",
312
312
  "@plone/volto-coresandbox": "1.0.0"
313
313
  },
package/razzle.config.js CHANGED
@@ -15,7 +15,6 @@ const {
15
15
  const { AddonRegistry } = require('@plone/registry/addon-registry');
16
16
  const CircularDependencyPlugin = require('circular-dependency-plugin');
17
17
  const TerserPlugin = require('terser-webpack-plugin');
18
- const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
19
18
  const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
20
19
  const AfterBuildPlugin = require('@fiverr/afterbuild-webpack-plugin');
21
20
 
@@ -116,26 +115,11 @@ const defaultModify = ({
116
115
  },
117
116
  });
118
117
 
119
- // This is needed to override Razzle use of the unmaintained CleanCSS
120
- // which does not have support for recently CSS features (container queries).
121
- // Using the default provided (cssnano) by css-minimizer-webpack-plugin
122
- // should be enough see:
123
- // (https://github.com/clean-css/clean-css/discussions/1209)
124
118
  // TODO: remove this before merging the Razzle fork into Volto 19
119
+ // @sneridagh: Tried to remove this now that we have forked Razzle
120
+ // but I cannot pinpoint where this comes from, and it seems undefined
121
+ // always.
125
122
  delete options.webpackOptions.terserPluginOptions?.sourceMap;
126
- if (!dev) {
127
- config.optimization = Object.assign({}, config.optimization, {
128
- minimizer: [
129
- new TerserPlugin(options.webpackOptions.terserPluginOptions),
130
- new CssMinimizerPlugin({
131
- sourceMap: options.razzleOptions.enableSourceMaps,
132
- minimizerOptions: {
133
- sourceMap: options.razzleOptions.enableSourceMaps,
134
- },
135
- }),
136
- ],
137
- });
138
- }
139
123
 
140
124
  config.plugins.unshift(
141
125
  // restrict moment.js locales to supported languages
@@ -411,6 +411,7 @@ export function flattenScales(path, image) {
411
411
  const basePath = image.base_path || path;
412
412
  const imageInfo = {
413
413
  ...image,
414
+ scales: image.scales || {},
414
415
  download: flattenToAppURL(removeObjectIdFromURL(basePath, image.download)),
415
416
  };
416
417
 
@@ -0,0 +1,11 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import packageJson from '../package.json';
3
+
4
+ describe('internal checks', () => {
5
+ it('keeps prettier listed as a runtime dependency', () => {
6
+ const dependencies = packageJson.dependencies ?? {};
7
+
8
+ expect(dependencies).toHaveProperty('prettier');
9
+ expect(typeof dependencies.prettier).toBe('string');
10
+ });
11
+ });