The main focus of this release is on building a foundation for developers to work on based on the growth of Vapor and server-side Swift over the past two years.
The release is updated across four major categories.
Vapor 3 offers a couple of new packages this release. Most notable are the MySQL and PostgreSQL packages which are now non-blocking and built on SwiftNIO. Some of these packages include:
A complete list of packages is available in the vapor documentation.
A large part of the release focuses on better documentation. Subsequently, Vapor 3 improves API docs with 100% docblock coverage including:
Also, the main docs are moving more toward a guide / tutorial feel. These guide docs cover broad use cases and practices, in contrast to the API docs which heavily focus on particular methods and protocols.
Vapor’s official team chat is now moved to Discord. The team has also announced two books (Server Side Swift with Vapor and Server-side Swift (Vapor Edition)) written specifically for Vapor 3.
Vapor 3 introduces certain benchmarks for this release available on GitHub. The benchmarks were run on two identical Digital Ocean droplets. One for hosting the frameworks and one for running the benchmark. The benchmarker program is a small script written in Swift that runs wrk and captures the results. It is capable of doing multiple runs and averaging the results. Vapor achieved state-of-the-art results on both the plaintext benchmarks.
To know further updates and other minor changes, be sure to Check out the updated website.
Your First Swift Program [tutorial]
Swift for TensorFlow is now open source [news]
RxSwift Part 1: Where to Start? Beginning with Hot and Cold Observables [tutorial]