github vaadin/flow 2.8.0
Vaadin Flow 2.8.0

latest releases: 24.5.0.beta4, 23.5.6, 24.3.18...
23 months ago

Changes since 2.7.23

All changes

New features

  • Automatically use available converters in Binder
    Commit · Pull request

    Backporting #13373 When binding a field and a property which do not have the same value type an exception is thrown. With this change, an attempt is made to automatically pick a suitable converter from the ones provided by the framework.

  • HasLabel backporting to v14
    Commit · Pull request

  • Support Object type keys in Component#getTranslation
    Commit · Pull request · Issue

  • Add support for @eventdata of type Component
    Commit · Pull request

    Makes it possible to use event data expressions that map to any Component / Element from server side state tree. For example it will be possible to use: - @EventData("event.target") Component eventTarget for @DomEvent - @EventData("event.target") Element eventTarget for @DomEvent - DomEventRegistration::addEventDataElement(String expression) to get any element mapped, - and fetch it with `DomEvent::getEventDataElement(String expression) Follow up for #11992, #3356

  • Introduce event.target element to DOM event
    Commit · Pull request

    Makes is possible to obtain the Element instance on the server side that corresponds to event.target for a DOM event. The mapping needs to be explicitly enabled with DomListenerRegistration.mapEventTargetElement() for it to work. Next steps would be to introduce an API to certain component events that leverage the API, or generalizing the API so that one could give out an JS string that would be mapped instead of event.target. Closes #3356

  • License checker in Java instead of browser
    Commit · Pull request · Issue

    For development mode:
    - Checks the license from the Java side to avoid cookies
    - Replaces commercial components with a login/validation link if the subscription could not be validated
    For production mode:
    - Requires a license during a production build for commercial components
    - Removes commercial components from the fallback bundle if there is no license
    - Speeds up production build for free users as charts/maps/... are not compiled in the fallback bundle

    Note that this feature is available only in npm mode and if dev mode tools are enabled (dev server and live-reload). Otherwise, the old license checking mechanism is used.

    (cherry picked from commit d21f695)

  • Always set the strict offline flag and do not rely on default value
    Commit · Pull request

    Provides a way to use license checker when working offline, i.e. without internet connection, using license checker offline keys.
    Note that this feature is available only in npm mode and if dev mode tools are enabled (dev server and live-reload). Otherwise, the old license checking mechanism is used.

    (cherry picked from commit 1d19a7d)

  • Check license also for jars with cvdlName
    Commit · Pull request

    Cherry picked from commit 3005b87

  • Show version info in debug window
    Commit · Pull request

    Show version info in debug window and allow copying it to clipboard. (cherry picked from commit 5cb2290)

  • Move new license checker feature behind config parameter
    Commit · Pull request · Issue

    One can fallback to the old license checking mechanism with setting vaadin.oldLicenseChecker=true config parameter in application.properties or by system property.

Fixes

  • Make linking to packages in the file system work
    Commit · Pull request

    this is a cherry-pick based on #12424. as instructed by #12424 (comment)

  • Do not rely on web components calling the license checker
    Commit · Pull request

    (cherry picked from commit 60a8728)

  • Return platform version as string
    Commit · Pull request

    toJson method led to the extra quotes in the string, thus use asString instead.

  • Override connectedCallback in customElements.define
    Commit · Pull request

    This is needed for the override to take effect, at least in Chrome
    (cherry picked from commit f298ede)

Don't miss a new flow release

NewReleases is sending notifications on new releases.