Hey everybody, it's been a while since I've been on the forum, but I've gotten tons of help over the years, and I really appreciate it!
Right now, we've got a problem because we can't seem to find a source of LM317LPK (SOT89-3 package) and we need to order a new batch of boards that rely on them ASAP. It looks like adjustable linear regulators in that package are going away completely, so I know we'll probably have to redesign the board around a different package soon (SOIC probably,) but we are really pressed for time and I'd love to get one last order placed before changing the board layout. I haven't found ANY LM317s or direct equivalents in the SOT89-3 package yet, but I did find the LDI1117, which is a low-dropout linear regulator in the same package, with the same 1.25V reference.
So the question is, can I substitute a Diotec Semiconductor LDI1117-ADU (which appears to be equivalent to an LM1117) in the simple ~10mA current regulator circuit below?

The regulation doesn't have to be perfect, it just has to be good enough to keep an opto-isolator input happy. When reading the datasheets, I don't see any examples with the LM1117 being used as a current regulator, although I would assume it works on the same basic principles as the LM317 and can be applied in the same ways. The only reason I'm a little concerned about this is that the recommended input and output capacitor values for the LM1117 (in the voltage-regulator circuit examples) are much, much higher than those for the LM317L, which makes me wonder if it will behave nicely in a super simple current-regulation application with no capacitors on input or output.
Any insights would be greatly appreciated!
Right now, we've got a problem because we can't seem to find a source of LM317LPK (SOT89-3 package) and we need to order a new batch of boards that rely on them ASAP. It looks like adjustable linear regulators in that package are going away completely, so I know we'll probably have to redesign the board around a different package soon (SOIC probably,) but we are really pressed for time and I'd love to get one last order placed before changing the board layout. I haven't found ANY LM317s or direct equivalents in the SOT89-3 package yet, but I did find the LDI1117, which is a low-dropout linear regulator in the same package, with the same 1.25V reference.
So the question is, can I substitute a Diotec Semiconductor LDI1117-ADU (which appears to be equivalent to an LM1117) in the simple ~10mA current regulator circuit below?

The regulation doesn't have to be perfect, it just has to be good enough to keep an opto-isolator input happy. When reading the datasheets, I don't see any examples with the LM1117 being used as a current regulator, although I would assume it works on the same basic principles as the LM317 and can be applied in the same ways. The only reason I'm a little concerned about this is that the recommended input and output capacitor values for the LM1117 (in the voltage-regulator circuit examples) are much, much higher than those for the LM317L, which makes me wonder if it will behave nicely in a super simple current-regulation application with no capacitors on input or output.
Any insights would be greatly appreciated!