Welcome Fastify v2 🚀
https://medium.com/@fastifyjs/fastify-v2-is-coming-to-town-ce279738bed6
Breaking changes
- Added onError hook - #1236
- Move all _ prefixed properties to Symbols in next - #1237 #1128
- Plugins can now receive both /prefix and prefix/ - #1228
- Default error handler that logs the error - #1135
- Ensure Reply#serialize uses custom serializer - #1163
- Better error management - #1168
- Bumped avvio to 6.0.0. - #1201
- Added preValidation hook - #1153
- Change basePath to prefix - #1183
- Separate logging and reqId options - #1164 #1166
- Pino v5 - #1065
- Updated Not found handling - #1084
- Hooks: always use Fastify core objects - #1066
- Remove
req.id
in serializer - #1032 - Extended support of cross-platform builds and yarn official support - #1226