Fix middleware tag regex
Rename tag param to type
Version bump