Version 2.1 release notes
Loïc Poullain
Fullstack developper and creator of FoalTSVersion 2.1 has been released! Here are the improvements that it brings.
#
New Error Page DesignWhen an error is thrown or rejected in development, the server returns an error page with some debugging details. The UI of this page has been improved and it now provides more information.
#
New Welcome PageWhen creating a new project, the generated welcome page is also different.
#
CLI exits with code 1 when a command failsThis small improvement is useful when we want to stop a CI pipeline when one of its commands fails.
@All
decorator#
New This decorator handles all requests regardless of the HTTP verb (GET, POST, etc.).
It can be used for example to create a not found
handler.
@UseSessions
and @JWT
#
New CSRF option in This option allows you to override the behavior of the configuration specified globally with the key settings.session.csrf.enabled
or the key settings.jwt.csrf.enabled
.
It can be useful for example to disable the CSRF protection on a specific route.
better-sqlite3
#
Support of When using Foal with SQLite, you now have the choice between two drivers: sqlite3
and better-sqlite3
. The package better-sqlite3
is used by default in new projects starting from this version on.
Stay up to date with the newsletter.