The Vaadin improvement workforce has launched model 20 of the framework for internet purposes with Java and TypeScript. The replace offers a number of new features, together with official help for the Gradle plug-in, a set of recent messages elements and built-in helpers for Spring Safety authentication.
Maven and Gradle now on an equal footing
Along with the widespread Java construct software Maven, Vaadin builders are actually additionally formally in a position to make use of the plug-in for Gradle with its full vary of features. Help contains guarantee and automatic integration checks. The Gradle plug-in makes use of the identical features and terminology as Maven, so Vaadin purposes can run with the identical construct targets.
Plenty of new messages elements open up new software prospects for builders by way of the collaboration engine. So can with
CollaborationMessageInput for instance, implement a chat operate for customers inside a Vaadin internet software.
Person userEntity = userService.getCurrentUser(); UserInfo userInfo = new UserInfo(userEntity.getId(), userEntity.getName(), userEntity.getImageUrl()); String topicId = "normal"; CollaborationMessageList messageList = new CollaborationMessageList( userInfo, topicId); CollaborationMessageInput messageInput = new CollaborationMessageInput( messageList);
Following on from the improvements in Vaadin 19, all elements now supply help for TypeScript kind definitions. When utilizing elements in TS code, the IDE offers auto-complete choices for obtainable occasions and TypeScript varieties. As well as, the TypeScript compiler mechanically ensures that the proper varieties are used when accessing occasion particulars in occasion handlers.
Whereas Vaadin 19 will obtain help for one more month, the event workforce recommends switching to the brand new model. Those that want long-term help ought to, nonetheless, proceed to take action LTS release version 14 use. Supplies a complete overview of all the brand new options in Vaadin 20 the blog post about the publication of the release. Additional particulars will be discovered in the release notes on GitHub.