What 4-pin connectors are used on 3D printer mainboards for stepper motors?

Most currently available mainboards use this connector for connecting a stepper motor to the mainboard:

These connectors are named JST XH 2.54mm.

While many people interface these using standard 2.54mm female connectors

they should be interfaces using the proper JST XH 2.54mm female connector.