37

A few features and a lot of fixes to plugins - Javalin - A lightweight Java and...

 4 years ago
source link: https://javalin.io/news/2019/09/15/javalin-3.5.0-released.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Javalin 3.5.0 released

A few features and a lot of fixes to plugins (Sep 15, 2019)
What's Javalin? Javalin is a very lightweight Java and Kotlin web framework which focuses on simplicity and Java/Kotlin interoperability. Read more on our landing page.

First - Thanks for contributing!

This release consists mainly of code contributed by the Javalin community. Some features were written by the core team, but the majority were not. Each community contribution is tagged with who contributed it. Thank to everyone for taking part in the community and helping to make Javalin a better project!

Core improvements

  • The wsServlet is now publicly available on Javalin (thanks to @MrRamych).
  • Validation and casting is now available for headers: ctx.header<Int>("my-header") (thanks to @Peroniada).
  • The ctx.basicAuthCredentials() method now either returns valid credentials, or throws.
  • Misc dependencies have been bumped (thanks to @mpe85).

OpenAPI improvements

  • Default documentation are now applied first (thanks to @TobiasWalle).
  • Warnings are now logged in case of path mismatches (thanks to @TobiasWalle).
  • Fixed some reflection issues with extended classes (thanks to @TobiasWalle).
  • Fixed security scheme (thanks to @maxemann96).
  • Fixed bug with Swagger UI and ReDoc now being handled correctly by AccessManager.
  • Removed CorsPlugin paths from docs (thanks to @maxemann96).
  • Improved default responses (thanks to @maxemann96).
  • Added option to ignore certain paths and path-groups (thanks to @maxemann96).

JavalinVue improvements

  • You can now set the vue directory (thanks to @jorunfa).
  • You can now use a tag shorthands. VueComponent("my-tag") instead of VueComponent("<my-tag></my-tag>").
  • The plugin will now crash on unknown components (catches typos).
  • Files on localhost are now properly closed after being read (thanks to @jorunfa).

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK