[x] Drop support of Node 16 and and add support for Node 20 #1220
[x] Drop support for the better-sqlite3 library #1220
[x] Upgrade db dependencies #1225
[x] Drop support of MariaDB #1226
[x] Upgrade dependencies #1227 #1228
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 typeorm to v0.3.17, graphql to v16, type-graphql to v2, class-validator to v0.14, mongodb to v5 and @socket.io/redis-adapter to v8.
If you use both TypeORM and MongoDBStore, there is no need anymore to maintain two versions of mongodb. You can use version 5 of mongodb dependency.
If you use @foal/socket.io with redis, install socket.io-adapter.
Support for better-sqlite driver has been dropped. Use the sqlite3 driver instead. In DB configuration, use type: 'sqlite' instead of type: 'better-sqlite3'.
In your project dependencies, upgrade @types/node to v18.11.9.
If you use TypeORM with MongoDB, for the entities definitions, rename import { ObjectID } from 'typeorm'; to import { ObjectId } from 'typeorm';
Overview and goals
1223
Implementation
better-sqlite3
library #1220Migration guide
npx foal upgrade
.typeorm
to v0.3.17,graphql
to v16,type-graphql
to v2,class-validator
to v0.14,mongodb
to v5 and@socket.io/redis-adapter
to v8.MongoDBStore
, there is no need anymore to maintain two versions ofmongodb
. You can use version 5 ofmongodb
dependency.@foal/socket.io
with redis, installsocket.io-adapter
.better-sqlite
driver has been dropped. Use thesqlite3
driver instead. In DB configuration, usetype: 'sqlite'
instead oftype: 'better-sqlite3'
.@types/node
to v18.11.9.import { ObjectID } from 'typeorm';
toimport { ObjectId } from 'typeorm';
Dependencies
@foal/aws-s3
@aws-sdk/client-s3@3.405.0
@aws-sdk/lib-storage@3.405.0
@foal/cli
commander@11.0
@foal/graphiql
graphiql@3.0
@foal/graphql
graphql@10.3
graphql@^16.8
(peer dependency)@foal/jwks-rsa
jwks-rsa@3.0
@foal/mongodb
mongodb@5.8
@foal/redis
redis@4.6
@foal/socket.io
socket.io@4.7
@foal/swagger
swagger-ui-dist@5.4
@foal/typeorm
typeorm@0.3.17
(peer dependency)mongodb@5.8
(dev dependency / driver)pg@8.11
(dev dependency / driver)@foal/typestack
class-validator@0.14
(peer dependency)