Vaadin Flow 2.7.0
Vaadin Flow 2.7.0
Flow 2.7 is a minor release for Vaadin 14.7.
New Features
-
⧉ Extract validation error handler from Binder (#11384). PR:11415
-
⧉ Implement HasStyle in LitTemplate so you can add class names to the root element (#10903). PR:11017
Makes it possible to use addClassName("hello") in the constructor. Class for the custom element cannot be added in the template.
Breaking Changes
-
⧉ Move generated theme files to frontend/generated. PR:11370.
In order to make it easy for users to manage their reusable themes and align the file handling in newer Vaadin versions, we have moved generated theme files to
frontend/generated
.Autogenerated
theme-generated.js
file has been moved tofrontend/generated/
folder and renamed totheme.js
. Thus, if you use TypeScript views in your project and apply the custom theme by calling toapplyTheme()
, please change the import to be pointed togenerated/theme
instead ofthemes/theme-generated.js
.The example shown below imports
applyTheme
intofrontend/views/some-view/my-view.ts
:
import { applyTheme } from '../../generated/theme';
instead of
import { applyTheme } from 'themes/theme-generated.js';
-
⧉ Deperecate
PageConfigurator
since it has broken design. PR:11521Deprecated due to multiple issues on the feature design, like it won't work together with the
PreserveOnRefresh
annotation. Will not be removed until after the next long term support version. UseBoostrapListener
instead, which provides API for modifying the bootstrap page and access to theUI
, which provides further replacement API likeUI#getLoadingIndicatorConfiguration()
.AppShellConfigurator
is the replacement since Flow 3+ (Vaadin 15+) -
⧉ Add support for parsing query string in QueryParameters. PR:10521.
A minor API behavior change:
Location:getQueryParameters
is unified with howHttpServletRequest
works: For a query string?foo&bar
a list containing""
is returned for bothfoo
andbar
whereas the existing implementation returned empty lists.
Changes in Flow from 2.7.0.rc1
-
Fixes: