From 8fc28fc2fa1820aa314c52edb9d088df7bbc2052 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 10 Jan 2025 18:35:53 +0000 Subject: [PATCH] docs(readme): add compatibility table Signed-off-by: Frazer Smith --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index f2be7fe..d653750 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,21 @@ Under the hood [node-postgres](https://github.com/brianc/node-postgres) is used, ``` npm i pg @fastify/postgres ``` + +### Compatibility +| Plugin version | Fastify version | +| ---------------|-----------------| +| `^6.x` | `^5.x` | +| `^5.x` | `^4.x` | +| `^3.x` | `^3.x` | +| `^1.x` | `^2.x` | +| `^1.x` | `^1.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 Add it to your project with `register` and you are done! This plugin will add the `pg` namespace to your Fastify instance, with the following properties: