Changes since 24.1.0.alpha1
Breaking changes
-
Upgrade to TypeScript 5.0.2
Commit · Pull request
New features
-
Enable Vite HMR for theme styles
Commit · Pull requestAt 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 requestAdding 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 requestThis changes theme loading so that theme CSS files are imported using
import 'theme/mytheme/styles.css';
Using this instead ofimport 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 themestyles.css
and put it inVAADIN/build/indexcss-something.css
, which means that URLs that refer to files insrc/main/webapp
or similar need to be rewritten to use../..
which cancel outVAADIN/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 · IssueWhen 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 requestThis 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 requestJetty 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 · IssueMaintains 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 · IssueAllow accessing the error page in security tests so that the 404 is sent to the browser