"Officially" whatever happens to be the newest release of the films at the time are canon; the OOT, SE '97, SE '04, and the theatrical versions of most of the prequels are considered "rough drafts" and "non-canon".
Hopefully Disney will relax this bullshit so that any version of the films can be considered canon.