Bridging the gap between collisional and collisionless shock waves