19.0.0-alpha.1
Pre-release19.0.0-alpha.1 (2025-05-16)
Feature
-
Volto core has migrated from Jest to Vitest as its unit test runner. @Abhishek-17h #6326
-
Refactor the UniversalLink component using typescript.
Use union types for deciding between href or item.
Modify tsconfig, include types located intypesfolder, otherwise d.ts files will noch be recognized in .tsx files, e.g. inside components. I need this for thereact-router-hash-linkpackage, that we use in the UniversalLink component. The specific file is/types/react-router-hash-link.d.ts.
Modify lint-staged.config.js to exclude d.ts files.
Use newest version of classnames (with types).
Create tests and negative tests for optimization with React.memo (add render counter for testing this behavior) -
ConditionalLinkin TypeScript. @sneridagh #6959 -
Allow
object_listwidget to receive aschemaNameprop, mapped to an utility. @sneridagh #7007 -
Added current evaluated
querystringas a parameter in expander'squerystringkey when it's a function. @sneridagh #7012 -
Move
MaybeWrapto TypeScript. @sneridagh #7029 -
Rename
vitest.config.tstovitest.config.mjsfor allowing it to be loaded from add-ons. @sneridagh #7035 -
Added
containedclass ifisContainerprop is passed (from containers). @sneridagh #7043 -
The
Addcomponent can now optionally receiveinitialFormDatafrom theCreateTranslationcomponent. This makes it possible for a customCreateTranslationimplementation to fully control the initial translation. @Tishasoumya-02 #7073
Bugfix
- Fixed broken tests in add-ons in Volto 18.12.0. @Abhishek-17h #6989
- Add support for both Vitest and Jest in
__mocks__folders of Volto core. Add-on tests using Jest relies on them. @Abhishek-17h #7000 - Added missing dependency for
sgvo. Fixedsvgolibrary loading in./vite-plugins/svg.js. @sneridagh #7035 - Rename
./vite-plugins/svg.jsto proper extensionvite-plugins/svg.mjs. @sneridagh #7035 - Fixed stuck states in the Image Upload Widget by resetting uploading after failed size validation and dragging after image deletion or drag events, ensuring proper functionality and user feedback. #7045
- Improve typings in ConditionalLink component, add TS tests to catch the bad typings. @sneridagh #7057
Internal
- Fixed types of #6826 in build:types. @sneridagh
Documentation
- Pin plone-sphinx-theme to prepare for PLIP 4097. See plone/Products.CMFPlone#4097. @stevepiercy #7015
- Corrected Redux-related docs.
Better word wrapping in Redux-related docs.
Added link to Redux development add-on for Firefox.
@silviubogan #7023 - Updated documentation code example from Jest to Vitest in the "Bundle size optimization" chapter. @Abhishek-17h #7024
- Add version added admonition to Upgrade Guide for migrating grid blocks, and link from Upgrade Guide to Grid Block documentation. @ionlizarazu #7027