fastify / fastify-request-context

Request-scoped storage support, based on Asynchronous Local Storage (with fallback to cls-hooked)
MIT License
158 stars 15 forks source link

What version is compatible with Fastify 3.x? #193

Open simkessy opened 3 months ago

simkessy commented 3 months ago

Prerequisites

Fastify version

3@latest

Plugin version

5.1.0

Node.js version

12.x

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

18

Description

Which version should I be using if using Fastify 3?

Link to code that reproduces the bug

No response

Expected Behavior

No response

Eomm commented 3 months ago

You need to check the tags&dependancies. Eg: https://github.com/fastify/fastify-request-context/tree/v3.0.0?tab=readme-ov-file

In this case it is the v3, but it is just a case that it is compatible with fastify v3.

TBH I find useful a compatibility section as I wrote in my plugins: https://github.com/Eomm/fastify-raw-body?tab=readme-ov-file#compatibility

We may introduce that structure here too IMHO