I was on an SQ flight a long time ago, they announced that they had a passenger who was severally allergic to peanuts onboard. They then announced that none would be served and asked all passenger to not open them if they had brought their own on the plane.
I had this announcement once on a UA flight. The flight was one or two years ago.