Summary
The Fastify integration docs recommend using the fastify-socket.io plugin, but it only supports Fastify 4.x and has not been updated for Fastify v5.
Impact
Developers following the docs and running Fastify v5 get a peer dependency conflict:
npm warn peer fastify@"4.x.x" from fastify-socket.io@5.1.0
npm warn Conflicting peer dependency: fastify@4.28.1
Suggested Fix
Either:
- Update the docs to note the Fastify v4 limitation with a warning, or
- Point to an alternative approach (e.g., attaching Socket.IO directly to the underlying http server from Fastify)
References
Summary
The Fastify integration docs recommend using the
fastify-socket.ioplugin, but it only supports Fastify4.xand has not been updated for Fastify v5.fastify-socket.iolatest (v5.1.0) declares a peer dependency offastify@"4.x.x"— see: Supports Fastify versions 5.x ducktors/fastify-socket.io#180Impact
Developers following the docs and running Fastify v5 get a peer dependency conflict:
npm warn peer fastify@"4.x.x" from fastify-socket.io@5.1.0 npm warn Conflicting peer dependency: fastify@4.28.1Suggested Fix
Either:
References