github vaadin/flow 2.7.0
Vaadin Flow 2.7.0

latest releases: 24.4.4, 24.5.0.alpha6, 24.5.0.alpha5...
2 years ago

Vaadin Flow 2.7.0

Flow 2.7 is a minor release for Vaadin 14.7.

New Features

  • Add target enums for Anchor (#8346). PR:8397

  • Extract validation error handler from Binder (#11384). PR:11415

    Part of #10598, replacement for #10683

  • 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.

  • Implement Component::isAttached() (#7911). PR:11601

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 to frontend/generated/ folder and renamed to theme.js. Thus, if you use TypeScript views in your project and apply the custom theme by calling to applyTheme(), please change the import to be pointed to generated/theme instead of themes/theme-generated.js.

    The example shown below imports applyTheme into frontend/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:11521

    Deprecated 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. Use BoostrapListener instead, which provides API for modifying the bootstrap page and access to the UI, which provides further replacement API like UI#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 how HttpServletRequest works: For a query string ?foo&bar a list containing "" is returned for both foo and bar whereas the existing implementation returned empty lists.

Changes in Flow from 2.7.0.rc1

  • Fixes:

    • Keep track of CSS injected to document (#11635). PR:11673. Ticket:11608

      Stops CSS/fonts from being loaded multiple times to the document with embedded applications.

  • ⧉ All changes

Don't miss a new flow release

NewReleases is sending notifications on new releases.