This guide will take you step by step through the upgrade to version 2. If something is missing or incorrect, feel free to submit an issue or a PR on Github.
|Node versions||TS min version|
|10.x, 12.x, 14.x||4.0|
Upgrade your versions of TypeScript and Node.JS if necessary.
If you get unexpected errors when building the application, please check the following points:
- You have updated all your
- You have updated your
typescriptdependency to version 4.
- The following objects and functions have been removed:
legacyoption has been removed from
verifyPassword. If you used it, please submit an issue.
- The command
foal g sub-apphas been removed.
- The functions
createControllerdo not accept a
ServiceManageras second argument.
@Hookdecorator only accepts one function.
- The type
ExpressApplication = anyhas been removed.
- The property
req.foal.ctxdoes not exist anymore in post middlewares.