I generally try to avoid shifting while standing, but if I am standing and need to shift I do. I have experimented a little with easing up on the pedals as I shift and just shifting with pedalling hard with no bad results either way. I don't think it hurts anything but if your chain jumped off or broke while standing it might hurt a couple of things

.