Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.0.0 #1222

Merged
merged 38 commits into from
Sep 6, 2023
Merged

v4.0.0 #1222

merged 38 commits into from
Sep 6, 2023

Conversation

LoicPoullain
Copy link
Member

@LoicPoullain LoicPoullain commented Sep 2, 2023

Overview and goals

#1223

Implementation

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';

Dependencies

@LoicPoullain LoicPoullain added the v4 label Sep 2, 2023
@LoicPoullain LoicPoullain mentioned this pull request Sep 6, 2023
@LoicPoullain LoicPoullain merged commit 4f7f032 into master Sep 6, 2023
4 checks passed
@LoicPoullain LoicPoullain deleted the v4-0-0 branch September 6, 2023 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant