FlowFuse / flowfuse

Build bespoke, flexible, and resilient manufacturing low-code applications with FlowFuse and Node-RED
https://flowfuse.com
Other
263 stars 63 forks source link

FastifyWarning: mixes async and callback styles, which will result in an error in `fastify@5` #3259

Closed knolleary closed 7 months ago

knolleary commented 8 months ago

Description

We have some newly generated fastify warnings to resolve:

(node:1) [FSTWRN002] FastifyWarning: The app.comms plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:1) [FSTWRN002] FastifyWarning: The app.postoffice plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:1) [FSTWRN002] FastifyWarning: The app.routes.auth.permissions plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:1) [FSTWRN002] FastifyWarning: The app.routes.auth plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:1) [FSTWRN002] FastifyWarning: The app.routes.api-docs plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:1) [FSTWRN002] FastifyWarning: The app.routes plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:1) [FSTWRN002] FastifyWarning: The app.housekeeper plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:1) [FSTWRN002] FastifyWarning: The app.auditLog plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`

Epic/Story

No response

Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Pezmc commented 7 months ago
Pezmc commented 7 months ago

Further warnings:

(node:5764) [FSTWRN002] FastifyWarning: The app.config plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The app.db plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The app.settings plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The app.licensing plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The app.containers plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The app.ee plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The /Users/pezcuckow/Git/flowforge-dev-env/packages/flowforge/forge/ee/routes/mfa/index.js plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The app.ee.routes.sso plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The app.ee.routes.sso.auth plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
(node:5764) [FSTWRN002] FastifyWarning: The app.ee.lib plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`
Steve-Mcl commented 7 months ago

Verified locally only

hardillb commented 7 months ago

Verified on staging