Which connector?

What are the “best” connectors to join a pair of, say, 26AWG cables? I have been using Dupont but unhappy with the lack of a secure connection.

JST is an option but which flavour?

It depends…

How much vibration is it exposed to? Do you need waterproofing? Is this wire to wire only, or will you also want wire to board? Does the connector need to be polarised?

The answer is probably JST-PH - but there are a lot of options out there.

PS. Here’s the datasheet for JST-PH: