…not to mention normal, semi or fully integrated headset, length of head tube (watch out if it is much longer on the new one and you don't have many spacers on the steerer), bottom bracket width if your cranks are isis/square taper, cable routing (might need more or different lengths of outer and inner), seat clamp size and rear brake hose/cable routing/length. Some frames have bottle bosses or shock mounts in the way so you have to have either high or low band front mechs too. It seems as though most shimano and sram ones these days take both top and bottom cable pull thankfully.
And if top tube length is different you may want a different size stem though that is a fit rather than build compatibility one…