Allow middleware to be disabled.
Bump to v4.1.8