Vaadin Flow 7.0.0
Vaadin Flow 7.0 is a major release of the Flow & Fusion frameworks targeted to Vaadin 20. To try it out, use the latest 20 release available from Maven central.
New Features in Flow 7.0
Official Gradle Plugin for Vaadin
Due to a build issue, the artifact that the Gradle plugin is based on is broken in 7.0.0 - but 7.0.1 is on the way.
Gradle plugin is now build together with Flow and shipped in Vaadin 20. See documentation for getting started with Gradle.
Other Improvements
- Add getters for used
Unit
toHasSize
- Enable fetching browser URL to server side Java via
Page::fetchCurrentUrl
- Allow spaces in
addClassNames
arguments array - Add API to control whether
Binder
converts back to presentation (forward port from Vaadin 8 vaadin/framework#12246) - Allow creation of
Text
andElement
from nullable text content - Add support for parsing query string in
QueryParameters
- Implement
HasStyle
inLitTemplate
so you can add class names to the root element
Breaking Changes in 7.0
-
⧉ Move access checker and @AnonymousAllowed to flow-server. PR:10758
-
⧉ 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. This is a prerequisite for #10431 -
⧉ Remove theme modules from Flow. PR:10220
As the theme modules are removed from
flow-bom
and stop following the flow versioning, this is considered a breaking change. Remove the Lumo and Material theme modules from Flow project to have them in the components project instead. Create a test module with Lumo class used for testing in modules requiring the default theme (Lumo). Closes #10182 -
⧉ Mark
AbstractSinglePropertyField
class asabstract
. PR:9872 -
CSS files matching the pattern
*.global.css
can NOT be imported into a variable in a TypeScript view. This is a limitation related to the global CSS loader feature mentioned below, but this has already been reverted and will not be a limitation in the next pre-release anymore.
Changes in Flow from 7.0.0.rc1
-
Fixes:
-
⧉ Prevent passing bad character to wp (#11099). PR:11113
The webpack dev-server does not escape " character, as it is not valid URL. This limitation was not checked when passing request to it via DevModeHandlerImpl.
-
⧉ Don't serve directories as static files (#11072). PR:11103
Add check to the resource to see if it is a directory and do not serve if this is the case. Fixes #11047
-
⧉ Avoid NPE in query params parsing (#11075). PR:11094. Ticket:11019
A colon ":" in the location will not cause a NPE when parsing query parameters
-
⧉ Annotate default error handlers. (#11063). PR:11090
Annotate default error handlers with the new annotaton DefaultErrorHandler so that we can also in add-ons have default handlers that can be overridden by user handlers. Part of vaadin/spring#661 # Conflicts: # flow-server/src/main/java/com/vaadin/flow/router/InternalServerError.java # flow-server/src/main/java/com/vaadin/flow/router/RouteNotFoundError.java