Skip to content

Commit 08aab5a

Browse files
authored
Upgrade Guide Cookieplone review (#6290)
1 parent 1e01070 commit 08aab5a

File tree

2 files changed

+32
-22
lines changed

2 files changed

+32
-22
lines changed

docs/source/upgrade-guide/index.md

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ For this purpose, we have developed a {ref}`new utility <upgrade-guide-new-depen
4040
It is mandatory that you run the utility to make Volto version 18.0.0-alpha.21 or later work in your projects.
4141
This opens the door to use {term}`pnpm` in projects, too, and other goodies.
4242

43-
```{versionremoved} 18.0.0-alpha.33
43+
```{versionremoved} Volto 18.0.0-alpha.33
4444
The setting `config.settings.serverConfig.extractScripts.errorPages` has been removed.
4545
```
4646

@@ -52,7 +52,7 @@ This setting is no longer necessary.
5252

5353
### New dependencies synchronizer
5454

55-
```{versionadded} 18.0.0-alpha.21
55+
```{versionadded} Volto 18.0.0-alpha.21
5656
```
5757

5858
```{versionadded} @plone/scripts 3.6.1
@@ -450,19 +450,28 @@ schema: {
450450
The `Tags` component has been moved to the `belowContent` slot.
451451
It now receives the `content` property instead of the `tags` property.
452452

453-
### CookiePlone is now the recommended project and add-on generator for Volto 18
454453

455-
```{versionadded} 18.0.0-alpha.43
454+
{upgrade-18-cookieplone-label}=
455+
456+
### Cookieplone is now the recommended project and add-on generator for Volto 18
457+
458+
```{versionadded} Volto 18.0.0-alpha.43
456459
```
457-
The recommended way for developing Volto projects will be using [Cookieplone](https://github.com/plone/cookieplone) as a boilerplate generator.
460+
461+
[Cookieplone](https://github.com/plone/cookieplone) is now the recommended way to develop Volto projects, using it as a boilerplate generator.
458462
Cookieplone uses the frontend code installed using `pnpm` instead of `yarn`.
459-
This affects the way that we generate the official Docker images, since they have to be compatible with the `pnpm` setup.
463+
This affects the way that the Plone Release Team generates the Sponsored OSS Docker images, since they must be compatible with the `pnpm` setup.
464+
465+
Since Volto `18.0.0-alpha.43`, the Docker image [`plone-frontend`](https://hub.docker.com/r/plone/plone-frontend) uses `pnpm`.
466+
467+
For developers that won't migrate their boilerplate and code to the new setup with `pnpm` instead of `yarn`, the Release Team will generate a new Docker image named `plone-frontend:18-yarn` for the Volto 18 series of alpha releases.
460468

461-
From Volto `18.0.0-alpha.43` the official `plone-frontend` Docker image will be the one using `pnpm`.
462-
During all the 18 series, a new image with the suffix `-yarn` (`plone-frontend:18-yarn`) will be generated as well for those of you that won't migrate your boilerplate and code to the new setup yet. When Volto 19 is out, we won't support it nor build it anymore.
469+
Support for `yarn` will be dropped in Volto 19.
463470

464-
```{deprecated} 18.0.0-alpha.43
465-
The `yarn`-based generator `@plone/generator-volto` package and project boilerplates generated with it are deprecated and will not receive any further updates. The recommended way of generating a project boilerplate is Cookieplone. Please update your code to the `pnpm` based setup.
471+
```{deprecated} Volto 18.0.0-alpha.43
472+
The `yarn`-based generator [`@plone/generator-volto`](https://www.npmjs.com/package/@plone/generator-volto) package and project boilerplates generated from it are deprecated and will not receive any further updates.
473+
The recommended way of generating a project boilerplate is [Cookieplone](https://github.com/plone/cookieplone).
474+
Please update your code to use the `pnpm` based setup.
466475
```
467476

468477
(volto-upgrade-guide-17.x.x)=
@@ -516,7 +525,7 @@ Upgrade your local dependencies in projects and add-ons by editing your {file}`p
516525

517526
### TypeScript support in Volto
518527

519-
```{versionadded} 17.0.0-alpha.27
528+
```{versionadded} Volto 17.0.0-alpha.27
520529
```
521530

522531
We added full support of TypeScript in Volto core.
@@ -619,7 +628,7 @@ make develop
619628

620629
### Upgrade ESlint and use `@babel/eslint-parser`
621630

622-
```{versionchanged} 17.0.0-alpha.27
631+
```{versionchanged} Volto 17.0.0-alpha.27
623632
```
624633

625634
ESlint uses a library to parse the language under analysis.
@@ -632,7 +641,7 @@ Once upgraded, run the linters again to make sure that your code is free of viol
632641

633642
Technically not a breaking, the API nor the component contract has changed, but it's worth noting this change in here.
634643

635-
```{versionadded} 17.0.0-alpha.1
644+
```{versionadded} Volto 17.0.0-alpha.1
636645
The `BlockChooser` component now uses `popperjs` library to position itself in the screen.
637646
It spawns at the end of the body instead of inner the block that called it.
638647
This is better from the UI point of view, since any other element can take precedence in the CSS element flow, preventing the block chooser to get overlapped by anything else.
@@ -690,7 +699,7 @@ Check the official [Cypress Migration Guide](https://docs.cypress.io/guides/refe
690699

691700
### New Image component
692701

693-
```{versionadded} 17.0.0-alpha.21
702+
```{versionadded} Volto 17.0.0-alpha.21
694703
A new image component has been added to core to render optimized images.
695704
It requires the latest version of `plone.restapi` (>=8.42.0) installed in the backend to work properly.
696705
```
@@ -742,11 +751,11 @@ From Volto 16.0.0-alpha.15 onwards, `volto-slate` is integrated into Volto core
742751
The previous text block `text` based on `draftJS` is now deprecated and is restricted (hidden) in Volto bootstrap.
743752
This is a major change and should be planned in advance before you install 16.0.0-alpha.15 or later.
744753

745-
```{versionadded} 16.0.0-alpha.15
754+
```{versionadded} Volto 16.0.0-alpha.15
746755
`volto-slate` added to Volto core as the default text block.
747756
```
748757

749-
```{deprecated} 16.0.0-alpha.15
758+
```{deprecated} Volto 16.0.0-alpha.15
750759
`text` text block based on `draftJS` is now deprecated and will be removed from core in Volto 18.
751760
```
752761

@@ -840,7 +849,7 @@ Version 16 is recommended.
840849

841850
### Upgraded to Razzle 4
842851

843-
```{versionadded} 16.0.0-alpha.38
852+
```{versionadded} Volto 16.0.0-alpha.38
844853
Volto has upgraded from Razzle 3 to Razzle 4.
845854
You should perform these steps in case you are upgrading to this version or above.
846855
```
@@ -1143,7 +1152,7 @@ It maintains signature compatibility with `registry.resolve`, but introduces new
11431152

11441153
See documentation for more information.
11451154

1146-
````{versionchanged} 16.0.0-alpha.23
1155+
````{versionchanged} Volto 16.0.0-alpha.23
11471156
The `component` argument changed in 16.0.0-alpha.23.
11481157
The `component` key has been flattened for simplification and now it's mapped directly to the `component` argument of `registerComponent`:
11491158

@@ -1222,7 +1231,7 @@ During the alpha stage, we received feedback and determined that it's too diffic
12221231
We decided it is best to deal with it as any other schema field and enhance it via schema enhancers.
12231232
This improves the developer experience, especially when dealing with variations that can provide their own styles and other schema fields.
12241233

1225-
```{deprecated} 16.0.0-alpha.46
1234+
```{deprecated} Volto 16.0.0-alpha.46
12261235
The options `enableStyling` and `stylesSchema` no longer work.
12271236
You need to provide them using your own block schema.
12281237
If you are extending an existing one, you should add it as a normal `schemaEnhancer` modification.
@@ -1239,7 +1248,7 @@ Since then, the add-on story has improved.
12391248
It now makes sense to extract this feature into its own add-on.
12401249
Integrate Sentry in your app with [`@plone-collective/volto-sentry`](https://www.npmjs.com/package/@plone-collective/volto-sentry).
12411250

1242-
```{versionchanged} 16.0.0.alpha.45
1251+
```{versionchanged} Volto 16.0.0.alpha.45
12431252
```
12441253

12451254
### Upgrade `husky` to latest version
@@ -1260,7 +1269,7 @@ You can copy over the Volto ones (take a look in Volto's `.husky` folder).
12601269

12611270
### Better defaults handling
12621271

1263-
````{versionadded} 16.0.0-alpha.51
1272+
````{versionadded} Volto 16.0.0-alpha.51
12641273
Prior to this version, we handled default values in schemas for blocks settings in a faulty and buggy manner.
12651274
The state inferred was not deterministic and depended on the fields with defaults present.
12661275
@@ -1376,7 +1385,7 @@ A new `@root` alias has been set up to replace the `~` alias.
13761385
Support for the `~` alias is still in place, but we now mark it as deprecated.
13771386
The use of `~` will be removed in Volto 16.
13781387

1379-
```{deprecated} 15.0
1388+
```{deprecated} Volto 15.0
13801389
```
13811390

13821391
## Upgrading to Volto 14.x.x
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Revised Cookieplone section in the Upgrade Guide. @stevepiercy

0 commit comments

Comments
 (0)