Skip to content

@delvedor delvedor released this Feb 25, 2019

Official announcement: https://medium.com/@fastifyjs/8275d613fba4

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

Features:

  • Support custom route versioning strategies - #1422
  • Protect against prototype poisoning - #1427
  • feat: Added preSerialization hook and route option. - #1408
  • Added preParsing hook. - #1377
  • PR to fix issue #1269 - add plain text parser to core - #1280

Enhancements:

  • Update default ajv instance to include all errors (breaking change) - #1398
  • Set log level to warn for all sendStream errors - #1415
  • log "premature close" stream errors as warnings - #1407
  • Add plugin name in case of dependency error - #1371
  • move ECONNRESET log from error to debug - #1363
  • Fix #1334 - #1348
  • Throw error for improper node js version using http2 - #1346

Fixes:

  • Allow override of the default content-type parser inside a plugin - #1435
  • fix: json schema $ref with $id set in definitions - #1425
  • Drop @types/pino from dependencies - #1366
  • Fix setting multiple cookies as multiple 'Set-Cookie' headers. (fix #1358) - #1359
  • fix: #1353 ignore evaluation of $schema field in json-schema - #1354
  • Establish reply.sent = true as a proper way to skip async/await handling - #1336
  • Handle response validation error - #1328

TypeScript:

  • Improve typings with an overload for the close() method, which returns a promise - #1404
  • fix(types): add missing Reply functions - #1299
  • feat(types): add custom error type - #1250
  • fix: add querystringParser to ServerOptions - #1285

Documentation:

  • Fixed typos - #1431
  • fix document of handle validation error - #1430
  • Update copyright year to 2019 - #1362
  • fastify-react->fastify-nextjs - #1382
  • docs(ecosystem): add fastify-gql - #1343
  • Update Hooks.md - #1337
  • Fix #1278 - #1301
  • doc: add links to Errors.md - #1326
  • doc: remove res.end from middleware page - #1327
  • Add express middleware compatibility notice - #1313
  • Update Server.md - #1322
  • Rename Errros.md to Errors.md - #1323
  • docs(decorators): fix "view" typos - #1309
  • Added fastify-sentry to Community Plugins - #1287
  • Update Logging.md - #1292
  • Update benchmarks to reflect latest measurements - #1294
  • Update Hooks.md - #1291
  • Add fastify-cockroachdb to Community plugins - #1286
  • add fastify-healthcheck to comunity plugins - #1244
Assets 2
You can’t perform that action at this time.