Update UseMiddleware dependencies.