Version bump to v0.40.0