@plone/volto 17.11.0 → 17.11.1

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,12 @@ myst:
17
17
 
18
18
  <!-- towncrier release notes start -->
19
19
 
20
+ ## 17.11.1 (2024-01-17)
21
+
22
+ ### Bugfix
23
+
24
+ - Fix order of preference in addons-registry for the theme definition (THEME, volto.config.js, package.json) @sneridagh [#5650](https://github.com/plone/volto/issues/5650)
25
+
20
26
  ## 17.11.0 (2024-01-15)
21
27
 
22
28
  ### Feature
package/addon-registry.js CHANGED
@@ -134,10 +134,10 @@ class AddonConfigurationRegistry {
134
134
  this.packages = {};
135
135
  this.customizations = new Map();
136
136
 
137
- // Theme from a package.json key, from volto.config.js or from an ENV VAR
138
- // Programatically via volto.config.js wins or the ENV VAR if present
137
+ // Theme from an ENV VAR, from volto.config.js or from a package.json key
138
+ // in this order of preference
139
139
  this.theme =
140
- packageJson.theme || this.voltoConfigJS.theme || process.env.THEME;
140
+ process.env.THEME || this.voltoConfigJS.theme || packageJson.theme;
141
141
 
142
142
  this.initDevelopmentPackages();
143
143
  this.initPublishedPackages();
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "17.11.0",
12
+ "version": "17.11.1",
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": "17.11.0",
3
+ "version": "17.11.1",
4
4
  "description": "Slate.js integration with Volto",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",