ojoanalogo / nestjs-redoc

📘 ReDoc frontend for you NestJS swagger API documentation
MIT License
145 stars 56 forks source link

feat: make ReDoc version configurable #29

Closed martvaha closed 3 years ago

martvaha commented 3 years ago

Current ReDoc version was quite old 2.0.0-rc.8-1 (released 2019-05-13).

This pull request adds redocVersion property to RedocOptions object that allows specifying wanted ReDoc version. Values can be 'next', 'latest' or some version (e.g. '2.0.0-rc.50'). Default value is 'latest'. image

martvaha commented 3 years ago

It might have been a cache issue but now https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js points to 2.0.0-rc.48 instead of 2.0.0-rc.8-1. Still would be nice to be able to lock down the version.

ojoanalogo commented 3 years ago

This is a good feature! I'll merge this into master and push a new version to the npm package registry. Sorry for the long time It took to me for notice this PR!

ojoanalogo commented 3 years ago

@martvaha updated package on npm registry, new version it's 2.2.1