Deformations of Calabi--Yau threefolds and their moduli of vector bundles