github vaadin/flow 24.1.0.alpha2
Vaadin Flow 24.1.0.alpha2

latest releases: 23.5.5, 24.5.0.alpha20, 24.5.0.beta1...
pre-release17 months ago

Changes since 24.1.0.alpha1

All changes

Breaking changes

New features

  • Enable Vite HMR for theme styles
    Commit · Pull request

    At the moment only works when you do not inject the theme into shadow roots When changing component themes, a full reload is always needed because of how the theme injection is implemented in the components

  • Add LocalDateTimeToInstantConverter (#16415)
    Commit · Pull request

    Adding LocalDateTimeToInstantConverter: There already is a LocalDateTimeToDateConverter but Instant is a newer, better replacement. Since your Converter already relies on Instant to calculate the Date I would appreciate it, if Instant is also supported. Tests and proper formatting were also added.

  • Load theme using Vite
    Commit · Pull request

    This changes theme loading so that theme CSS files are imported using import 'theme/mytheme/styles.css'; Using this instead of import someCss from 'theme/mytheme/styles.css?inline'; // inject the css somehow into the DOM allows the default hot replace functionality of Vite to be used. Note that a followup PR is still needed to actually enable hot replace because the styles are still also loaded for shadow root injection, which currently prevents hot replace from being used. In production mode, Vite will now bundle the theme styles.css and put it in VAADIN/build/indexcss-something.css, which means that URLs that refer to files in src/main/webapp or similar need to be rewritten to use ../.. which cancel out VAADIN/build. Paths inside packaged themes also need to be rewritten the same way

Fixes

  • Update some old/stale documentations.
    Commit · Pull request

  • Fix invalid link in comment
    Commit · Pull request · Issue

  • Client bootstrap should send navigationTrigger
    Commit · Pull request · Issue

    When using client side bootstrapping we should send info on what the navigation trigger was so that we can give the correct info on the server and not only CLIENT_SIDE.

  • Assemble partial websocket messages from Vite
    Commit · Pull request

    This can happen if Vite sends a lot of messages during a short period of time

  • Reload theme in dev bundle mode when running on Jetty
    Commit · Pull request

    Jetty does not send live reload events automatically, but this should not prevent handling reload events from the server. They need to be handled if you modify the theme in dev bundle mode.

  • Import all document styles using style tags
    Commit · Pull request · Issue

    Maintains the expected override order in all cases. Can also be extended to support hot reload more easily

  • Decode project folder when using classpath
    Commit · Pull request · Issue

  • Allow access to /favicon even when the vaadin mapping is /something
    Commit · Pull request · Issue

    Allow accessing the error page in security tests so that the 404 is sent to the browser

Don't miss a new flow release

NewReleases is sending notifications on new releases.