jared-hughes / DesThree

Desmos bindings for three.js
4 stars 0 forks source link

Add version check #59

Closed jared-hughes closed 3 years ago

jared-hughes commented 3 years ago

To prevent confusion between different versions of DesThree and related graphs, store the DesThree version somewhere in the state.

For 1.0+ release, include automatic migration to higher versions.

For now (0.x.x releases), just warn user that version is incorrect. Say "loaded graph will probably will not work" if minor versions differ. Give a milder warning if only patch versions differ. Include a link to https://github.com/jared-hughes/DesThree/releases/ (the correct release if possible).

If possible, give an extra warning in the save menu (if duplicate graph is unchecked) to avoid overwriting old graphs.