Skip to content

Commit

Permalink
docs(readme): add compatibility table
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Dec 28, 2024
1 parent 6c0e390 commit 7ab4f3d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -213,4 +225,4 @@ fastify.register(require('@fastify/csrf-protection'),

## License

[MIT](./LICENSE)
Licensed under [MIT](./LICENSE).

0 comments on commit 7ab4f3d

Please sign in to comment.