When did you share the news of your pregnancy?

I’ve had a miscarriage before and I’m having doubts as to when I should reveal it. Last time I didn’t get the chance to reveal to family, so only my husband knew. So I’m leaning more to telling them when I’m in the clear.