Using Express@5 causes error with fast_slash
Using this library in it's most basic form with express@5 causes the follwing error to be thrown:
TypeError: Cannot read properties of undefined (reading 'fast_slash')
at split (@wesleytodd/openapi/lib/generate-doc.js:127:20)
package version: 1.1.0 express version: 5.0.1
Just saw it mentioned here as well:
https://github.com/wesleytodd/express-openapi/pull/64#issuecomment-2596813526
And @... unfortunately changes to
path-to-regexpbroke this lib in bothexpress@>=4.20.0andexpress@5. I am going to be working on fixes for that soon.
There is some work happening to expose a new router.getRoutes() API in pillarjs/router
It would simplify or allow us to get rid of iterateStack in generate-doc.js. That would be in addition to getting rid of the functions split and processComplexMatch as Express 5 does not support regex routes.