z0mt3c / hapi-swaggered

Yet another hapi plugin providing swagger compliant API specifications based on routes and joi schemas to be used with swagger-ui.
MIT License
82 stars 38 forks source link

Semver is used incorrectly #87

Open neagan opened 8 years ago

neagan commented 8 years ago

A microservice of mine was specifying version ^2.2.1 of this repo in its package.json which indicates that it should pull any version below 3.0.0. The service had not been deployed since early January and it broke on npm install during a recent redeployment. This appears to be due to the fact that v2.6.0 is not backwards compatible with Hapi prior to v10.0.0. Breaking changes should increment the major version so I believe the current release should be correctly titled v3.0.0.

rubennorte commented 6 years ago

This may have been caused by the Hoek dependency, not hapi-swaggered itself. Do you use a Node version lower than 4? See this thread: https://github.com/request/request/issues/2772