A denial of service vulnerability exists in Fastify v2.14.1 and v3.0.0-rc.4 that allows a malicious user to trigger resource exhaustion (when the allErrors option is used) with specially crafted schemas.
Release Notes
fastify/fastify
### [`v2.15.1`](https://togithub.com/fastify/fastify/releases/tag/v2.15.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.15.0...v2.15.1)
#### Breaking Change
For security reasons we changed the default in the `ajv`configuration.
Unfortunately `allErrors: true` is a DoS attack vector for certain
schemas. So this changed to `allErrors: false`.
See: [ajv-validator/ajv@`334071a`](https://togithub.com/ajv-validator/ajv/commit/334071a)
Ref: https://hackerone.com/reports/903521
#### 📚 PR:
- Add `PATCH` to `body` validation ([#2351](https://togithub.com/fastify/fastify/issues/2351))
### [`v2.15.0`](https://togithub.com/fastify/fastify/releases/tag/v2.15.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.14.1...v2.15.0)
📚 PR:
- Bind error handler to instance (v2) ([#2305](https://togithub.com/fastify/fastify/issues/2305))
- Fix custom JSON support ([#2309](https://togithub.com/fastify/fastify/issues/2309))
- On ready backport ([#2296](https://togithub.com/fastify/fastify/issues/2296))
### [`v2.14.1`](https://togithub.com/fastify/fastify/releases/tag/v2.14.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.14.0...v2.14.1)
- Tweak haproxy config for issue [#2036](https://togithub.com/fastify/fastify/issues/2036) ([#2270](https://togithub.com/fastify/fastify/issues/2270)) ([#2271](https://togithub.com/fastify/fastify/issues/2271))
- Fix: call preHandler on reply.callNotFound ([#2256](https://togithub.com/fastify/fastify/issues/2256)) ([#2264](https://togithub.com/fastify/fastify/issues/2264))
- doc: doc example to use ajv-errors ([#2254](https://togithub.com/fastify/fastify/issues/2254))
- Log clientError as trace to avoid dev confusion ([#2241](https://togithub.com/fastify/fastify/issues/2241)) ([#2242](https://togithub.com/fastify/fastify/issues/2242))
### [`v2.14.0`](https://togithub.com/fastify/fastify/releases/tag/v2.14.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.13.1...v2.14.0)
📚 PR:
- Support builder-style injection ([#2209](https://togithub.com/fastify/fastify/issues/2209))
- fix [#2214](https://togithub.com/fastify/fastify/issues/2214) ([#2218](https://togithub.com/fastify/fastify/issues/2218))
- http2: fix HEAD requests hanging ([#2233](https://togithub.com/fastify/fastify/issues/2233)) ([#2239](https://togithub.com/fastify/fastify/issues/2239))
### [`v2.13.1`](https://togithub.com/fastify/fastify/releases/tag/v2.13.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.13.0...v2.13.1)
📚 PR:
- Ignore pino@6.
- ignore fast-json-stringify in dependabot
- Fix link to Fastify Create ([#2146](https://togithub.com/fastify/fastify/issues/2146))
- test for issue [#2148](https://togithub.com/fastify/fastify/issues/2148) where typedefs for query params object were wrong ([#2149](https://togithub.com/fastify/fastify/issues/2149))
- Replace greenkeeper with dependabot ([#2162](https://togithub.com/fastify/fastify/issues/2162))
- add fastify-method-override to ecosystem ([#2165](https://togithub.com/fastify/fastify/issues/2165))
- Update Logging.md ([#2171](https://togithub.com/fastify/fastify/issues/2171))
- Add to fastify-qrcode into Ecosystem ([#2170](https://togithub.com/fastify/fastify/issues/2170))
- docs: errors in async hook ([#2176](https://togithub.com/fastify/fastify/issues/2176))
- docs: use direct references in the "Schema Resolver" example ([#2155](https://togithub.com/fastify/fastify/issues/2155))
- fix: typo in routes doc ([#2182](https://togithub.com/fastify/fastify/issues/2182))
- Add google cloud trace API plugin ([#2185](https://togithub.com/fastify/fastify/issues/2185))
- Fixes crash when using a non-standard error code ([#2184](https://togithub.com/fastify/fastify/issues/2184))
- Fix package-manager CI ([#2189](https://togithub.com/fastify/fastify/issues/2189))
- Fix for Link in docs/Middleware ([#2192](https://togithub.com/fastify/fastify/issues/2192))
### [`v2.13.0`](https://togithub.com/fastify/fastify/releases/tag/v2.13.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.12.1...v2.13.0)
📚 PR:
- Update deps
- update GH checkout action ([#2122](https://togithub.com/fastify/fastify/issues/2122))
- fix add schema conflict ([#2077](https://togithub.com/fastify/fastify/issues/2077))
- Use light-my-request types instead of duplicating typings. fixes [#2098](https://togithub.com/fastify/fastify/issues/2098) ([#2124](https://togithub.com/fastify/fastify/issues/2124))
- feat([#1930](https://togithub.com/fastify/fastify/issues/1930)): added option to overrind onBadUrl callback ([#2106](https://togithub.com/fastify/fastify/issues/2106))
- quicker quick start ([#2125](https://togithub.com/fastify/fastify/issues/2125))
- docs: Clarify thrown values must be Errors ([#2126](https://togithub.com/fastify/fastify/issues/2126))
- Update decorators documentation ([#2127](https://togithub.com/fastify/fastify/issues/2127))
- fix: throw error if decorator is called after start ([#2128](https://togithub.com/fastify/fastify/issues/2128))
- Update ci.yml ([#2133](https://togithub.com/fastify/fastify/issues/2133))
- Remove Gitter links ([#2132](https://togithub.com/fastify/fastify/issues/2132))
- fix test ready-start order ([#2136](https://togithub.com/fastify/fastify/issues/2136))
- chore(package): update [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) to version 2.24.0 ([#2138](https://togithub.com/fastify/fastify/issues/2138))
### [`v2.12.1`](https://togithub.com/fastify/fastify/releases/tag/v2.12.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.12.0...v2.12.1)
📚 PR:
- Added fastify-esso plugin ([#2084](https://togithub.com/fastify/fastify/issues/2084))
- add comma to queryStringJsonSchema ([#2085](https://togithub.com/fastify/fastify/issues/2085))
- Throws error if an invalid status code is sent ([#2082](https://togithub.com/fastify/fastify/issues/2082))
- chore: greenkeeper ignore semver ([#2095](https://togithub.com/fastify/fastify/issues/2095))
- Fix inaccurate type of `setErrorHandler` ([#2092](https://togithub.com/fastify/fastify/issues/2092))
- Fixed typo res.res to reply.res ([#2099](https://togithub.com/fastify/fastify/issues/2099))
- docs: use computed key when assigning property to request ([#2100](https://togithub.com/fastify/fastify/issues/2100))
- types: add type of `this` to the not found handler ([#2102](https://togithub.com/fastify/fastify/issues/2102))
- docs: fix header and body generic types ([#2103](https://togithub.com/fastify/fastify/issues/2103))
- fix: multiple route same schema ([#2108](https://togithub.com/fastify/fastify/issues/2108))
- http2: fix req.hostname not set ([#2113](https://togithub.com/fastify/fastify/issues/2113))
- Added fastify-axios plugin ([#2118](https://togithub.com/fastify/fastify/issues/2118))
- docs: Clarify reply.redirect status code docs ([#2121](https://togithub.com/fastify/fastify/issues/2121))
### [`v2.12.0`](https://togithub.com/fastify/fastify/releases/tag/v2.12.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.11.0...v2.12.0)
📚 PR:
- fix: skip serialization for json string ([#1937](https://togithub.com/fastify/fastify/issues/1937))
- Added fastify-casl to Community Plugins ([#1977](https://togithub.com/fastify/fastify/issues/1977))
- feature: added validation context to validation result ([#1915](https://togithub.com/fastify/fastify/issues/1915))
- ESM support ([#1984](https://togithub.com/fastify/fastify/issues/1984))
- fix: adjust hooks body null ([#1991](https://togithub.com/fastify/fastify/issues/1991))
- Added mcollina's plugin "fastify-secure-session" ([#1999](https://togithub.com/fastify/fastify/issues/1999))
- Add fastify-typeorm-plugin to community plugins ([#1998](https://togithub.com/fastify/fastify/issues/1998))
- Remove Azure Pipelines ([#1985](https://togithub.com/fastify/fastify/issues/1985))
- Update validation docs ([#1994](https://togithub.com/fastify/fastify/issues/1994))
- Drop Windows-latest and Node 6 from CI as its failing. ([#2002](https://togithub.com/fastify/fastify/issues/2002))
- doc: fix esm-support anchor ([#2001](https://togithub.com/fastify/fastify/issues/2001))
- Docs(Fluent-Schema.md): fix fluent schema repo link ([#2007](https://togithub.com/fastify/fastify/issues/2007))
- fix - docs - hooks - error handling ([#2000](https://togithub.com/fastify/fastify/issues/2000))
- add fastify-explorer to ecosystem ([#2003](https://togithub.com/fastify/fastify/issues/2003))
- Add a recommendations doc ([#1997](https://togithub.com/fastify/fastify/issues/1997))
- Fix TOC typo in recommendations ([#2009](https://togithub.com/fastify/fastify/issues/2009))
- docs(Typescript): typo ([#2016](https://togithub.com/fastify/fastify/issues/2016))
- docs: fix onResponse parameter ([#2020](https://togithub.com/fastify/fastify/issues/2020))
- Update template bug.md ([#2025](https://togithub.com/fastify/fastify/issues/2025))
- fix replace way enum ([#2026](https://togithub.com/fastify/fastify/issues/2026))
- docs: update inject features ([#2029](https://togithub.com/fastify/fastify/issues/2029))
- Update Copyright Year to 2020 ([#2031](https://togithub.com/fastify/fastify/issues/2031))
- add generic to typescript Reply.send payload ([#2032](https://togithub.com/fastify/fastify/issues/2032))
- Shorten longest line (docs) ([#2035](https://togithub.com/fastify/fastify/issues/2035))
- docs: OpenJS CoC ([#2033](https://togithub.com/fastify/fastify/issues/2033))
- Workaround for using one schema for multiple routes ([#2044](https://togithub.com/fastify/fastify/issues/2044))
- docs: inject chainable methods ([#1917](https://togithub.com/fastify/fastify/issues/1917)) ([#2043](https://togithub.com/fastify/fastify/issues/2043))
- http2: handle graceful close ([#2050](https://togithub.com/fastify/fastify/issues/2050))
- chore(package): update fluent-schema to version 0.10.0 ([#2057](https://togithub.com/fastify/fastify/issues/2057))
- chore(package): update yup to version 0.28.1 ([#2059](https://togithub.com/fastify/fastify/issues/2059))
- Update README.md ([#2064](https://togithub.com/fastify/fastify/issues/2064))
- Added fastify-response-validation to ecosystem ([#2063](https://togithub.com/fastify/fastify/issues/2063))
- fix: use opts of onRoute hook ([#2060](https://togithub.com/fastify/fastify/issues/2060))
- Fixed documentation typo ([#2067](https://togithub.com/fastify/fastify/issues/2067))
- Add missing TS definition for ServerOptions.genReqId function arg ([#2076](https://togithub.com/fastify/fastify/issues/2076))
- fix: throw hooks promise rejection ([#2070](https://togithub.com/fastify/fastify/issues/2070)) ([#2074](https://togithub.com/fastify/fastify/issues/2074))
- Add docs to stop processing hooks with async ([#2079](https://togithub.com/fastify/fastify/issues/2079))
### [`v2.11.0`](https://togithub.com/fastify/fastify/releases/tag/v2.11.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.10.0...v2.11.0)
📚 PR:
- Test: After can access to decorations registered into plugin ([#1891](https://togithub.com/fastify/fastify/issues/1891))
- chore(package): update h2url to version 0.2.0 ([#1902](https://togithub.com/fastify/fastify/issues/1902))
- Add type definition for genReqId option ([#1899](https://togithub.com/fastify/fastify/issues/1899))
- add missing fluent schema link ([#1903](https://togithub.com/fastify/fastify/issues/1903))
- Updates fastify-multer repository ([#1904](https://togithub.com/fastify/fastify/issues/1904))
- Add Node v13 to CI ([#1912](https://togithub.com/fastify/fastify/issues/1912))
- adds fastify-https-redirect to ecosystem ([#1911](https://togithub.com/fastify/fastify/issues/1911))
- Added support for onConstructorPoisoning ([#1910](https://togithub.com/fastify/fastify/issues/1910))
- Add log serializer ([#1901](https://togithub.com/fastify/fastify/issues/1901))
- Added fastify-qs plugin ([#1906](https://togithub.com/fastify/fastify/issues/1906))
- Handle invalid url components ([#1888](https://togithub.com/fastify/fastify/issues/1888))
- Update Actions to use latest versions of all OS's ([#1907](https://togithub.com/fastify/fastify/issues/1907))
- less coverage messages ([#1918](https://togithub.com/fastify/fastify/issues/1918))
- chore(package): update form-data to version 3.0.0 ([#1923](https://togithub.com/fastify/fastify/issues/1923))
- Update documentation to fix anchors for Hooks ([#1928](https://togithub.com/fastify/fastify/issues/1928))
- Added missing types for Server Options ([#1922](https://togithub.com/fastify/fastify/issues/1922))
- Fix/1932 Add version field to the route options ([#1933](https://togithub.com/fastify/fastify/issues/1933))
- Update abstract-logging to v2 ([#1941](https://togithub.com/fastify/fastify/issues/1941))
- Update Routes.md ([#1942](https://togithub.com/fastify/fastify/issues/1942))
- Add fastify-errors-properties plugin to Ecosystem ([#1944](https://togithub.com/fastify/fastify/issues/1944))
- Add fastify-auth0-verify to Ecosystem. ([#1947](https://togithub.com/fastify/fastify/issues/1947))
- chore(package): update fluent-schema to version 0.8.0 ([#1950](https://togithub.com/fastify/fastify/issues/1950))
- Added note about OpenJS Foundation ([#1948](https://togithub.com/fastify/fastify/issues/1948))
- Update onRoute documentation for plugin authors. ([#1956](https://togithub.com/fastify/fastify/issues/1956))
- docs: fix example onRoute with preSerialization ([#1959](https://togithub.com/fastify/fastify/issues/1959))
- feature: Ajv custom options ([#1946](https://togithub.com/fastify/fastify/issues/1946))
- fix: add middleware type for multiple paths ([#1957](https://togithub.com/fastify/fastify/issues/1957))
- fature: register's opts onRegister hook ([#1958](https://togithub.com/fastify/fastify/issues/1958))
- feature: Add support for onSend on routes. ([#1961](https://togithub.com/fastify/fastify/issues/1961))
- Typescript types plugin example docs update ([#1963](https://togithub.com/fastify/fastify/issues/1963))
- chore(package): update fluent-schema to version 0.9.0 ([#1964](https://togithub.com/fastify/fastify/issues/1964))
- minor docs update for https typings ([#1945](https://togithub.com/fastify/fastify/issues/1945))
### [`v2.10.0`](https://togithub.com/fastify/fastify/releases/tag/v2.10.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.9.0...v2.10.0)
**Features:**
- Added Reply.statusCode - [#1892](https://togithub.com/fastify/fastify/issues/1892)
**Fixes:**
- fix schema resolver for plain id - [#1882](https://togithub.com/fastify/fastify/issues/1882)
**Documentation:**
- doc fix: add .headers to reply docs - [#1890](https://togithub.com/fastify/fastify/issues/1890)
### [`v2.9.0`](https://togithub.com/fastify/fastify/releases/tag/v2.9.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.8.0...v2.9.0)
📚 PR:
- Improving Getting Started documentation ([#1837](https://togithub.com/fastify/fastify/issues/1837))
- feat - Implement pluginName ([#1836](https://togithub.com/fastify/fastify/issues/1836))
- feature: add onResponse hook in route declaration ([#1838](https://togithub.com/fastify/fastify/issues/1838))
- Fix eslint "no-misused-promises" error in hooks ([#1843](https://togithub.com/fastify/fastify/issues/1843))
- Update Validation-and-Serialization.md ([#1846](https://togithub.com/fastify/fastify/issues/1846))
- docs(Reply): fix Errors ([#1848](https://togithub.com/fastify/fastify/issues/1848))
- First batch of documentation fixes ([#1850](https://togithub.com/fastify/fastify/issues/1850))
- add FastifyReply#removeHeader method to fastify.d.ts ([#1849](https://togithub.com/fastify/fastify/issues/1849))
- randomize file name in test ([#1856](https://togithub.com/fastify/fastify/issues/1856))
- Move Nathan Woltman to Past Collaborators ([#1857](https://togithub.com/fastify/fastify/issues/1857))
- add github workflow for CI and website, ([#1853](https://togithub.com/fastify/fastify/issues/1853))
- possible fixes ([#1861](https://togithub.com/fastify/fastify/issues/1861))
- fix ([#1862](https://togithub.com/fastify/fastify/issues/1862))
- Fix/pkg manager ci ([#1863](https://togithub.com/fastify/fastify/issues/1863))
- install yarn and pnpm in the host env ([#1865](https://togithub.com/fastify/fastify/issues/1865))
- Rules to contributing to plugins ([#1842](https://togithub.com/fastify/fastify/issues/1842))
- Make reply a thenable ([#1869](https://togithub.com/fastify/fastify/issues/1869))
- docs(Plugins): removed prefix from list with fastify-plugin ([#1819](https://togithub.com/fastify/fastify/issues/1819))
- Add SerayaEryn to team list ([#1867](https://togithub.com/fastify/fastify/issues/1867))
- Don't change resolved schema ([#1872](https://togithub.com/fastify/fastify/issues/1872))
- Fix Plugin type in fastify.d.ts ([#1841](https://togithub.com/fastify/fastify/issues/1841))
- fix(package): update tiny-lru to version 7.0.0 ([#1874](https://togithub.com/fastify/fastify/issues/1874))
- feature: schema resolver ([#1858](https://togithub.com/fastify/fastify/issues/1858))
- Fix warning for onError hook ([#1876](https://togithub.com/fastify/fastify/issues/1876))
- Update Server.md ([#1878](https://togithub.com/fastify/fastify/issues/1878))
### [`v2.8.0`](https://togithub.com/fastify/fastify/releases/tag/v2.8.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.7.1...v2.8.0)
📚 PR:
- docs(Serverless): add missing punctuation marks ([#1783](https://togithub.com/fastify/fastify/issues/1783))
- Add toStrinTag to errors ([#1785](https://togithub.com/fastify/fastify/issues/1785))
- \[ts] Add `handler` to `RouteShorthandOptions` ([#1788](https://togithub.com/fastify/fastify/issues/1788))
- typo: typescript-server.ts ([#1791](https://togithub.com/fastify/fastify/issues/1791))
- Add request property to reply documentation ([#1792](https://togithub.com/fastify/fastify/issues/1792))
- Use .isFluentSchema instead of symbol to check for fluent-schema ([#1794](https://togithub.com/fastify/fastify/issues/1794))
- fix inverted if in serverless example ([#1797](https://togithub.com/fastify/fastify/issues/1797))
- Ensure that header properties are not duplicated in schema ([#1806](https://togithub.com/fastify/fastify/issues/1806))
- docs(Hooks): Add each Hook to a title ([#1801](https://togithub.com/fastify/fastify/issues/1801))
- Docs(typescript) and other typos ([#1811](https://togithub.com/fastify/fastify/issues/1811))
- docs(Hooks): ([#1810](https://togithub.com/fastify/fastify/issues/1810))
- Update standard ([#1816](https://togithub.com/fastify/fastify/issues/1816))
- add plugin for autogenerate crud route in Ecosystem ([#1813](https://togithub.com/fastify/fastify/issues/1813))
- chore(package): update [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) to version 2.0.0 ([#1799](https://togithub.com/fastify/fastify/issues/1799))
- Improve default 404 route ([#1826](https://togithub.com/fastify/fastify/issues/1826))
- Schema build error ([#1808](https://togithub.com/fastify/fastify/issues/1808))
- Update Ecosystem.md ([#1827](https://togithub.com/fastify/fastify/issues/1827))
- fix: premature close test ([#1833](https://togithub.com/fastify/fastify/issues/1833))
- Added Zeit Now docs ([#1824](https://togithub.com/fastify/fastify/issues/1824))
- greenkeeper ignore [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#1835](https://togithub.com/fastify/fastify/issues/1835))
### [`v2.7.1`](https://togithub.com/fastify/fastify/releases/tag/v2.7.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.7.0...v2.7.1)
**Fixes:**
- Ensure we are not running the handler if reply.sent is true - [#1778](https://togithub.com/fastify/fastify/issues/1778)
- better typing for headers object - [#1775](https://togithub.com/fastify/fastify/issues/1775)
**Documentation:**
- Added Google Cloud Run docs - [#1770](https://togithub.com/fastify/fastify/issues/1770)
- docs: simplify serverless usage - [#1748](https://togithub.com/fastify/fastify/issues/1748)
### [`v2.7.0`](https://togithub.com/fastify/fastify/releases/tag/v2.7.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.6.0...v2.7.0)
**Features:**
- Added `return503OnClosing` option - [#1723](https://togithub.com/fastify/fastify/issues/1723)
**Fixes:**
- Fix bug regarding Joi schemas (issue [#1767](https://togithub.com/fastify/fastify/issues/1767)) - [#1768](https://togithub.com/fastify/fastify/issues/1768)
**Documentation:**
- docs(Plugins): Fix typo - [#1764](https://togithub.com/fastify/fastify/issues/1764)
- Change the `next` to `done` inside documentation - [#1756](https://togithub.com/fastify/fastify/issues/1756)
- security policy - [#1738](https://togithub.com/fastify/fastify/issues/1738)
- docs(Ecosystem): Add fastify-no-additional-properties community plugin - [#1762](https://togithub.com/fastify/fastify/issues/1762)
- docs(Hooks): Add payload inside example to prevent bugs - [#1739](https://togithub.com/fastify/fastify/issues/1739)
- docs(Hooks): Fix typo - [#1759](https://togithub.com/fastify/fastify/issues/1759)
- change code examples in Reply documentation - [#1751](https://togithub.com/fastify/fastify/issues/1751)
- Update Routes.md - [#1743](https://togithub.com/fastify/fastify/issues/1743)
- Update Server.md - [#1718](https://togithub.com/fastify/fastify/issues/1718)
- docs: fix typos for logging - [#1701](https://togithub.com/fastify/fastify/issues/1701)
- docs(Ecosystem): Add cls-rtracer community plugin - [#1731](https://togithub.com/fastify/fastify/issues/1731)
- docs: move Trivikram to past collaborators - [#1727](https://togithub.com/fastify/fastify/issues/1727)
- docs(Ecosystem): Add plugin community fastify-reverse-routes - [#1728](https://togithub.com/fastify/fastify/issues/1728)
- docs(Ecosystem): Removed fastify-nuxt community package - [#1725](https://togithub.com/fastify/fastify/issues/1725)
- docs(Ecosystem): Add plugin community fastify-amqp - [#1724](https://togithub.com/fastify/fastify/issues/1724)
### [`v2.6.0`](https://togithub.com/fastify/fastify/releases/tag/v2.6.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.5.0...v2.6.0)
**Features:**
- feature: custom serializator - [#1706](https://togithub.com/fastify/fastify/issues/1706)
- allow nullable option for use cases like [#1709](https://togithub.com/fastify/fastify/issues/1709) - [#1711](https://togithub.com/fastify/fastify/issues/1711)
- Improve support for Fluent Schema - [#1719](https://togithub.com/fastify/fastify/issues/1719)
**Documentation:**
- Clarify that user-provided data relates to the schemas - [#1722](https://togithub.com/fastify/fastify/issues/1722)
### [`v2.5.0`](https://togithub.com/fastify/fastify/releases/tag/v2.5.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.4.1...v2.5.0)
**Features:**
- Add ability to get response time on reply - [#1697](https://togithub.com/fastify/fastify/issues/1697)
- Alias schema.query to schema.querystring ([#1690](https://togithub.com/fastify/fastify/issues/1690)) - [#1694](https://togithub.com/fastify/fastify/issues/1694)
**Fixes:**
- Added case sensitive option to definition file - [#1691](https://togithub.com/fastify/fastify/issues/1691)
- fix: use reply instead of original res - [#1704](https://togithub.com/fastify/fastify/issues/1704)
- Removes double call to afterRouteAdded when ignoreTrailingSlash === true - [#1675](https://togithub.com/fastify/fastify/issues/1675)
- Fix http2SecureServer test - [#1681](https://togithub.com/fastify/fastify/issues/1681)
- Adds defaults to TS generics definitions - [#1669](https://togithub.com/fastify/fastify/issues/1669)
**Documentation:**
- docs: fix typos for logging - [#1701](https://togithub.com/fastify/fastify/issues/1701)
- Add RBAC plugin - [#1692](https://togithub.com/fastify/fastify/issues/1692)
- Update docs to fix req.body inside logger req - [#1695](https://togithub.com/fastify/fastify/issues/1695)
### [`v2.4.1`](https://togithub.com/fastify/fastify/releases/tag/v2.4.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.4.0...v2.4.1)
- Add .git folder to NPM ignore - [#1663](https://togithub.com/fastify/fastify/issues/1663)
### [`v2.4.0`](https://togithub.com/fastify/fastify/releases/tag/v2.4.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.3.0...v2.4.0)
**Features**
- Use secure-json-parse instead of bourne ([#1619](https://togithub.com/fastify/fastify/issues/1619))
- Add option to disable request start and end logging ([#1629](https://togithub.com/fastify/fastify/issues/1629))
**Fixes**
- Add typings for disableRequestLogging option ([#1633](https://togithub.com/fastify/fastify/issues/1633))
- Catches onRoute hooks errors ([#1651](https://togithub.com/fastify/fastify/issues/1651))
- Emit warning synchronously ([#1657](https://togithub.com/fastify/fastify/issues/1657))
- Hooks: throw on incorrect async function ([#1608](https://togithub.com/fastify/fastify/issues/1608))
- fix(types): fix register options ([#1644](https://togithub.com/fastify/fastify/issues/1644))
**Documentation**
- add: more example on how use the $ref keyword ([#1613](https://togithub.com/fastify/fastify/issues/1613))
- Minor host binding documentation rewrite: ([#1616](https://togithub.com/fastify/fastify/issues/1616))
- Add fastify-feature-flags plugin to Ecosystem ([#1614](https://togithub.com/fastify/fastify/issues/1614))
- docs: fix a broken anchor tag in Logging page ([#1622](https://togithub.com/fastify/fastify/issues/1622))
- improve docs of fastify.close() ([#1632](https://togithub.com/fastify/fastify/issues/1632))
- Added `fastify-decorators` to Ecosystem.md ([#1645](https://togithub.com/fastify/fastify/issues/1645))
- offboarding steps ([#1646](https://togithub.com/fastify/fastify/issues/1646))
- Add fastify-objectionjs plugin to the Ecosystem ([#1638](https://togithub.com/fastify/fastify/issues/1638))
- add example repo link ([#1648](https://togithub.com/fastify/fastify/issues/1648))
- Make some spelling and grammar corrections to TS.md ([#1640](https://togithub.com/fastify/fastify/issues/1640))
- docs(reply): clarify settings headers ([#1642](https://togithub.com/fastify/fastify/issues/1642))
- Docs: add links for Ajv i18n and custom errors ([#1588](https://togithub.com/fastify/fastify/issues/1588))
- Updated docs to reflect internal reorg ([#1575](https://togithub.com/fastify/fastify/issues/1575))
**Internals**
- chore(travis) add 12 ([#1611](https://togithub.com/fastify/fastify/issues/1611))
- add node v12 to ci ([#1610](https://togithub.com/fastify/fastify/issues/1610))
- Updated azure pipelines configuration ([#1639](https://togithub.com/fastify/fastify/issues/1639))
- chore(package): update dns-prefetch-control to version 0.2.0 ([#1641](https://togithub.com/fastify/fastify/issues/1641))
- add tap into greenkeeper ignore list ([#1643](https://togithub.com/fastify/fastify/issues/1643))
- Fix typo in azure-pipelines.yml ([#1649](https://togithub.com/fastify/fastify/issues/1649))
- chore(package): update flatstr to version 1.0.12 ([#1653](https://togithub.com/fastify/fastify/issues/1653))
- chore(package): update send to version 0.17.0 ([#1627](https://togithub.com/fastify/fastify/issues/1627))
- internal: moved route code ([#1625](https://togithub.com/fastify/fastify/issues/1625))
### [`v2.3.0`](https://togithub.com/fastify/fastify/releases/tag/v2.3.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.2.0...v2.3.0)
**Features:**
- Add onRequest route hook - [#1594](https://togithub.com/fastify/fastify/issues/1594)
**Fixes:**
- Resolve issue 1584 - [#1589](https://togithub.com/fastify/fastify/issues/1589)
- fix/mutated-schemas at startup - [#1572](https://togithub.com/fastify/fastify/issues/1572)
**Documentation:**
- Warning notice for new Function - [#1605](https://togithub.com/fastify/fastify/issues/1605)
- Added plugin fastify-normalize-request-reply - [#1600](https://togithub.com/fastify/fastify/issues/1600)
- Docs: Update Server#logger to discuss custom logger option - [#1577](https://togithub.com/fastify/fastify/issues/1577)
- first serverless documentation for AWS Lambda - [#1564](https://togithub.com/fastify/fastify/issues/1564)
- Fix typo in Hooks.md - [#1590](https://togithub.com/fastify/fastify/issues/1590)
- fix/schema-typo - [#1585](https://togithub.com/fastify/fastify/issues/1585)
- TOC added to Reply.md - [#1582](https://togithub.com/fastify/fastify/issues/1582)
- Update Routes.md - [#1579](https://togithub.com/fastify/fastify/issues/1579)
- Update Ecosystem.md - [#1570](https://togithub.com/fastify/fastify/issues/1570)
- doc add fastify-schema-constraint to ecosystem - [#1573](https://togithub.com/fastify/fastify/issues/1573)
- Fix ignoreTrailingSlash example - [#1574](https://togithub.com/fastify/fastify/issues/1574)
**Internals:**
- Faster startup time - [#1597](https://togithub.com/fastify/fastify/issues/1597)
- use a cache for Ajv compiled schemas - [#1606](https://togithub.com/fastify/fastify/issues/1606)
### [`v2.2.0`](https://togithub.com/fastify/fastify/releases/tag/v2.2.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.1.0...v2.2.0)
**Features:**
- Add option to match only prefix root with paths - [#1487](https://togithub.com/fastify/fastify/issues/1487)
- add: schemaCompiler property - [#1533](https://togithub.com/fastify/fastify/issues/1533)
**Fixes:**
- Type this in RequestHandler - [#1539](https://togithub.com/fastify/fastify/issues/1539)
- Fix initialConfigValidation error handling - [#1561](https://togithub.com/fastify/fastify/issues/1561)
- fix/mutated-schemas - [#1565](https://togithub.com/fastify/fastify/issues/1565)
**Documentation:**
- Update Request.md - [#1549](https://togithub.com/fastify/fastify/issues/1549)
- Update Server.md - [#1550](https://togithub.com/fastify/fastify/issues/1550)
- Update Ecosystem.md - [#1559](https://togithub.com/fastify/fastify/issues/1559)
- Document `genReqId` being called even when 'request-id' header is supplied - [#1566](https://togithub.com/fastify/fastify/issues/1566)
**Test:**
- Fix [#1537](https://togithub.com/fastify/fastify/issues/1537) - [#1545](https://togithub.com/fastify/fastify/issues/1545)
**Internals:**
- Chore 404 - [#1547](https://togithub.com/fastify/fastify/issues/1547)
### [`v2.1.0`](https://togithub.com/fastify/fastify/releases/tag/v2.1.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.0.1...v2.1.0)
**Features:**
- feat: support more signatures for listen - [#1463](https://togithub.com/fastify/fastify/issues/1463)
- Feature: onRegister hook - [#1526](https://togithub.com/fastify/fastify/issues/1526)
- InitialConfig - [#1471](https://togithub.com/fastify/fastify/issues/1471)
- Pass ip, ips, and hostname to Request object - [#1476](https://togithub.com/fastify/fastify/issues/1476)
**Fixes:**
- feat: add pluginTimeout options in d.ts - [#1527](https://togithub.com/fastify/fastify/issues/1527)
- fix/schema error text - [#1513](https://togithub.com/fastify/fastify/issues/1513)
- Fix the default for the modifyCoreObjects option - [#1517](https://togithub.com/fastify/fastify/issues/1517)
**Docs:**
- Adds fastify-flash to Ecosystem.md - [#1531](https://togithub.com/fastify/fastify/issues/1531)
- Add apollo-server-fastify to the ecosystem. - [#1524](https://togithub.com/fastify/fastify/issues/1524)
- Add res serializer to docs - [#1455](https://togithub.com/fastify/fastify/issues/1455)
- Update Ecosystem.md - [#1488](https://togithub.com/fastify/fastify/issues/1488)
- Added fastify-mongoose-driver to Community Plugins - [#1490](https://togithub.com/fastify/fastify/issues/1490)
- Docs: clarify error handling in non-async routes - [#1515](https://togithub.com/fastify/fastify/issues/1515)
- Documentation update for avvio PR 82 - [#1498](https://togithub.com/fastify/fastify/issues/1498)
- added all the hooks in the example file - [#1520](https://togithub.com/fastify/fastify/issues/1520)
- Updated docs - [#1522](https://togithub.com/fastify/fastify/issues/1522)
**Internals:**
- Init options - [#1530](https://togithub.com/fastify/fastify/issues/1530)
- Fix [#1506](https://togithub.com/fastify/fastify/issues/1506) - [#1528](https://togithub.com/fastify/fastify/issues/1528)
- Chore: refactor fastify.js - [#1506](https://togithub.com/fastify/fastify/issues/1506)
### [`v2.0.1`](https://togithub.com/fastify/fastify/releases/tag/v2.0.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v2.0.0...v2.0.1)
**Fixes:**
- fix: unused shared schema to serializer - [#1496](https://togithub.com/fastify/fastify/issues/1496)
**Docs:**
- Docs/fluent schema - [#1485](https://togithub.com/fastify/fastify/issues/1485)
- add fastify-405 plugin - [#1501](https://togithub.com/fastify/fastify/issues/1501)
- Updated benchmarks - [#1497](https://togithub.com/fastify/fastify/issues/1497)
- Added fastify-influxdb to Community Plugins - [#1472](https://togithub.com/fastify/fastify/issues/1472)
- Updated LTS.md - [#1477](https://togithub.com/fastify/fastify/issues/1477)
**Internals:**
- refactor: remove unnecessary condition - [#1505](https://togithub.com/fastify/fastify/issues/1505)
**Dependencies**:
- chore(package): update fast-json-stringify to version 1.11.2 - [#1500](https://togithub.com/fastify/fastify/issues/1500)
- Update deps - [#1493](https://togithub.com/fastify/fastify/issues/1493)
### [`v2.0.0`](https://togithub.com/fastify/fastify/releases/tag/v2.0.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.6...v2.0.0)
**Official announcement:** *https://medium.com/[@fastifyjs/8275d613fba4](https://togithub.com/fastifyjs/8275d613fba4)*
**Breaking changes:**
- Added onError hook - [#1236](https://togithub.com/fastify/fastify/issues/1236)
- Move all \_ prefixed properties to Symbols in next - [#1237](https://togithub.com/fastify/fastify/issues/1237) [#1128](https://togithub.com/fastify/fastify/issues/1128)
- Plugins can now receive both /prefix and prefix/ - [#1228](https://togithub.com/fastify/fastify/issues/1228)
- Default error handler that logs the error - [#1135](https://togithub.com/fastify/fastify/issues/1135)
- Ensure Reply#serialize uses custom serializer - [#1163](https://togithub.com/fastify/fastify/issues/1163)
- Better error management - [#1168](https://togithub.com/fastify/fastify/issues/1168)
- Bumped avvio to 6.0.0. - [#1201](https://togithub.com/fastify/fastify/issues/1201)
- Added preValidation hook - [#1153](https://togithub.com/fastify/fastify/issues/1153)
- Change basePath to prefix - [#1183](https://togithub.com/fastify/fastify/issues/1183)
- Separate logging and reqId options - [#1164](https://togithub.com/fastify/fastify/issues/1164) [#1166](https://togithub.com/fastify/fastify/issues/1166)
- Pino v5 - [#1065](https://togithub.com/fastify/fastify/issues/1065)
- Updated Not found handling - [#1084](https://togithub.com/fastify/fastify/issues/1084)
- Hooks: always use Fastify core objects - [#1066](https://togithub.com/fastify/fastify/issues/1066)
- Remove req.id in serializer - [#1032](https://togithub.com/fastify/fastify/issues/1032)
- Extended support of cross-platform builds and yarn official support - [#1226](https://togithub.com/fastify/fastify/issues/1226)
**Features:**
- Support custom route versioning strategies - [#1422](https://togithub.com/fastify/fastify/issues/1422)
- Protect against prototype poisoning - [#1427](https://togithub.com/fastify/fastify/issues/1427)
- feat: Added preSerialization hook and route option. - [#1408](https://togithub.com/fastify/fastify/issues/1408)
- Added preParsing hook. - [#1377](https://togithub.com/fastify/fastify/issues/1377)
- PR to fix issue [#1269](https://togithub.com/fastify/fastify/issues/1269) - add plain text parser to core - [#1280](https://togithub.com/fastify/fastify/issues/1280)
**Enhancements:**
- Update default ajv instance to include all errors (breaking change) - [#1398](https://togithub.com/fastify/fastify/issues/1398)
- Set log level to warn for all sendStream errors - [#1415](https://togithub.com/fastify/fastify/issues/1415)
- log "premature close" stream errors as warnings - [#1407](https://togithub.com/fastify/fastify/issues/1407)
- Add plugin name in case of dependency error - [#1371](https://togithub.com/fastify/fastify/issues/1371)
- move ECONNRESET log from error to debug - [#1363](https://togithub.com/fastify/fastify/issues/1363)
- Fix [#1334](https://togithub.com/fastify/fastify/issues/1334) - [#1348](https://togithub.com/fastify/fastify/issues/1348)
- Throw error for improper node js version using http2 - [#1346](https://togithub.com/fastify/fastify/issues/1346)
**Fixes:**
- Allow override of the default content-type parser inside a plugin - [#1435](https://togithub.com/fastify/fastify/issues/1435)
- fix: json schema $ref with $id set in definitions - [#1425](https://togithub.com/fastify/fastify/issues/1425)
- Drop [@types/pino](https://togithub.com/types/pino) from dependencies - [#1366](https://togithub.com/fastify/fastify/issues/1366)
- Fix setting multiple cookies as multiple 'Set-Cookie' headers. (fix [#1358](https://togithub.com/fastify/fastify/issues/1358)) - [#1359](https://togithub.com/fastify/fastify/issues/1359)
- fix: [#1353](https://togithub.com/fastify/fastify/issues/1353) ignore evaluation of $schema field in json-schema - [#1354](https://togithub.com/fastify/fastify/issues/1354)
- Establish reply.sent = true as a proper way to skip async/await handling - [#1336](https://togithub.com/fastify/fastify/issues/1336)
- Handle response validation error - [#1328](https://togithub.com/fastify/fastify/issues/1328)
**TypeScript**:
- Improve typings with an overload for the close() method, which returns a promise - [#1404](https://togithub.com/fastify/fastify/issues/1404)
- fix(types): add missing Reply functions - [#1299](https://togithub.com/fastify/fastify/issues/1299)
- feat(types): add custom error type - [#1250](https://togithub.com/fastify/fastify/issues/1250)
- fix: add querystringParser to ServerOptions - [#1285](https://togithub.com/fastify/fastify/issues/1285)
**Documentation**:
- Fixed typos - [#1431](https://togithub.com/fastify/fastify/issues/1431)
- fix document of handle validation error - [#1430](https://togithub.com/fastify/fastify/issues/1430)
- Update copyright year to 2019 - [#1362](https://togithub.com/fastify/fastify/issues/1362)
- fastify-react->fastify-nextjs - [#1382](https://togithub.com/fastify/fastify/issues/1382)
- docs(ecosystem): add fastify-gql - [#1343](https://togithub.com/fastify/fastify/issues/1343)
- Update Hooks.md - [#1337](https://togithub.com/fastify/fastify/issues/1337)
- Fix [#1278](https://togithub.com/fastify/fastify/issues/1278) - [#1301](https://togithub.com/fastify/fastify/issues/1301)
- doc: add links to Errors.md - [#1326](https://togithub.com/fastify/fastify/issues/1326)
- doc: remove res.end from middleware page - [#1327](https://togithub.com/fastify/fastify/issues/1327)
- Add express middleware compatibility notice - [#1313](https://togithub.com/fastify/fastify/issues/1313)
- Update Server.md - [#1322](https://togithub.com/fastify/fastify/issues/1322)
- Rename Errros.md to Errors.md - [#1323](https://togithub.com/fastify/fastify/issues/1323)
- docs(decorators): fix "view" typos - [#1309](https://togithub.com/fastify/fastify/issues/1309)
- Added fastify-sentry to Community Plugins - [#1287](https://togithub.com/fastify/fastify/issues/1287)
- Update Logging.md - [#1292](https://togithub.com/fastify/fastify/issues/1292)
- Update benchmarks to reflect latest measurements - [#1294](https://togithub.com/fastify/fastify/issues/1294)
- Update Hooks.md - [#1291](https://togithub.com/fastify/fastify/issues/1291)
- Add fastify-cockroachdb to Community plugins - [#1286](https://togithub.com/fastify/fastify/issues/1286)
- add fastify-healthcheck to comunity plugins - [#1244](https://togithub.com/fastify/fastify/issues/1244)
### [`v1.14.6`](https://togithub.com/fastify/fastify/releases/tag/v1.14.6)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.5...v1.14.6)
**Fixes:**
- Type this in RequestHandler - [#1539](https://togithub.com/fastify/fastify/issues/1539)
- fix/mutated-schemas at startup - [#1572](https://togithub.com/fastify/fastify/issues/1572)
### [`v1.14.5`](https://togithub.com/fastify/fastify/releases/tag/v1.14.5)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.4...v1.14.5)
**Test:**
- Fix [#1537](https://togithub.com/fastify/fastify/issues/1537) - [#1545](https://togithub.com/fastify/fastify/issues/1545)
### [`v1.14.4`](https://togithub.com/fastify/fastify/releases/tag/v1.14.4)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.3...v1.14.4)
**Fixes:**
- feat: add pluginTimeout options in d.ts - [#1527](https://togithub.com/fastify/fastify/issues/1527)
- Cherry pick: fix/schema error text - [#1516](https://togithub.com/fastify/fastify/issues/1516)
### [`v1.14.3`](https://togithub.com/fastify/fastify/releases/tag/v1.14.3)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.2...v1.14.3)
**Fixes:**
- fix: unused shared schema to serializer - [#1502](https://togithub.com/fastify/fastify/issues/1502)
### [`v1.14.2`](https://togithub.com/fastify/fastify/releases/tag/v1.14.2)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.1...v1.14.2)
**Fixes:**
- fix: don't add twice a json schema to an encapsulated object in tree - [#1462](https://togithub.com/fastify/fastify/issues/1462)
- Fix HTTP/2 request while closing - [#1461](https://togithub.com/fastify/fastify/issues/1461)
- Cherry-Pick: fix/addSchema to serialization - [#1447](https://togithub.com/fastify/fastify/issues/1447)
### [`v1.14.1`](https://togithub.com/fastify/fastify/releases/tag/v1.14.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.0...v1.14.1)
**Fixes**
- Allow override of the default content-type parser inside a plugin - [#1434](https://togithub.com/fastify/fastify/issues/1434)
### [`v1.14.0`](https://togithub.com/fastify/fastify/releases/tag/v1.14.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.4...v1.14.0)
**Features**
- Support custom route versioning strategies - [#1422](https://togithub.com/fastify/fastify/issues/1422)
- Protect against prototype poisoning - [#1427](https://togithub.com/fastify/fastify/issues/1427)
**Fixes**
- fix: json schema $ref with $id set in definitions - [#1425](https://togithub.com/fastify/fastify/issues/1425)
### [`v1.13.4`](https://togithub.com/fastify/fastify/releases/tag/v1.13.4)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.3...v1.13.4)
**Enhancements**
- move ECONNRESET log from error to debug - [#1363](https://togithub.com/fastify/fastify/issues/1363)
**Fixes**
- Fix setting multiple cookies as multiple 'Set-Cookie' headers. - [#1360](https://togithub.com/fastify/fastify/issues/1360)
- fix: [#1353](https://togithub.com/fastify/fastify/issues/1353) ignore evaluation of $schema field in json-schema - [#1354](https://togithub.com/fastify/fastify/issues/1354)
**Documentation**
- Update copyright year to 2019 - [#1364](https://togithub.com/fastify/fastify/issues/1364)
### [`v1.13.3`](https://togithub.com/fastify/fastify/releases/tag/v1.13.3)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.2...v1.13.3)
**Fixes**
- Handle response validation error - [#1328](https://togithub.com/fastify/fastify/issues/1328)
- Establish reply.sent = true as a proper way to skip async/await handling - [#1336](https://togithub.com/fastify/fastify/issues/1336)
### [`v1.13.2`](https://togithub.com/fastify/fastify/releases/tag/v1.13.2)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.1...v1.13.2)
- update ajv and autocannon to the latest versions [https://github.com/fastify/fastify/pull/1296](https://togithub.com/fastify/fastify/pull/1296)
### [`v1.13.1`](https://togithub.com/fastify/fastify/releases/tag/v1.13.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.0...v1.13.1)
- chore: pin ajv to 6.5.5 - [#1282](https://togithub.com/fastify/fastify/issues/1282)
### [`v1.13.0`](https://togithub.com/fastify/fastify/releases/tag/v1.13.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.12.1...v1.13.0)
**Features**
- Enable nested plugins to override decorators - [#1199](https://togithub.com/fastify/fastify/issues/1199)
- Attach validation result to request - [#1238](https://togithub.com/fastify/fastify/issues/1238)
**Enhancements**
- Prevent losing stacktrace onEnd - [#1223](https://togithub.com/fastify/fastify/issues/1223)
**Fixes**
- Add `fastify-babel` - [#1219](https://togithub.com/fastify/fastify/issues/1219)
- Update contentTypeParser.js - [#1229](https://togithub.com/fastify/fastify/issues/1229)
**Typescript**
- typings: fix allowHTTP1 flag for http2 servers - [#1222](https://togithub.com/fastify/fastify/issues/1222)
**Documentation**
- Update Reply.md - [#1227](https://togithub.com/fastify/fastify/issues/1227)
- Add `fastify-babel` - [#1219](https://togithub.com/fastify/fastify/issues/1219)
- doc(logging): fix broken link - [#1215](https://togithub.com/fastify/fastify/issues/1215)
- Update validation docs to include information about error handling - [#1232](https://togithub.com/fastify/fastify/issues/1232)
### [`v1.12.1`](https://togithub.com/fastify/fastify/releases/tag/v1.12.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.12.0...v1.12.1)
##### Bugfix
- Fix content length for utf-8 characters [#1187](https://togithub.com/fastify/fastify/issues/1187)
### [`v1.12.0`](https://togithub.com/fastify/fastify/releases/tag/v1.12.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.11.2...v1.12.0)
**Enhancements**
- Fix missing object wrapper for errors in pino log - [#1180](https://togithub.com/fastify/fastify/issues/1180)
- Complete support for Joi. Added test - [#1178](https://togithub.com/fastify/fastify/issues/1178) [#1179](https://togithub.com/fastify/fastify/issues/1179)
**Fixes**
- fix the logic of convert chunk segement into string - [#1172](https://togithub.com/fastify/fastify/issues/1172)
**Typescript**
- Add overloads for { parseAs: "string" } or { parseAs: "buffer" } - [#1162](https://togithub.com/fastify/fastify/issues/1162)
- added generic Query, Params, Headers, and Body types - [#1160](https://togithub.com/fastify/fastify/issues/1160)
**Internals**
- Update genReqId test name - [#1167](https://togithub.com/fastify/fastify/issues/1167)
**Documentation**
- Keep consistent es6 usage in readme example - [#1181](https://togithub.com/fastify/fastify/issues/1181)
- added fastify-jwt-webapp - [#1141](https://togithub.com/fastify/fastify/issues/1141)
- Update Ecosystem.md - [#1170](https://togithub.com/fastify/fastify/issues/1170)
- Add [@cemremengu](https://togithub.com/cemremengu) to contributors - [#1176](https://togithub.com/fastify/fastify/issues/1176)
- Correct typo in docs/Plugins-Guide.md - [#1173](https://togithub.com/fastify/fastify/issues/1173)
- Add fastify-webpack-hmr community plugin to ECOSYSTEM.md - [#1152](https://togithub.com/fastify/fastify/issues/1152)
- Updated README and tap runner - [#1171](https://togithub.com/fastify/fastify/issues/1171)
- Error Handling Documentation - [#1130](https://togithub.com/fastify/fastify/issues/1130)
- Update ContentTypeParser.md - [#1157](https://togithub.com/fastify/fastify/issues/1157)
- Add fastify-vue-plugin to Ecosystem.md - [#1151](https://togithub.com/fastify/fastify/issues/1151)
- Add fastify-loader to Ecosystem.md - [#1154](https://togithub.com/fastify/fastify/issues/1154)
- Add badge of vulnerabilities from snyk.io - [#1149](https://togithub.com/fastify/fastify/issues/1149)
### [`v1.11.2`](https://togithub.com/fastify/fastify/releases/tag/v1.11.2)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.11.1...v1.11.2)
**Internals**
- Handle promises in the error handler with the same logic of normal handlers - [#1134](https://togithub.com/fastify/fastify/issues/1134)
- Rename ContentTypeParser - [#1123](https://togithub.com/fastify/fastify/issues/1123)
- after should not cause inject() to be called - [#1132](https://togithub.com/fastify/fastify/issues/1132)
**Documentation**
- Add trivikr@ to the collaborators list - [#1139](https://togithub.com/fastify/fastify/issues/1139)
- Updated ecosystem doc - [#1137](https://togithub.com/fastify/fastify/issues/1137)
### [`v1.11.1`](https://togithub.com/fastify/fastify/releases/tag/v1.11.1)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.11.0...v1.11.1)
- Revert of [#1073](https://togithub.com/fastify/fastify/issues/1073) - [#1119](https://togithub.com/fastify/fastify/issues/1119)
- Add fastify-file-upload to ecosystem [https://github.com/fastify/fastify/pull/1106](https://togithub.com/fastify/fastify/pull/1106)
- Fix decorating requests and replies with getter/setter notation - [#1114](https://togithub.com/fastify/fastify/issues/1114)
- Update HTTPS type definitions - [#1109](https://togithub.com/fastify/fastify/issues/1109)
- Refactor and update tests - [#1103](https://togithub.com/fastify/fastify/issues/1103) [#1110](https://togithub.com/fastify/fastify/issues/1110) [#1111](https://togithub.com/fastify/fastify/issues/1111)
- Update Snazzy - [#1112](https://togithub.com/fastify/fastify/issues/1112)
### [`v1.11.0`](https://togithub.com/fastify/fastify/releases/tag/v1.11.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.10.0...v1.11.0)
**Features**
- Added pluginTimeout option - [#1088](https://togithub.com/fastify/fastify/issues/1088)
**Internals**
- Override address in listen instead of listenPromise - [#1102](https://togithub.com/fastify/fastify/issues/1102)
- Rename and call unknown method tests from http2 - [#1095](https://togithub.com/fastify/fastify/issues/1095)
- Ensure that error-in-post test is run - [#1096](https://togithub.com/fastify/fastify/issues/1096)
- Add test for trust proxy with function - [#1098](https://togithub.com/fastify/fastify/issues/1098)
**Documentation**
- Move Server-Methods into Factory - [#1101](https://togithub.com/fastify/fastify/issues/1101)
- Update Validation-and-Serialization.md - [#1094](https://togithub.com/fastify/fastify/issues/1094)
### [`v1.10.0`](https://togithub.com/fastify/fastify/releases/tag/v1.10.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.9.0...v1.10.0)
**Features**
- Trust proxy - [#1086](https://togithub.com/fastify/fastify/issues/1086)
**Fixes**
- Set UTF8 charset for default 404 and 500 responses - [#1082](https://togithub.com/fastify/fastify/issues/1082)
- Log error after customErrorHandler - [#1073](https://togithub.com/fastify/fastify/issues/1073)
**Documentation**
- Fixed Plugins.md doc - [#1077](https://togithub.com/fastify/fastify/issues/1077)
- add k-fastify-gateway plugin - [#1081](https://togithub.com/fastify/fastify/issues/1081)
- Added fastify-cors to ecosystem - [#1076](https://togithub.com/fastify/fastify/issues/1076)
- Update TypeScript.md - [#1062](https://togithub.com/fastify/fastify/issues/1062)
- Update TypeScript.md - [#1063](https://togithub.com/fastify/fastify/issues/1063)
- Added fastify-vhost plugin - [#1053](https://togithub.com/fastify/fastify/issues/1053)
- Add fastify-wamp-router plugin to docs/Ecosystem.md - [#1002](https://togithub.com/fastify/fastify/issues/1002)
**Internals**
- Refactor content type strings - [#1083](https://togithub.com/fastify/fastify/issues/1083)
- Update light-my-request to the latest version - [#1080](https://togithub.com/fastify/fastify/issues/1080)
- Update split2 to the latest version - [#1074](https://togithub.com/fastify/fastify/issues/1074)
- chore(package): update typescript-eslint-parser to version 18.0.0 - [#1067](https://togithub.com/fastify/fastify/issues/1067)
### [`v1.9.0`](https://togithub.com/fastify/fastify/releases/tag/v1.9.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.8.0...v1.9.0)
**Features**
- Add method to get all shared schemas - [#1046](https://togithub.com/fastify/fastify/issues/1046)
**Enhancements**
- Listen to localhost instead of 127.0.0.1. - [#1047](https://togithub.com/fastify/fastify/issues/1047)
**Fixes**
- Fixes [#1043](https://togithub.com/fastify/fastify/issues/1043) - [#1050](https://togithub.com/fastify/fastify/issues/1050)
- Fixes [#1042](https://togithub.com/fastify/fastify/issues/1042) - [#1050](https://togithub.com/fastify/fastify/issues/1050)
- Resolves issue [#936](https://togithub.com/fastify/fastify/issues/936) - [#1027](https://togithub.com/fastify/fastify/issues/1027)
- fix: if response.setHeader is used, will cause header write after send error - [#1033](https://togithub.com/fastify/fastify/issues/1033)
**Typescript**
- Add type definition for FastifyInstance.all - [#1037](https://togithub.com/fastify/fastify/issues/1037)
**Documentation**
- Change order of Plugins-Guide.md - [#993](https://togithub.com/fastify/fastify/issues/993)
- Fix typos in Server-Methods.md - [#1041](https://togithub.com/fastify/fastify/issues/1041)
- Update Factory.md - [#1039](https://togithub.com/fastify/fastify/issues/1039) [#1038](https://togithub.com/fastify/fastify/issues/1038) [#1036](https://togithub.com/fastify/fastify/issues/1036)
- Fix links - [#1034](https://togithub.com/fastify/fastify/issues/1034)
- Fixed homepage field [#1031](https://togithub.com/fastify/fastify/issues/1031)
### [`v1.8.0`](https://togithub.com/fastify/fastify/releases/tag/v1.8.0)
[Compare Source](https://togithub.com/fastify/fastify/compare/v1.7.0...v1.8.0)
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^1.0.0
->^2.0.0
GitHub Vulnerability Alerts
CVE-2020-8192
A denial of service vulnerability exists in Fastify v2.14.1 and v3.0.0-rc.4 that allows a malicious user to trigger resource exhaustion (when the allErrors option is used) with specially crafted schemas.
Release Notes
fastify/fastify
### [`v2.15.1`](https://togithub.com/fastify/fastify/releases/tag/v2.15.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.15.0...v2.15.1) #### Breaking Change For security reasons we changed the default in the `ajv`configuration. Unfortunately `allErrors: true` is a DoS attack vector for certain schemas. So this changed to `allErrors: false`. See: [ajv-validator/ajv@`334071a`](https://togithub.com/ajv-validator/ajv/commit/334071a) Ref: https://hackerone.com/reports/903521 #### 📚 PR: - Add `PATCH` to `body` validation ([#2351](https://togithub.com/fastify/fastify/issues/2351)) ### [`v2.15.0`](https://togithub.com/fastify/fastify/releases/tag/v2.15.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.14.1...v2.15.0) 📚 PR: - Bind error handler to instance (v2) ([#2305](https://togithub.com/fastify/fastify/issues/2305)) - Fix custom JSON support ([#2309](https://togithub.com/fastify/fastify/issues/2309)) - On ready backport ([#2296](https://togithub.com/fastify/fastify/issues/2296)) ### [`v2.14.1`](https://togithub.com/fastify/fastify/releases/tag/v2.14.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.14.0...v2.14.1) - Tweak haproxy config for issue [#2036](https://togithub.com/fastify/fastify/issues/2036) ([#2270](https://togithub.com/fastify/fastify/issues/2270)) ([#2271](https://togithub.com/fastify/fastify/issues/2271)) - Fix: call preHandler on reply.callNotFound ([#2256](https://togithub.com/fastify/fastify/issues/2256)) ([#2264](https://togithub.com/fastify/fastify/issues/2264)) - doc: doc example to use ajv-errors ([#2254](https://togithub.com/fastify/fastify/issues/2254)) - Log clientError as trace to avoid dev confusion ([#2241](https://togithub.com/fastify/fastify/issues/2241)) ([#2242](https://togithub.com/fastify/fastify/issues/2242)) ### [`v2.14.0`](https://togithub.com/fastify/fastify/releases/tag/v2.14.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.13.1...v2.14.0) 📚 PR: - Support builder-style injection ([#2209](https://togithub.com/fastify/fastify/issues/2209)) - fix [#2214](https://togithub.com/fastify/fastify/issues/2214) ([#2218](https://togithub.com/fastify/fastify/issues/2218)) - http2: fix HEAD requests hanging ([#2233](https://togithub.com/fastify/fastify/issues/2233)) ([#2239](https://togithub.com/fastify/fastify/issues/2239)) ### [`v2.13.1`](https://togithub.com/fastify/fastify/releases/tag/v2.13.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.13.0...v2.13.1) 📚 PR: - Ignore pino@6. - ignore fast-json-stringify in dependabot - Fix link to Fastify Create ([#2146](https://togithub.com/fastify/fastify/issues/2146)) - test for issue [#2148](https://togithub.com/fastify/fastify/issues/2148) where typedefs for query params object were wrong ([#2149](https://togithub.com/fastify/fastify/issues/2149)) - Replace greenkeeper with dependabot ([#2162](https://togithub.com/fastify/fastify/issues/2162)) - add fastify-method-override to ecosystem ([#2165](https://togithub.com/fastify/fastify/issues/2165)) - Update Logging.md ([#2171](https://togithub.com/fastify/fastify/issues/2171)) - Add to fastify-qrcode into Ecosystem ([#2170](https://togithub.com/fastify/fastify/issues/2170)) - docs: errors in async hook ([#2176](https://togithub.com/fastify/fastify/issues/2176)) - docs: use direct references in the "Schema Resolver" example ([#2155](https://togithub.com/fastify/fastify/issues/2155)) - fix: typo in routes doc ([#2182](https://togithub.com/fastify/fastify/issues/2182)) - Add google cloud trace API plugin ([#2185](https://togithub.com/fastify/fastify/issues/2185)) - Fixes crash when using a non-standard error code ([#2184](https://togithub.com/fastify/fastify/issues/2184)) - Fix package-manager CI ([#2189](https://togithub.com/fastify/fastify/issues/2189)) - Fix for Link in docs/Middleware ([#2192](https://togithub.com/fastify/fastify/issues/2192)) ### [`v2.13.0`](https://togithub.com/fastify/fastify/releases/tag/v2.13.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.12.1...v2.13.0) 📚 PR: - Update deps - update GH checkout action ([#2122](https://togithub.com/fastify/fastify/issues/2122)) - fix add schema conflict ([#2077](https://togithub.com/fastify/fastify/issues/2077)) - Use light-my-request types instead of duplicating typings. fixes [#2098](https://togithub.com/fastify/fastify/issues/2098) ([#2124](https://togithub.com/fastify/fastify/issues/2124)) - feat([#1930](https://togithub.com/fastify/fastify/issues/1930)): added option to overrind onBadUrl callback ([#2106](https://togithub.com/fastify/fastify/issues/2106)) - quicker quick start ([#2125](https://togithub.com/fastify/fastify/issues/2125)) - docs: Clarify thrown values must be Errors ([#2126](https://togithub.com/fastify/fastify/issues/2126)) - Update decorators documentation ([#2127](https://togithub.com/fastify/fastify/issues/2127)) - fix: throw error if decorator is called after start ([#2128](https://togithub.com/fastify/fastify/issues/2128)) - Update ci.yml ([#2133](https://togithub.com/fastify/fastify/issues/2133)) - Remove Gitter links ([#2132](https://togithub.com/fastify/fastify/issues/2132)) - fix test ready-start order ([#2136](https://togithub.com/fastify/fastify/issues/2136)) - chore(package): update [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) to version 2.24.0 ([#2138](https://togithub.com/fastify/fastify/issues/2138)) ### [`v2.12.1`](https://togithub.com/fastify/fastify/releases/tag/v2.12.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.12.0...v2.12.1) 📚 PR: - Added fastify-esso plugin ([#2084](https://togithub.com/fastify/fastify/issues/2084)) - add comma to queryStringJsonSchema ([#2085](https://togithub.com/fastify/fastify/issues/2085)) - Throws error if an invalid status code is sent ([#2082](https://togithub.com/fastify/fastify/issues/2082)) - chore: greenkeeper ignore semver ([#2095](https://togithub.com/fastify/fastify/issues/2095)) - Fix inaccurate type of `setErrorHandler` ([#2092](https://togithub.com/fastify/fastify/issues/2092)) - Fixed typo res.res to reply.res ([#2099](https://togithub.com/fastify/fastify/issues/2099)) - docs: use computed key when assigning property to request ([#2100](https://togithub.com/fastify/fastify/issues/2100)) - types: add type of `this` to the not found handler ([#2102](https://togithub.com/fastify/fastify/issues/2102)) - docs: fix header and body generic types ([#2103](https://togithub.com/fastify/fastify/issues/2103)) - fix: multiple route same schema ([#2108](https://togithub.com/fastify/fastify/issues/2108)) - http2: fix req.hostname not set ([#2113](https://togithub.com/fastify/fastify/issues/2113)) - Added fastify-axios plugin ([#2118](https://togithub.com/fastify/fastify/issues/2118)) - docs: Clarify reply.redirect status code docs ([#2121](https://togithub.com/fastify/fastify/issues/2121)) ### [`v2.12.0`](https://togithub.com/fastify/fastify/releases/tag/v2.12.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.11.0...v2.12.0) 📚 PR: - fix: skip serialization for json string ([#1937](https://togithub.com/fastify/fastify/issues/1937)) - Added fastify-casl to Community Plugins ([#1977](https://togithub.com/fastify/fastify/issues/1977)) - feature: added validation context to validation result ([#1915](https://togithub.com/fastify/fastify/issues/1915)) - ESM support ([#1984](https://togithub.com/fastify/fastify/issues/1984)) - fix: adjust hooks body null ([#1991](https://togithub.com/fastify/fastify/issues/1991)) - Added mcollina's plugin "fastify-secure-session" ([#1999](https://togithub.com/fastify/fastify/issues/1999)) - Add fastify-typeorm-plugin to community plugins ([#1998](https://togithub.com/fastify/fastify/issues/1998)) - Remove Azure Pipelines ([#1985](https://togithub.com/fastify/fastify/issues/1985)) - Update validation docs ([#1994](https://togithub.com/fastify/fastify/issues/1994)) - Drop Windows-latest and Node 6 from CI as its failing. ([#2002](https://togithub.com/fastify/fastify/issues/2002)) - doc: fix esm-support anchor ([#2001](https://togithub.com/fastify/fastify/issues/2001)) - Docs(Fluent-Schema.md): fix fluent schema repo link ([#2007](https://togithub.com/fastify/fastify/issues/2007)) - fix - docs - hooks - error handling ([#2000](https://togithub.com/fastify/fastify/issues/2000)) - add fastify-explorer to ecosystem ([#2003](https://togithub.com/fastify/fastify/issues/2003)) - Add a recommendations doc ([#1997](https://togithub.com/fastify/fastify/issues/1997)) - Fix TOC typo in recommendations ([#2009](https://togithub.com/fastify/fastify/issues/2009)) - docs(Typescript): typo ([#2016](https://togithub.com/fastify/fastify/issues/2016)) - docs: fix onResponse parameter ([#2020](https://togithub.com/fastify/fastify/issues/2020)) - Update template bug.md ([#2025](https://togithub.com/fastify/fastify/issues/2025)) - fix replace way enum ([#2026](https://togithub.com/fastify/fastify/issues/2026)) - docs: update inject features ([#2029](https://togithub.com/fastify/fastify/issues/2029)) - Update Copyright Year to 2020 ([#2031](https://togithub.com/fastify/fastify/issues/2031)) - add generic to typescript Reply.send payload ([#2032](https://togithub.com/fastify/fastify/issues/2032)) - Shorten longest line (docs) ([#2035](https://togithub.com/fastify/fastify/issues/2035)) - docs: OpenJS CoC ([#2033](https://togithub.com/fastify/fastify/issues/2033)) - Workaround for using one schema for multiple routes ([#2044](https://togithub.com/fastify/fastify/issues/2044)) - docs: inject chainable methods ([#1917](https://togithub.com/fastify/fastify/issues/1917)) ([#2043](https://togithub.com/fastify/fastify/issues/2043)) - http2: handle graceful close ([#2050](https://togithub.com/fastify/fastify/issues/2050)) - chore(package): update fluent-schema to version 0.10.0 ([#2057](https://togithub.com/fastify/fastify/issues/2057)) - chore(package): update yup to version 0.28.1 ([#2059](https://togithub.com/fastify/fastify/issues/2059)) - Update README.md ([#2064](https://togithub.com/fastify/fastify/issues/2064)) - Added fastify-response-validation to ecosystem ([#2063](https://togithub.com/fastify/fastify/issues/2063)) - fix: use opts of onRoute hook ([#2060](https://togithub.com/fastify/fastify/issues/2060)) - Fixed documentation typo ([#2067](https://togithub.com/fastify/fastify/issues/2067)) - Add missing TS definition for ServerOptions.genReqId function arg ([#2076](https://togithub.com/fastify/fastify/issues/2076)) - fix: throw hooks promise rejection ([#2070](https://togithub.com/fastify/fastify/issues/2070)) ([#2074](https://togithub.com/fastify/fastify/issues/2074)) - Add docs to stop processing hooks with async ([#2079](https://togithub.com/fastify/fastify/issues/2079)) ### [`v2.11.0`](https://togithub.com/fastify/fastify/releases/tag/v2.11.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.10.0...v2.11.0) 📚 PR: - Test: After can access to decorations registered into plugin ([#1891](https://togithub.com/fastify/fastify/issues/1891)) - chore(package): update h2url to version 0.2.0 ([#1902](https://togithub.com/fastify/fastify/issues/1902)) - Add type definition for genReqId option ([#1899](https://togithub.com/fastify/fastify/issues/1899)) - add missing fluent schema link ([#1903](https://togithub.com/fastify/fastify/issues/1903)) - Updates fastify-multer repository ([#1904](https://togithub.com/fastify/fastify/issues/1904)) - Add Node v13 to CI ([#1912](https://togithub.com/fastify/fastify/issues/1912)) - adds fastify-https-redirect to ecosystem ([#1911](https://togithub.com/fastify/fastify/issues/1911)) - Added support for onConstructorPoisoning ([#1910](https://togithub.com/fastify/fastify/issues/1910)) - Add log serializer ([#1901](https://togithub.com/fastify/fastify/issues/1901)) - Added fastify-qs plugin ([#1906](https://togithub.com/fastify/fastify/issues/1906)) - Handle invalid url components ([#1888](https://togithub.com/fastify/fastify/issues/1888)) - Update Actions to use latest versions of all OS's ([#1907](https://togithub.com/fastify/fastify/issues/1907)) - less coverage messages ([#1918](https://togithub.com/fastify/fastify/issues/1918)) - chore(package): update form-data to version 3.0.0 ([#1923](https://togithub.com/fastify/fastify/issues/1923)) - Update documentation to fix anchors for Hooks ([#1928](https://togithub.com/fastify/fastify/issues/1928)) - Added missing types for Server Options ([#1922](https://togithub.com/fastify/fastify/issues/1922)) - Fix/1932 Add version field to the route options ([#1933](https://togithub.com/fastify/fastify/issues/1933)) - Update abstract-logging to v2 ([#1941](https://togithub.com/fastify/fastify/issues/1941)) - Update Routes.md ([#1942](https://togithub.com/fastify/fastify/issues/1942)) - Add fastify-errors-properties plugin to Ecosystem ([#1944](https://togithub.com/fastify/fastify/issues/1944)) - Add fastify-auth0-verify to Ecosystem. ([#1947](https://togithub.com/fastify/fastify/issues/1947)) - chore(package): update fluent-schema to version 0.8.0 ([#1950](https://togithub.com/fastify/fastify/issues/1950)) - Added note about OpenJS Foundation ([#1948](https://togithub.com/fastify/fastify/issues/1948)) - Update onRoute documentation for plugin authors. ([#1956](https://togithub.com/fastify/fastify/issues/1956)) - docs: fix example onRoute with preSerialization ([#1959](https://togithub.com/fastify/fastify/issues/1959)) - feature: Ajv custom options ([#1946](https://togithub.com/fastify/fastify/issues/1946)) - fix: add middleware type for multiple paths ([#1957](https://togithub.com/fastify/fastify/issues/1957)) - fature: register's opts onRegister hook ([#1958](https://togithub.com/fastify/fastify/issues/1958)) - feature: Add support for onSend on routes. ([#1961](https://togithub.com/fastify/fastify/issues/1961)) - Typescript types plugin example docs update ([#1963](https://togithub.com/fastify/fastify/issues/1963)) - chore(package): update fluent-schema to version 0.9.0 ([#1964](https://togithub.com/fastify/fastify/issues/1964)) - minor docs update for https typings ([#1945](https://togithub.com/fastify/fastify/issues/1945)) ### [`v2.10.0`](https://togithub.com/fastify/fastify/releases/tag/v2.10.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.9.0...v2.10.0) **Features:** - Added Reply.statusCode - [#1892](https://togithub.com/fastify/fastify/issues/1892) **Fixes:** - fix schema resolver for plain id - [#1882](https://togithub.com/fastify/fastify/issues/1882) **Documentation:** - doc fix: add .headers to reply docs - [#1890](https://togithub.com/fastify/fastify/issues/1890) ### [`v2.9.0`](https://togithub.com/fastify/fastify/releases/tag/v2.9.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.8.0...v2.9.0) 📚 PR: - Improving Getting Started documentation ([#1837](https://togithub.com/fastify/fastify/issues/1837)) - feat - Implement pluginName ([#1836](https://togithub.com/fastify/fastify/issues/1836)) - feature: add onResponse hook in route declaration ([#1838](https://togithub.com/fastify/fastify/issues/1838)) - Fix eslint "no-misused-promises" error in hooks ([#1843](https://togithub.com/fastify/fastify/issues/1843)) - Update Validation-and-Serialization.md ([#1846](https://togithub.com/fastify/fastify/issues/1846)) - docs(Reply): fix Errors ([#1848](https://togithub.com/fastify/fastify/issues/1848)) - First batch of documentation fixes ([#1850](https://togithub.com/fastify/fastify/issues/1850)) - add FastifyReply#removeHeader method to fastify.d.ts ([#1849](https://togithub.com/fastify/fastify/issues/1849)) - randomize file name in test ([#1856](https://togithub.com/fastify/fastify/issues/1856)) - Move Nathan Woltman to Past Collaborators ([#1857](https://togithub.com/fastify/fastify/issues/1857)) - add github workflow for CI and website, ([#1853](https://togithub.com/fastify/fastify/issues/1853)) - possible fixes ([#1861](https://togithub.com/fastify/fastify/issues/1861)) - fix ([#1862](https://togithub.com/fastify/fastify/issues/1862)) - Fix/pkg manager ci ([#1863](https://togithub.com/fastify/fastify/issues/1863)) - install yarn and pnpm in the host env ([#1865](https://togithub.com/fastify/fastify/issues/1865)) - Rules to contributing to plugins ([#1842](https://togithub.com/fastify/fastify/issues/1842)) - Make reply a thenable ([#1869](https://togithub.com/fastify/fastify/issues/1869)) - docs(Plugins): removed prefix from list with fastify-plugin ([#1819](https://togithub.com/fastify/fastify/issues/1819)) - Add SerayaEryn to team list ([#1867](https://togithub.com/fastify/fastify/issues/1867)) - Don't change resolved schema ([#1872](https://togithub.com/fastify/fastify/issues/1872)) - Fix Plugin type in fastify.d.ts ([#1841](https://togithub.com/fastify/fastify/issues/1841)) - fix(package): update tiny-lru to version 7.0.0 ([#1874](https://togithub.com/fastify/fastify/issues/1874)) - feature: schema resolver ([#1858](https://togithub.com/fastify/fastify/issues/1858)) - Fix warning for onError hook ([#1876](https://togithub.com/fastify/fastify/issues/1876)) - Update Server.md ([#1878](https://togithub.com/fastify/fastify/issues/1878)) ### [`v2.8.0`](https://togithub.com/fastify/fastify/releases/tag/v2.8.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.7.1...v2.8.0) 📚 PR: - docs(Serverless): add missing punctuation marks ([#1783](https://togithub.com/fastify/fastify/issues/1783)) - Add toStrinTag to errors ([#1785](https://togithub.com/fastify/fastify/issues/1785)) - \[ts] Add `handler` to `RouteShorthandOptions` ([#1788](https://togithub.com/fastify/fastify/issues/1788)) - typo: typescript-server.ts ([#1791](https://togithub.com/fastify/fastify/issues/1791)) - Add request property to reply documentation ([#1792](https://togithub.com/fastify/fastify/issues/1792)) - Use .isFluentSchema instead of symbol to check for fluent-schema ([#1794](https://togithub.com/fastify/fastify/issues/1794)) - fix inverted if in serverless example ([#1797](https://togithub.com/fastify/fastify/issues/1797)) - Ensure that header properties are not duplicated in schema ([#1806](https://togithub.com/fastify/fastify/issues/1806)) - docs(Hooks): Add each Hook to a title ([#1801](https://togithub.com/fastify/fastify/issues/1801)) - Docs(typescript) and other typos ([#1811](https://togithub.com/fastify/fastify/issues/1811)) - docs(Hooks): ([#1810](https://togithub.com/fastify/fastify/issues/1810)) - Update standard ([#1816](https://togithub.com/fastify/fastify/issues/1816)) - add plugin for autogenerate crud route in Ecosystem ([#1813](https://togithub.com/fastify/fastify/issues/1813)) - chore(package): update [@typescript-eslint/parser](https://togithub.com/typescript-eslint/parser) to version 2.0.0 ([#1799](https://togithub.com/fastify/fastify/issues/1799)) - Improve default 404 route ([#1826](https://togithub.com/fastify/fastify/issues/1826)) - Schema build error ([#1808](https://togithub.com/fastify/fastify/issues/1808)) - Update Ecosystem.md ([#1827](https://togithub.com/fastify/fastify/issues/1827)) - fix: premature close test ([#1833](https://togithub.com/fastify/fastify/issues/1833)) - Added Zeit Now docs ([#1824](https://togithub.com/fastify/fastify/issues/1824)) - greenkeeper ignore [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/eslint-plugin) ([#1835](https://togithub.com/fastify/fastify/issues/1835)) ### [`v2.7.1`](https://togithub.com/fastify/fastify/releases/tag/v2.7.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.7.0...v2.7.1) **Fixes:** - Ensure we are not running the handler if reply.sent is true - [#1778](https://togithub.com/fastify/fastify/issues/1778) - better typing for headers object - [#1775](https://togithub.com/fastify/fastify/issues/1775) **Documentation:** - Added Google Cloud Run docs - [#1770](https://togithub.com/fastify/fastify/issues/1770) - docs: simplify serverless usage - [#1748](https://togithub.com/fastify/fastify/issues/1748) ### [`v2.7.0`](https://togithub.com/fastify/fastify/releases/tag/v2.7.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.6.0...v2.7.0) **Features:** - Added `return503OnClosing` option - [#1723](https://togithub.com/fastify/fastify/issues/1723) **Fixes:** - Fix bug regarding Joi schemas (issue [#1767](https://togithub.com/fastify/fastify/issues/1767)) - [#1768](https://togithub.com/fastify/fastify/issues/1768) **Documentation:** - docs(Plugins): Fix typo - [#1764](https://togithub.com/fastify/fastify/issues/1764) - Change the `next` to `done` inside documentation - [#1756](https://togithub.com/fastify/fastify/issues/1756) - security policy - [#1738](https://togithub.com/fastify/fastify/issues/1738) - docs(Ecosystem): Add fastify-no-additional-properties community plugin - [#1762](https://togithub.com/fastify/fastify/issues/1762) - docs(Hooks): Add payload inside example to prevent bugs - [#1739](https://togithub.com/fastify/fastify/issues/1739) - docs(Hooks): Fix typo - [#1759](https://togithub.com/fastify/fastify/issues/1759) - change code examples in Reply documentation - [#1751](https://togithub.com/fastify/fastify/issues/1751) - Update Routes.md - [#1743](https://togithub.com/fastify/fastify/issues/1743) - Update Server.md - [#1718](https://togithub.com/fastify/fastify/issues/1718) - docs: fix typos for logging - [#1701](https://togithub.com/fastify/fastify/issues/1701) - docs(Ecosystem): Add cls-rtracer community plugin - [#1731](https://togithub.com/fastify/fastify/issues/1731) - docs: move Trivikram to past collaborators - [#1727](https://togithub.com/fastify/fastify/issues/1727) - docs(Ecosystem): Add plugin community fastify-reverse-routes - [#1728](https://togithub.com/fastify/fastify/issues/1728) - docs(Ecosystem): Removed fastify-nuxt community package - [#1725](https://togithub.com/fastify/fastify/issues/1725) - docs(Ecosystem): Add plugin community fastify-amqp - [#1724](https://togithub.com/fastify/fastify/issues/1724) ### [`v2.6.0`](https://togithub.com/fastify/fastify/releases/tag/v2.6.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.5.0...v2.6.0) **Features:** - feature: custom serializator - [#1706](https://togithub.com/fastify/fastify/issues/1706) - allow nullable option for use cases like [#1709](https://togithub.com/fastify/fastify/issues/1709) - [#1711](https://togithub.com/fastify/fastify/issues/1711) - Improve support for Fluent Schema - [#1719](https://togithub.com/fastify/fastify/issues/1719) **Documentation:** - Clarify that user-provided data relates to the schemas - [#1722](https://togithub.com/fastify/fastify/issues/1722) ### [`v2.5.0`](https://togithub.com/fastify/fastify/releases/tag/v2.5.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.4.1...v2.5.0) **Features:** - Add ability to get response time on reply - [#1697](https://togithub.com/fastify/fastify/issues/1697) - Alias schema.query to schema.querystring ([#1690](https://togithub.com/fastify/fastify/issues/1690)) - [#1694](https://togithub.com/fastify/fastify/issues/1694) **Fixes:** - Added case sensitive option to definition file - [#1691](https://togithub.com/fastify/fastify/issues/1691) - fix: use reply instead of original res - [#1704](https://togithub.com/fastify/fastify/issues/1704) - Removes double call to afterRouteAdded when ignoreTrailingSlash === true - [#1675](https://togithub.com/fastify/fastify/issues/1675) - Fix http2SecureServer test - [#1681](https://togithub.com/fastify/fastify/issues/1681) - Adds defaults to TS generics definitions - [#1669](https://togithub.com/fastify/fastify/issues/1669) **Documentation:** - docs: fix typos for logging - [#1701](https://togithub.com/fastify/fastify/issues/1701) - Add RBAC plugin - [#1692](https://togithub.com/fastify/fastify/issues/1692) - Update docs to fix req.body inside logger req - [#1695](https://togithub.com/fastify/fastify/issues/1695) ### [`v2.4.1`](https://togithub.com/fastify/fastify/releases/tag/v2.4.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.4.0...v2.4.1) - Add .git folder to NPM ignore - [#1663](https://togithub.com/fastify/fastify/issues/1663) ### [`v2.4.0`](https://togithub.com/fastify/fastify/releases/tag/v2.4.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.3.0...v2.4.0) **Features** - Use secure-json-parse instead of bourne ([#1619](https://togithub.com/fastify/fastify/issues/1619)) - Add option to disable request start and end logging ([#1629](https://togithub.com/fastify/fastify/issues/1629)) **Fixes** - Add typings for disableRequestLogging option ([#1633](https://togithub.com/fastify/fastify/issues/1633)) - Catches onRoute hooks errors ([#1651](https://togithub.com/fastify/fastify/issues/1651)) - Emit warning synchronously ([#1657](https://togithub.com/fastify/fastify/issues/1657)) - Hooks: throw on incorrect async function ([#1608](https://togithub.com/fastify/fastify/issues/1608)) - fix(types): fix register options ([#1644](https://togithub.com/fastify/fastify/issues/1644)) **Documentation** - add: more example on how use the $ref keyword ([#1613](https://togithub.com/fastify/fastify/issues/1613)) - Minor host binding documentation rewrite: ([#1616](https://togithub.com/fastify/fastify/issues/1616)) - Add fastify-feature-flags plugin to Ecosystem ([#1614](https://togithub.com/fastify/fastify/issues/1614)) - docs: fix a broken anchor tag in Logging page ([#1622](https://togithub.com/fastify/fastify/issues/1622)) - improve docs of fastify.close() ([#1632](https://togithub.com/fastify/fastify/issues/1632)) - Added `fastify-decorators` to Ecosystem.md ([#1645](https://togithub.com/fastify/fastify/issues/1645)) - offboarding steps ([#1646](https://togithub.com/fastify/fastify/issues/1646)) - Add fastify-objectionjs plugin to the Ecosystem ([#1638](https://togithub.com/fastify/fastify/issues/1638)) - add example repo link ([#1648](https://togithub.com/fastify/fastify/issues/1648)) - Make some spelling and grammar corrections to TS.md ([#1640](https://togithub.com/fastify/fastify/issues/1640)) - docs(reply): clarify settings headers ([#1642](https://togithub.com/fastify/fastify/issues/1642)) - Docs: add links for Ajv i18n and custom errors ([#1588](https://togithub.com/fastify/fastify/issues/1588)) - Updated docs to reflect internal reorg ([#1575](https://togithub.com/fastify/fastify/issues/1575)) **Internals** - chore(travis) add 12 ([#1611](https://togithub.com/fastify/fastify/issues/1611)) - add node v12 to ci ([#1610](https://togithub.com/fastify/fastify/issues/1610)) - Updated azure pipelines configuration ([#1639](https://togithub.com/fastify/fastify/issues/1639)) - chore(package): update dns-prefetch-control to version 0.2.0 ([#1641](https://togithub.com/fastify/fastify/issues/1641)) - add tap into greenkeeper ignore list ([#1643](https://togithub.com/fastify/fastify/issues/1643)) - Fix typo in azure-pipelines.yml ([#1649](https://togithub.com/fastify/fastify/issues/1649)) - chore(package): update flatstr to version 1.0.12 ([#1653](https://togithub.com/fastify/fastify/issues/1653)) - chore(package): update send to version 0.17.0 ([#1627](https://togithub.com/fastify/fastify/issues/1627)) - internal: moved route code ([#1625](https://togithub.com/fastify/fastify/issues/1625)) ### [`v2.3.0`](https://togithub.com/fastify/fastify/releases/tag/v2.3.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.2.0...v2.3.0) **Features:** - Add onRequest route hook - [#1594](https://togithub.com/fastify/fastify/issues/1594) **Fixes:** - Resolve issue 1584 - [#1589](https://togithub.com/fastify/fastify/issues/1589) - fix/mutated-schemas at startup - [#1572](https://togithub.com/fastify/fastify/issues/1572) **Documentation:** - Warning notice for new Function - [#1605](https://togithub.com/fastify/fastify/issues/1605) - Added plugin fastify-normalize-request-reply - [#1600](https://togithub.com/fastify/fastify/issues/1600) - Docs: Update Server#logger to discuss custom logger option - [#1577](https://togithub.com/fastify/fastify/issues/1577) - first serverless documentation for AWS Lambda - [#1564](https://togithub.com/fastify/fastify/issues/1564) - Fix typo in Hooks.md - [#1590](https://togithub.com/fastify/fastify/issues/1590) - fix/schema-typo - [#1585](https://togithub.com/fastify/fastify/issues/1585) - TOC added to Reply.md - [#1582](https://togithub.com/fastify/fastify/issues/1582) - Update Routes.md - [#1579](https://togithub.com/fastify/fastify/issues/1579) - Update Ecosystem.md - [#1570](https://togithub.com/fastify/fastify/issues/1570) - doc add fastify-schema-constraint to ecosystem - [#1573](https://togithub.com/fastify/fastify/issues/1573) - Fix ignoreTrailingSlash example - [#1574](https://togithub.com/fastify/fastify/issues/1574) **Internals:** - Faster startup time - [#1597](https://togithub.com/fastify/fastify/issues/1597) - use a cache for Ajv compiled schemas - [#1606](https://togithub.com/fastify/fastify/issues/1606) ### [`v2.2.0`](https://togithub.com/fastify/fastify/releases/tag/v2.2.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.1.0...v2.2.0) **Features:** - Add option to match only prefix root with paths - [#1487](https://togithub.com/fastify/fastify/issues/1487) - add: schemaCompiler property - [#1533](https://togithub.com/fastify/fastify/issues/1533) **Fixes:** - Type this in RequestHandler - [#1539](https://togithub.com/fastify/fastify/issues/1539) - Fix initialConfigValidation error handling - [#1561](https://togithub.com/fastify/fastify/issues/1561) - fix/mutated-schemas - [#1565](https://togithub.com/fastify/fastify/issues/1565) **Documentation:** - Update Request.md - [#1549](https://togithub.com/fastify/fastify/issues/1549) - Update Server.md - [#1550](https://togithub.com/fastify/fastify/issues/1550) - Update Ecosystem.md - [#1559](https://togithub.com/fastify/fastify/issues/1559) - Document `genReqId` being called even when 'request-id' header is supplied - [#1566](https://togithub.com/fastify/fastify/issues/1566) **Test:** - Fix [#1537](https://togithub.com/fastify/fastify/issues/1537) - [#1545](https://togithub.com/fastify/fastify/issues/1545) **Internals:** - Chore 404 - [#1547](https://togithub.com/fastify/fastify/issues/1547) ### [`v2.1.0`](https://togithub.com/fastify/fastify/releases/tag/v2.1.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.0.1...v2.1.0) **Features:** - feat: support more signatures for listen - [#1463](https://togithub.com/fastify/fastify/issues/1463) - Feature: onRegister hook - [#1526](https://togithub.com/fastify/fastify/issues/1526) - InitialConfig - [#1471](https://togithub.com/fastify/fastify/issues/1471) - Pass ip, ips, and hostname to Request object - [#1476](https://togithub.com/fastify/fastify/issues/1476) **Fixes:** - feat: add pluginTimeout options in d.ts - [#1527](https://togithub.com/fastify/fastify/issues/1527) - fix/schema error text - [#1513](https://togithub.com/fastify/fastify/issues/1513) - Fix the default for the modifyCoreObjects option - [#1517](https://togithub.com/fastify/fastify/issues/1517) **Docs:** - Adds fastify-flash to Ecosystem.md - [#1531](https://togithub.com/fastify/fastify/issues/1531) - Add apollo-server-fastify to the ecosystem. - [#1524](https://togithub.com/fastify/fastify/issues/1524) - Add res serializer to docs - [#1455](https://togithub.com/fastify/fastify/issues/1455) - Update Ecosystem.md - [#1488](https://togithub.com/fastify/fastify/issues/1488) - Added fastify-mongoose-driver to Community Plugins - [#1490](https://togithub.com/fastify/fastify/issues/1490) - Docs: clarify error handling in non-async routes - [#1515](https://togithub.com/fastify/fastify/issues/1515) - Documentation update for avvio PR 82 - [#1498](https://togithub.com/fastify/fastify/issues/1498) - added all the hooks in the example file - [#1520](https://togithub.com/fastify/fastify/issues/1520) - Updated docs - [#1522](https://togithub.com/fastify/fastify/issues/1522) **Internals:** - Init options - [#1530](https://togithub.com/fastify/fastify/issues/1530) - Fix [#1506](https://togithub.com/fastify/fastify/issues/1506) - [#1528](https://togithub.com/fastify/fastify/issues/1528) - Chore: refactor fastify.js - [#1506](https://togithub.com/fastify/fastify/issues/1506) ### [`v2.0.1`](https://togithub.com/fastify/fastify/releases/tag/v2.0.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v2.0.0...v2.0.1) **Fixes:** - fix: unused shared schema to serializer - [#1496](https://togithub.com/fastify/fastify/issues/1496) **Docs:** - Docs/fluent schema - [#1485](https://togithub.com/fastify/fastify/issues/1485) - add fastify-405 plugin - [#1501](https://togithub.com/fastify/fastify/issues/1501) - Updated benchmarks - [#1497](https://togithub.com/fastify/fastify/issues/1497) - Added fastify-influxdb to Community Plugins - [#1472](https://togithub.com/fastify/fastify/issues/1472) - Updated LTS.md - [#1477](https://togithub.com/fastify/fastify/issues/1477) **Internals:** - refactor: remove unnecessary condition - [#1505](https://togithub.com/fastify/fastify/issues/1505) **Dependencies**: - chore(package): update fast-json-stringify to version 1.11.2 - [#1500](https://togithub.com/fastify/fastify/issues/1500) - Update deps - [#1493](https://togithub.com/fastify/fastify/issues/1493) ### [`v2.0.0`](https://togithub.com/fastify/fastify/releases/tag/v2.0.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.6...v2.0.0) **Official announcement:** *https://medium.com/[@fastifyjs/8275d613fba4](https://togithub.com/fastifyjs/8275d613fba4)* **Breaking changes:** - Added onError hook - [#1236](https://togithub.com/fastify/fastify/issues/1236) - Move all \_ prefixed properties to Symbols in next - [#1237](https://togithub.com/fastify/fastify/issues/1237) [#1128](https://togithub.com/fastify/fastify/issues/1128) - Plugins can now receive both /prefix and prefix/ - [#1228](https://togithub.com/fastify/fastify/issues/1228) - Default error handler that logs the error - [#1135](https://togithub.com/fastify/fastify/issues/1135) - Ensure Reply#serialize uses custom serializer - [#1163](https://togithub.com/fastify/fastify/issues/1163) - Better error management - [#1168](https://togithub.com/fastify/fastify/issues/1168) - Bumped avvio to 6.0.0. - [#1201](https://togithub.com/fastify/fastify/issues/1201) - Added preValidation hook - [#1153](https://togithub.com/fastify/fastify/issues/1153) - Change basePath to prefix - [#1183](https://togithub.com/fastify/fastify/issues/1183) - Separate logging and reqId options - [#1164](https://togithub.com/fastify/fastify/issues/1164) [#1166](https://togithub.com/fastify/fastify/issues/1166) - Pino v5 - [#1065](https://togithub.com/fastify/fastify/issues/1065) - Updated Not found handling - [#1084](https://togithub.com/fastify/fastify/issues/1084) - Hooks: always use Fastify core objects - [#1066](https://togithub.com/fastify/fastify/issues/1066) - Remove req.id in serializer - [#1032](https://togithub.com/fastify/fastify/issues/1032) - Extended support of cross-platform builds and yarn official support - [#1226](https://togithub.com/fastify/fastify/issues/1226) **Features:** - Support custom route versioning strategies - [#1422](https://togithub.com/fastify/fastify/issues/1422) - Protect against prototype poisoning - [#1427](https://togithub.com/fastify/fastify/issues/1427) - feat: Added preSerialization hook and route option. - [#1408](https://togithub.com/fastify/fastify/issues/1408) - Added preParsing hook. - [#1377](https://togithub.com/fastify/fastify/issues/1377) - PR to fix issue [#1269](https://togithub.com/fastify/fastify/issues/1269) - add plain text parser to core - [#1280](https://togithub.com/fastify/fastify/issues/1280) **Enhancements:** - Update default ajv instance to include all errors (breaking change) - [#1398](https://togithub.com/fastify/fastify/issues/1398) - Set log level to warn for all sendStream errors - [#1415](https://togithub.com/fastify/fastify/issues/1415) - log "premature close" stream errors as warnings - [#1407](https://togithub.com/fastify/fastify/issues/1407) - Add plugin name in case of dependency error - [#1371](https://togithub.com/fastify/fastify/issues/1371) - move ECONNRESET log from error to debug - [#1363](https://togithub.com/fastify/fastify/issues/1363) - Fix [#1334](https://togithub.com/fastify/fastify/issues/1334) - [#1348](https://togithub.com/fastify/fastify/issues/1348) - Throw error for improper node js version using http2 - [#1346](https://togithub.com/fastify/fastify/issues/1346) **Fixes:** - Allow override of the default content-type parser inside a plugin - [#1435](https://togithub.com/fastify/fastify/issues/1435) - fix: json schema $ref with $id set in definitions - [#1425](https://togithub.com/fastify/fastify/issues/1425) - Drop [@types/pino](https://togithub.com/types/pino) from dependencies - [#1366](https://togithub.com/fastify/fastify/issues/1366) - Fix setting multiple cookies as multiple 'Set-Cookie' headers. (fix [#1358](https://togithub.com/fastify/fastify/issues/1358)) - [#1359](https://togithub.com/fastify/fastify/issues/1359) - fix: [#1353](https://togithub.com/fastify/fastify/issues/1353) ignore evaluation of $schema field in json-schema - [#1354](https://togithub.com/fastify/fastify/issues/1354) - Establish reply.sent = true as a proper way to skip async/await handling - [#1336](https://togithub.com/fastify/fastify/issues/1336) - Handle response validation error - [#1328](https://togithub.com/fastify/fastify/issues/1328) **TypeScript**: - Improve typings with an overload for the close() method, which returns a promise - [#1404](https://togithub.com/fastify/fastify/issues/1404) - fix(types): add missing Reply functions - [#1299](https://togithub.com/fastify/fastify/issues/1299) - feat(types): add custom error type - [#1250](https://togithub.com/fastify/fastify/issues/1250) - fix: add querystringParser to ServerOptions - [#1285](https://togithub.com/fastify/fastify/issues/1285) **Documentation**: - Fixed typos - [#1431](https://togithub.com/fastify/fastify/issues/1431) - fix document of handle validation error - [#1430](https://togithub.com/fastify/fastify/issues/1430) - Update copyright year to 2019 - [#1362](https://togithub.com/fastify/fastify/issues/1362) - fastify-react->fastify-nextjs - [#1382](https://togithub.com/fastify/fastify/issues/1382) - docs(ecosystem): add fastify-gql - [#1343](https://togithub.com/fastify/fastify/issues/1343) - Update Hooks.md - [#1337](https://togithub.com/fastify/fastify/issues/1337) - Fix [#1278](https://togithub.com/fastify/fastify/issues/1278) - [#1301](https://togithub.com/fastify/fastify/issues/1301) - doc: add links to Errors.md - [#1326](https://togithub.com/fastify/fastify/issues/1326) - doc: remove res.end from middleware page - [#1327](https://togithub.com/fastify/fastify/issues/1327) - Add express middleware compatibility notice - [#1313](https://togithub.com/fastify/fastify/issues/1313) - Update Server.md - [#1322](https://togithub.com/fastify/fastify/issues/1322) - Rename Errros.md to Errors.md - [#1323](https://togithub.com/fastify/fastify/issues/1323) - docs(decorators): fix "view" typos - [#1309](https://togithub.com/fastify/fastify/issues/1309) - Added fastify-sentry to Community Plugins - [#1287](https://togithub.com/fastify/fastify/issues/1287) - Update Logging.md - [#1292](https://togithub.com/fastify/fastify/issues/1292) - Update benchmarks to reflect latest measurements - [#1294](https://togithub.com/fastify/fastify/issues/1294) - Update Hooks.md - [#1291](https://togithub.com/fastify/fastify/issues/1291) - Add fastify-cockroachdb to Community plugins - [#1286](https://togithub.com/fastify/fastify/issues/1286) - add fastify-healthcheck to comunity plugins - [#1244](https://togithub.com/fastify/fastify/issues/1244) ### [`v1.14.6`](https://togithub.com/fastify/fastify/releases/tag/v1.14.6) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.5...v1.14.6) **Fixes:** - Type this in RequestHandler - [#1539](https://togithub.com/fastify/fastify/issues/1539) - fix/mutated-schemas at startup - [#1572](https://togithub.com/fastify/fastify/issues/1572) ### [`v1.14.5`](https://togithub.com/fastify/fastify/releases/tag/v1.14.5) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.4...v1.14.5) **Test:** - Fix [#1537](https://togithub.com/fastify/fastify/issues/1537) - [#1545](https://togithub.com/fastify/fastify/issues/1545) ### [`v1.14.4`](https://togithub.com/fastify/fastify/releases/tag/v1.14.4) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.3...v1.14.4) **Fixes:** - feat: add pluginTimeout options in d.ts - [#1527](https://togithub.com/fastify/fastify/issues/1527) - Cherry pick: fix/schema error text - [#1516](https://togithub.com/fastify/fastify/issues/1516) ### [`v1.14.3`](https://togithub.com/fastify/fastify/releases/tag/v1.14.3) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.2...v1.14.3) **Fixes:** - fix: unused shared schema to serializer - [#1502](https://togithub.com/fastify/fastify/issues/1502) ### [`v1.14.2`](https://togithub.com/fastify/fastify/releases/tag/v1.14.2) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.1...v1.14.2) **Fixes:** - fix: don't add twice a json schema to an encapsulated object in tree - [#1462](https://togithub.com/fastify/fastify/issues/1462) - Fix HTTP/2 request while closing - [#1461](https://togithub.com/fastify/fastify/issues/1461) - Cherry-Pick: fix/addSchema to serialization - [#1447](https://togithub.com/fastify/fastify/issues/1447) ### [`v1.14.1`](https://togithub.com/fastify/fastify/releases/tag/v1.14.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.14.0...v1.14.1) **Fixes** - Allow override of the default content-type parser inside a plugin - [#1434](https://togithub.com/fastify/fastify/issues/1434) ### [`v1.14.0`](https://togithub.com/fastify/fastify/releases/tag/v1.14.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.4...v1.14.0) **Features** - Support custom route versioning strategies - [#1422](https://togithub.com/fastify/fastify/issues/1422) - Protect against prototype poisoning - [#1427](https://togithub.com/fastify/fastify/issues/1427) **Fixes** - fix: json schema $ref with $id set in definitions - [#1425](https://togithub.com/fastify/fastify/issues/1425) ### [`v1.13.4`](https://togithub.com/fastify/fastify/releases/tag/v1.13.4) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.3...v1.13.4) **Enhancements** - move ECONNRESET log from error to debug - [#1363](https://togithub.com/fastify/fastify/issues/1363) **Fixes** - Fix setting multiple cookies as multiple 'Set-Cookie' headers. - [#1360](https://togithub.com/fastify/fastify/issues/1360) - fix: [#1353](https://togithub.com/fastify/fastify/issues/1353) ignore evaluation of $schema field in json-schema - [#1354](https://togithub.com/fastify/fastify/issues/1354) **Documentation** - Update copyright year to 2019 - [#1364](https://togithub.com/fastify/fastify/issues/1364) ### [`v1.13.3`](https://togithub.com/fastify/fastify/releases/tag/v1.13.3) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.2...v1.13.3) **Fixes** - Handle response validation error - [#1328](https://togithub.com/fastify/fastify/issues/1328) - Establish reply.sent = true as a proper way to skip async/await handling - [#1336](https://togithub.com/fastify/fastify/issues/1336) ### [`v1.13.2`](https://togithub.com/fastify/fastify/releases/tag/v1.13.2) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.1...v1.13.2) - update ajv and autocannon to the latest versions [https://github.com/fastify/fastify/pull/1296](https://togithub.com/fastify/fastify/pull/1296) ### [`v1.13.1`](https://togithub.com/fastify/fastify/releases/tag/v1.13.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.13.0...v1.13.1) - chore: pin ajv to 6.5.5 - [#1282](https://togithub.com/fastify/fastify/issues/1282) ### [`v1.13.0`](https://togithub.com/fastify/fastify/releases/tag/v1.13.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.12.1...v1.13.0) **Features** - Enable nested plugins to override decorators - [#1199](https://togithub.com/fastify/fastify/issues/1199) - Attach validation result to request - [#1238](https://togithub.com/fastify/fastify/issues/1238) **Enhancements** - Prevent losing stacktrace onEnd - [#1223](https://togithub.com/fastify/fastify/issues/1223) **Fixes** - Add `fastify-babel` - [#1219](https://togithub.com/fastify/fastify/issues/1219) - Update contentTypeParser.js - [#1229](https://togithub.com/fastify/fastify/issues/1229) **Typescript** - typings: fix allowHTTP1 flag for http2 servers - [#1222](https://togithub.com/fastify/fastify/issues/1222) **Documentation** - Update Reply.md - [#1227](https://togithub.com/fastify/fastify/issues/1227) - Add `fastify-babel` - [#1219](https://togithub.com/fastify/fastify/issues/1219) - doc(logging): fix broken link - [#1215](https://togithub.com/fastify/fastify/issues/1215) - Update validation docs to include information about error handling - [#1232](https://togithub.com/fastify/fastify/issues/1232) ### [`v1.12.1`](https://togithub.com/fastify/fastify/releases/tag/v1.12.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.12.0...v1.12.1) ##### Bugfix - Fix content length for utf-8 characters [#1187](https://togithub.com/fastify/fastify/issues/1187) ### [`v1.12.0`](https://togithub.com/fastify/fastify/releases/tag/v1.12.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.11.2...v1.12.0) **Enhancements** - Fix missing object wrapper for errors in pino log - [#1180](https://togithub.com/fastify/fastify/issues/1180) - Complete support for Joi. Added test - [#1178](https://togithub.com/fastify/fastify/issues/1178) [#1179](https://togithub.com/fastify/fastify/issues/1179) **Fixes** - fix the logic of convert chunk segement into string - [#1172](https://togithub.com/fastify/fastify/issues/1172) **Typescript** - Add overloads for { parseAs: "string" } or { parseAs: "buffer" } - [#1162](https://togithub.com/fastify/fastify/issues/1162) - added generic Query, Params, Headers, and Body types - [#1160](https://togithub.com/fastify/fastify/issues/1160) **Internals** - Update genReqId test name - [#1167](https://togithub.com/fastify/fastify/issues/1167) **Documentation** - Keep consistent es6 usage in readme example - [#1181](https://togithub.com/fastify/fastify/issues/1181) - added fastify-jwt-webapp - [#1141](https://togithub.com/fastify/fastify/issues/1141) - Update Ecosystem.md - [#1170](https://togithub.com/fastify/fastify/issues/1170) - Add [@cemremengu](https://togithub.com/cemremengu) to contributors - [#1176](https://togithub.com/fastify/fastify/issues/1176) - Correct typo in docs/Plugins-Guide.md - [#1173](https://togithub.com/fastify/fastify/issues/1173) - Add fastify-webpack-hmr community plugin to ECOSYSTEM.md - [#1152](https://togithub.com/fastify/fastify/issues/1152) - Updated README and tap runner - [#1171](https://togithub.com/fastify/fastify/issues/1171) - Error Handling Documentation - [#1130](https://togithub.com/fastify/fastify/issues/1130) - Update ContentTypeParser.md - [#1157](https://togithub.com/fastify/fastify/issues/1157) - Add fastify-vue-plugin to Ecosystem.md - [#1151](https://togithub.com/fastify/fastify/issues/1151) - Add fastify-loader to Ecosystem.md - [#1154](https://togithub.com/fastify/fastify/issues/1154) - Add badge of vulnerabilities from snyk.io - [#1149](https://togithub.com/fastify/fastify/issues/1149) ### [`v1.11.2`](https://togithub.com/fastify/fastify/releases/tag/v1.11.2) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.11.1...v1.11.2) **Internals** - Handle promises in the error handler with the same logic of normal handlers - [#1134](https://togithub.com/fastify/fastify/issues/1134) - Rename ContentTypeParser - [#1123](https://togithub.com/fastify/fastify/issues/1123) - after should not cause inject() to be called - [#1132](https://togithub.com/fastify/fastify/issues/1132) **Documentation** - Add trivikr@ to the collaborators list - [#1139](https://togithub.com/fastify/fastify/issues/1139) - Updated ecosystem doc - [#1137](https://togithub.com/fastify/fastify/issues/1137) ### [`v1.11.1`](https://togithub.com/fastify/fastify/releases/tag/v1.11.1) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.11.0...v1.11.1) - Revert of [#1073](https://togithub.com/fastify/fastify/issues/1073) - [#1119](https://togithub.com/fastify/fastify/issues/1119) - Add fastify-file-upload to ecosystem [https://github.com/fastify/fastify/pull/1106](https://togithub.com/fastify/fastify/pull/1106) - Fix decorating requests and replies with getter/setter notation - [#1114](https://togithub.com/fastify/fastify/issues/1114) - Update HTTPS type definitions - [#1109](https://togithub.com/fastify/fastify/issues/1109) - Refactor and update tests - [#1103](https://togithub.com/fastify/fastify/issues/1103) [#1110](https://togithub.com/fastify/fastify/issues/1110) [#1111](https://togithub.com/fastify/fastify/issues/1111) - Update Snazzy - [#1112](https://togithub.com/fastify/fastify/issues/1112) ### [`v1.11.0`](https://togithub.com/fastify/fastify/releases/tag/v1.11.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.10.0...v1.11.0) **Features** - Added pluginTimeout option - [#1088](https://togithub.com/fastify/fastify/issues/1088) **Internals** - Override address in listen instead of listenPromise - [#1102](https://togithub.com/fastify/fastify/issues/1102) - Rename and call unknown method tests from http2 - [#1095](https://togithub.com/fastify/fastify/issues/1095) - Ensure that error-in-post test is run - [#1096](https://togithub.com/fastify/fastify/issues/1096) - Add test for trust proxy with function - [#1098](https://togithub.com/fastify/fastify/issues/1098) **Documentation** - Move Server-Methods into Factory - [#1101](https://togithub.com/fastify/fastify/issues/1101) - Update Validation-and-Serialization.md - [#1094](https://togithub.com/fastify/fastify/issues/1094) ### [`v1.10.0`](https://togithub.com/fastify/fastify/releases/tag/v1.10.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.9.0...v1.10.0) **Features** - Trust proxy - [#1086](https://togithub.com/fastify/fastify/issues/1086) **Fixes** - Set UTF8 charset for default 404 and 500 responses - [#1082](https://togithub.com/fastify/fastify/issues/1082) - Log error after customErrorHandler - [#1073](https://togithub.com/fastify/fastify/issues/1073) **Documentation** - Fixed Plugins.md doc - [#1077](https://togithub.com/fastify/fastify/issues/1077) - add k-fastify-gateway plugin - [#1081](https://togithub.com/fastify/fastify/issues/1081) - Added fastify-cors to ecosystem - [#1076](https://togithub.com/fastify/fastify/issues/1076) - Update TypeScript.md - [#1062](https://togithub.com/fastify/fastify/issues/1062) - Update TypeScript.md - [#1063](https://togithub.com/fastify/fastify/issues/1063) - Added fastify-vhost plugin - [#1053](https://togithub.com/fastify/fastify/issues/1053) - Add fastify-wamp-router plugin to docs/Ecosystem.md - [#1002](https://togithub.com/fastify/fastify/issues/1002) **Internals** - Refactor content type strings - [#1083](https://togithub.com/fastify/fastify/issues/1083) - Update light-my-request to the latest version - [#1080](https://togithub.com/fastify/fastify/issues/1080) - Update split2 to the latest version - [#1074](https://togithub.com/fastify/fastify/issues/1074) - chore(package): update typescript-eslint-parser to version 18.0.0 - [#1067](https://togithub.com/fastify/fastify/issues/1067) ### [`v1.9.0`](https://togithub.com/fastify/fastify/releases/tag/v1.9.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.8.0...v1.9.0) **Features** - Add method to get all shared schemas - [#1046](https://togithub.com/fastify/fastify/issues/1046) **Enhancements** - Listen to localhost instead of 127.0.0.1. - [#1047](https://togithub.com/fastify/fastify/issues/1047) **Fixes** - Fixes [#1043](https://togithub.com/fastify/fastify/issues/1043) - [#1050](https://togithub.com/fastify/fastify/issues/1050) - Fixes [#1042](https://togithub.com/fastify/fastify/issues/1042) - [#1050](https://togithub.com/fastify/fastify/issues/1050) - Resolves issue [#936](https://togithub.com/fastify/fastify/issues/936) - [#1027](https://togithub.com/fastify/fastify/issues/1027) - fix: if response.setHeader is used, will cause header write after send error - [#1033](https://togithub.com/fastify/fastify/issues/1033) **Typescript** - Add type definition for FastifyInstance.all - [#1037](https://togithub.com/fastify/fastify/issues/1037) **Documentation** - Change order of Plugins-Guide.md - [#993](https://togithub.com/fastify/fastify/issues/993) - Fix typos in Server-Methods.md - [#1041](https://togithub.com/fastify/fastify/issues/1041) - Update Factory.md - [#1039](https://togithub.com/fastify/fastify/issues/1039) [#1038](https://togithub.com/fastify/fastify/issues/1038) [#1036](https://togithub.com/fastify/fastify/issues/1036) - Fix links - [#1034](https://togithub.com/fastify/fastify/issues/1034) - Fixed homepage field [#1031](https://togithub.com/fastify/fastify/issues/1031) ### [`v1.8.0`](https://togithub.com/fastify/fastify/releases/tag/v1.8.0) [Compare Source](https://togithub.com/fastify/fastify/compare/v1.7.0...v1.8.0)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.