From 7ab4f3dedaf453cc4a33c4414fcf4c3c93026db7 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 28 Dec 2024 18:13:07 +0000 Subject: [PATCH] docs(readme): add compatibility table Signed-off-by: Frazer Smith --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2ee1f7b..9e25979 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,23 @@ As a result we will not consider a report of a plugin default configuration opti vulnerability that might be unsafe in certain scenarios as long as this module provides a way to provide full mitigation through configuration. -# Install +## Install ```js npm i @fastify/csrf-protection ``` +### Compatibility +| Plugin version | Fastify version | +| ---------------|-----------------| +| `^7.x` | `^5.x` | +| `^4.x` | `^4.x` | +| `^3.x` | `^3.x` | + + +Please note that if a Fastify version is out of support, then so are the corresponding versions of this plugin +in the table above. +See [Fastify's LTS policy](https://github.com/fastify/fastify/blob/main/docs/Reference/LTS.md) for more details. + ## Usage @@ -213,4 +225,4 @@ fastify.register(require('@fastify/csrf-protection'), ## License -[MIT](./LICENSE) +Licensed under [MIT](./LICENSE).