Only a pair of advices about tantalium capacitors (just cause i've already fried some of them )
They are much more sensitive to normal ones to inversion of polarity and overvoltage.
A polarity inversion put them on fire in few seconds (literally, i ignited one in 3 seconds, soldering it reversed)
And if you plan to use them, just double the voltage ..... i mean, with normal capacitors, if you use it on 5V, a 6,5V can be ok, for tantalium ones, better use 12 or 16 V ones ..... for 12V, usually are used 16V common capacitors, tantalium ones must be at least 25 V, and so on (this if you want that your capacitors have a long and happy life )
For the rest, they are better than common ones, in results
I haven't actually been using a capacitor on any circuit that I've soldered together in quite some time. That output capacitor has killed at least 2 of my diodes, and I've yet to have a single diode die when the capacitor was not there. So until a diode unexplainably dies while running on one of these drivers that doesn't have an output cap, I'll just leave it out.
I'm in agreement with PBD... as long as it is a Battery powered Voltage
or Current Driver...
If using external (non Battery) power to the V or C driver I would use a
small output cap and a larger input cap... just in case the supply introduces
some transients (spikes)...
If it is a boost Driver you have no choice but to use an output filter capacitor..
What pullbangdead says has been my advice all along - leave off the capacitor. First, electrolytic caps are simply useless if you want them for spike protection - their parasitic inductance is way too high. Also, any "despiking" capacitance has to be very close to the regulator IC, for the same reason, so soldering it across the diode pins is again useless. The CC or CV drivers are made for ohmic loads. With a capacitive load, you may get a phase shift which in turn may start the whole setup oscillating, thus supplying current peaks that are higher than what you'll be measuring with a DMM. And possibly more problems. If you want to know whether (and how!) to use a capacitance, read the datasheet for the regulator IC.
You can use large elcos in an AC power supply, after the rectifyer bridge; but that's for smoothing, not for spike rejection.
I've used "bleeder" resistors on power supplies and drivers. I calculate them to draw ~ 1 or 2 mA so the regulator always has some load.
This is an old school trick I learned 45 years ago !!!
Good idea, however it doesn't work with "constant current" drivers obviously... here, you'd need a Zener diode with a voltage threshold above the normal load (laser diode or LED) and below the max rated output voltage of the driver as an open circuit protection.
If a connection between the diode and cap is broken (as in diode disconnected from the driver, cap still connected), it'll charge up the cap to the full max voltage of your driver. If that connection is then reformed to your diode, the capacitor will dump that full amount of energy through the diode at once, killing it. Hemlock_Mike's "bleeder" resistor could be a solution to this, but I've not had any trouble leaving the cap out.
For LD's with battery powered drivers, i usually use a 100nf capacitor on the LD ..... most of the times, directly soldered on the LD, in parallel with a 10 Kohm resistor, and if the LD is wired far from the driver, also an 1N4148, for prevent any accidental inversion of the wires (i don't use just red and black, and sometimes this can cause confusions )
As far as i recall, i fried few diodes for my mistakes (overheating and overcurrents), but had not a single one fried for capacitors problems (still have around 12 or 13 PHR in aixiz, some 6X, some LCC and SOC reds, none of them never suffered anything from capacitors)
On my drivers that i solder directly on the LD, i putted a capacitor on the input and output of the LM1117, so there's already one (why have connections that detach from driver, anyway ? ..... i once ripped the pins of an old IR diode, bending bad the driver PCB, but never had a single soldering point "detached" ..... do you use right tools and alloy, for soldering ?)