update middleware dependencies for 0.5.0