Read Retroactive continuity (Wikipedia)

Retroactive continuity, or retcon for short, is a literary device in which established facts in a fictional work are adjusted, ignored, or contradicted by a subsequently published work which breaks continuity with the former.

I’ve known of the concept for a long time, but I’ve only seen this word for the first time today.