jkyberneees / fastify-gateway

A Node.js API gateway that just works!
https://www.npmjs.com/package/k-fastify-gateway
MIT License
108 stars 14 forks source link

Update fastify to the latest version 🚀 #14

Closed greenkeeper[bot] closed 5 years ago

greenkeeper[bot] commented 5 years ago

The devDependency fastify was updated from 1.14.2 to 2.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Release Notes for v2.0.0

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
Commits

The new version differs by 137 commits ahead by 137, behind by 30.

  • dbcf234 Bumped v2.0.0
  • 07504c6 Add self to package.json (#1474)
  • 8202890 Docs/Add standard json schema examples (#1355)
  • a27850d Fix/add schema to validator (#1446)
  • 4c03dda Add onboarding section to CONTRIBUTING document (#1469)
  • 37dde53 test: cover issue #1456 (#1470)
  • a00972b Less flakyness maybe (#1468)
  • 7391bee Add email for cemremengu (#1467)
  • dd9259b maybe fixed flaky test (#1466)
  • dc9ca9c fixed flaky http2 closing test (#1464)
  • fa2b5d8 Fix HTTP/2 request while closing (#1461)
  • 2ddae34 Exclude tap-mocha-reporter from greenkeeper (#1460)
  • 1313bea Added link to fastify-google-cloud-storage plugin in doc/Ecosystem (#1443)
  • 4e36633 update types/node to latest (#1451)
  • 8a736fc Update ignore files (#1452)

There are 137 commits in total.

See the full diff

FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree: