fastify 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.markdownlint-cli2.yaml +22 -0
- package/GOVERNANCE.md +30 -20
- package/PROJECT_CHARTER.md +48 -17
- package/README.md +163 -76
- package/SECURITY.md +55 -44
- package/build/build-error-serializer.js +11 -7
- package/docs/Guides/Benchmarking.md +2 -0
- package/docs/Guides/Delay-Accepting-Requests.md +98 -90
- package/docs/Guides/Ecosystem.md +40 -30
- package/docs/Guides/Index.md +2 -0
- package/docs/Guides/Migration-Guide-V4.md +55 -0
- package/docs/Guides/Serverless.md +13 -12
- package/docs/Reference/ContentTypeParser.md +17 -13
- package/docs/Reference/Errors.md +6 -5
- package/docs/Reference/Plugins.md +8 -6
- package/docs/Reference/Reply.md +30 -16
- package/docs/Reference/Request.md +3 -3
- package/docs/Reference/Routes.md +112 -37
- package/docs/Reference/Server.md +109 -72
- package/docs/Reference/Type-Providers.md +28 -8
- package/docs/Reference/TypeScript.md +12 -6
- package/docs/Reference/Validation-and-Serialization.md +39 -37
- package/fastify.js +1 -1
- package/lib/error-serializer.js +32 -204
- package/lib/pluginUtils.js +10 -0
- package/package.json +5 -3
- package/test/plugin.test.js +32 -0
- package/docs/Migration-Guide-V4.md +0 -12
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# V4 Migration Guide
|
|
2
|
-
|
|
3
|
-
This guide is intended to help with migration from Fastify v3 to v4.
|
|
4
|
-
|
|
5
|
-
Before migrating to v4, please ensure that you have fixed all deprecation warningx from v3.
|
|
6
|
-
All v3 deprecations have been removed and they will no longer work after upgrading.
|
|
7
|
-
|
|
8
|
-
## Breaking Changes
|
|
9
|
-
|
|
10
|
-
### Deprecation of `app.use()`
|
|
11
|
-
|
|
12
|
-
Starting this version of Fastify, we have deprecated the use of `app.use()`. We have decided not to support the use of middlewares. Both [`@fastify/middie`](https://github.com/fastify/middie) and [`@fastify/express`](https://github.com/fastify/fastify-express) will still be there and maintained. Use Fastify's [hooks](./Reference/Hooks.md) instead.
|