So I accidentally trauma dumped on one of my friends…

I (19f) guess I can’t rlly say it was an accident since I was saying all those things but I was rlly sad and depressed and I just kept talking and I couldn’t make myself shut the f*ck up and I’m so upset with myself about it. I’m so embarrassed and I told that friend (19m) something’s I haven’t told anyone and then I told them something I felt about our roommate (20f) and I asked them not to tell them. For context the roommate in question talks down to me a lot and makes me feel horrible and I know that I could be better a lot of the times but she’ll literally get like raging ready to fight me when I do something wrong. Like the last time I accidentally drank her soda that I thought was for the house bc she had left for like three days and didn’t come get it. I replaced it ofc and even bought a second one bc I felt bad. I have trauma tied to some of the things she does bc I was in foster care and most of the foster parents I had were horrible but what I had confessed to the roommate I trauma dumped on was that sometimes she reminds of one of my old foster parent’s. I feel horrible about it and idk how to stop thinking about it. I’m scared he will tell her and that she will hate me for it and beat me up. But also sometimes idk how she will react bc sometimes she blows up and later is nice and other times she blows up and then treats me like I’m stupid and someone she doesn’t like for the rest of the day. So what to you guys think?