github vaadin/flow 23.1.4
Vaadin Flow 23.1.4

2 years ago

Changes since 23.1.3

All changes

New features

  • Allow disabling validation status change listener registration on binder
    Commit · Pull request

    Add binder-level flag to allow disabling of validation status change listener registration for HasValidator fields. Related to #13940 (comment) and #13940 (comment)

Fixes

  • Handle theme files creation and deletion with Vite (#14260)
    Commit · Pull request · Issue

    Vite 'handleHotUpdate' hook is invoked only for file changes, not for creation nor deletion. This change adds a watcher as well for those events and triggers theme regeneration when theme file are added or deleted

  • Let Vite process theme also on theme.js changes (#14257)
    Commit · Pull request

    Flow theme plugin for Vite processes themes only on changes on files in active theme directory. This preventes regeneration with java live reload when changing value of Theme annotation. This change triggers theme processing also for updates on theme.js file.

  • Not show warning if no poll listener (#14236)
    Commit · Pull request

  • Handle duplicated root entries in manifest (#14237)
    Commit · Pull request

    Duplicated root entry in manifest happens when running application in development mode but after a frontend build. This change removes the entry potentially added by flow if compile-time manifest already added it

  • Support import without url keyword in theme generator (#14234)
    Commit · Pull request

    With Vite it may happend that '@import url(...)' in CSS are rewritten as '@import ...', that is a valid CSS statement. Currently the theme generator does not handle the case and this prevents the resource to be added to the head section. A warning is also logged on browser console, stating import rules not allowed when creating stylesheets. This change updates the importMatcher regex to handle @import without url

  • Provide correct devMode flag to theme-generator with Vite (#14230)
    Commit · Pull request · Issue

    devMode flag was hard-coded to false in theme options, preventing the theme generator plugin to work correctly when styles.css does not exist

  • Build the service worker without writing it to FS (#14182)
    Commit · Pull request · Issues 13123, 14022, 14146

    Prevents restart of application during startup. (cherry picked from commit d391029)

  • Make Vite work with custom frontend directory (#14152) (CP: 23.1)
    Commit · Pull request · Issues 14046, 14102

    Also rewrite theme css to resolve urls for assets defined in theme.json

  • Fix ServiceWorker path requests in dev mode (#14151)
    Commit · Pull request · Issue

  • Let DataCommunicator#flush keep track of which StateTree is supposed to execute its flushRequest (#14068)
    Commit · Pull request

    DataCommunicator#flush can be stuck when moving between UI instances, for instance when the @PreserveOnRefresh annotation is present.

  • Always generate themes in frontend 'generated' directory subfolder (#14144) (CP: 23.1)
    Commit · Pull request · Issue

    Forces generated themes files to be stored in 'generated' folder under frontend directory, instead of using the 'generatedTsFolder' setting. Also fixes relative paths assuming frontend directory to be './frontend', and maven and gradle plugins to clean the 'frontendDirectory/generated' folder.

Don't miss a new flow release

NewReleases is sending notifications on new releases.