Loïc Poullain

Version 2.5 of Foal has been released! Here are the improvements that it brings.

"npm run develop" watches config files

In previous versions of Foal, the develop command did not restart the server when a configuration file was changed. This was annoying and is the reason why, starting with v2.5, new projects generated by the CLI will watch configuration files.

"createOpenApiDocument" accepts an optional serviceManager

If you use createOpenApiDocument, in a shell script for example, the function accepts an optional serviceManager parameter from this version.

This can be useful if your OpenAPI decorators access controller properties whose values are manually injected.

You can find the complete release notes of this version here: https://foalts.org/blog/2021/06/11/version-2.5-release-notes

--

--

Version 2.3 of Foal has been released! On the agenda: Prisma documentation, GraphiQL, .env.local files and authentication improvements.

In a few words, Foal is a Node.JS framework for building web applications with:
- an elegant and straightforward code (no over-engineering),
- many features out-of-the-box (validation, CLI, ORM, Swagger generation, stateful and stateless for both SPA and SSR, AWS S3 integration, etc),
- and the support of TypeScript.

You can find the release notes of this version here: https://foalts.org/blog/2021/04/22/version-2.3-release-notes

--

--

This article presents the improvements to the session system in FoalTS version 2.

The new syntax can be used either with cookies or with the Authorization header. It adds the following new features:

  • query all sessions of a given user
  • query all connected users
  • force logout of a specific user
  • flash sessions
  • session ID regeneration
  • anonymous and authenticated sessions

FoalTS also simplifies stateful CSRF protection so that all it takes is one setting to enable it.

Link to the article: https://foalts.org/blog/2021/04/08/whats-new-in-version-2-part-4

--

--

Loïc Poullain

Loïc Poullain

Creator of FoalTS — Node.js framework ❤️ . Software Engineer at Indy (https://indy.fr 🇫🇷, https://freely.tax 🇺🇸).