Version 4.0 release notes
· 2 min de lectura

Version 4.0 of Foal is out!
Description
The goals of this major release are to
- support the latest active versions of Node (18 and 20) and update all internal dependencies to their latest major versions
- facilitate framework maintenance.
Full details can be found here.
Migration guide
- Run
npx foal upgrade. - Version 16 of Node is not supported anymore. Upgrade to version 18 or version 20.
- Support of MariaDB has been dropped.
- If you use any of these dependencies, upgrade
typeormto v0.3.17,graphqlto v16,type-graphqlto v2,class-validatorto v0.14,mongodbto v5 and@socket.io/redis-adapterto v8. - If you use both TypeORM and
MongoDBStore, there is no need anymore to maintain two versions ofmongodb. You can use version 5 ofmongodbdependency. - If you use
@foal/socket.iowith redis, installsocket.io-adapter. - Support for
better-sqlitedriver has been dropped. Use thesqlite3driver instead. In DB configuration, usetype: 'sqlite'instead oftype: 'better-sqlite3'. - In your project dependencies, upgrade
@types/nodeto v18.11.9. - If you use TypeORM with MongoDB, for the entities definitions, rename
import { ObjectID } from 'typeorm';toimport { ObjectId } from 'typeorm';