Changes since 25.1.0-beta3
New features
-
BuildFrontend Incremental build (#23884)
Commit · Pull requestAdd incremental build to the buildFrontend task. Closes #17354
-
Retain local signal values during hotswap (#23854)
Commit · Pull request · IssueAutomatically transfer local signal values from old view fields to matching fields in the new view during hotswap refresh.
-
Add local web components plugin to vite.generated.ts (#23793)
Commit · Pull requestAuto-detects a web-components/node_modules directory in the project root and redirects @polymer/* and @vaadin/* imports to it in dev mode. A custom folder can be specified through vite.config.ts using the overrideVaadinConfig mechanism.
Fixes
-
Use targeted item refresh when signal-bound item value changes (#23913)
Commit · Pull request · Issue- Add a two-argument
refreshItem(T newItem, T oldItem)overload toDataProvider,DataView, and related classes, enabling targeted refresh when an item's identity changes (e.g., signal-bound items replaced with new instances) -DataRefreshEventnow carries an optional old item reference viagetOldItem(), allowingDataCommunicatorandKeyMapperto remap from the old identity to the new one instead of failing to find the item -HierarchicalDataCommunicatorthrowsUnsupportedOperationExceptionfor identity-changing refreshes, deferring TreeGridbindItemssupport to a future change
- Add a two-argument
-
Move thread start out of DevServerWatchDog constructor (#23898)
Commit · Pull requestStarting a thread in a constructor can expose a partially constructed object. Extract the thread start into a separate start() method that callers invoke after construction completes.
-
Use String type for Style.bind return value (#23888)
Commit · Pull requestChange
Style.bind(String, Signal<String>)return type fromSignalBinding<?>toSignalBinding<String>since the method always accepts aSignal<String>and we always know the value type is String. This provides better type safety and eliminates the need for casts when using the binding'sonChangecallbacks. -
Route with context path name (#23836)
Commit · Pull request · Issuethe same start as the context path from clearing context path out from the url when using react router.