fix(middleware): update for latest nickel.