There are often not a lot of studies done on
infants and young children for the
safety of the kids. They have, however, tested it on monkeys and it did pass through the milk to the breast fed baby.
There are traditional ways to treat anxiety and depression and not always medication involved. Therapy is really great, CBT, to help learn to face issues and have appropriate coping skills. Self soothing techniques help. Exercise is a mood stabilizer. Meditation, hypnosis, etc.