learningequality / kolibri

Kolibri Learning Platform: the offline app for universal education
https://learningequality.org/kolibri/
MIT License
780 stars 648 forks source link

Upgrade xstate to version 5.x #11614

Open jredrejo opened 9 months ago

jredrejo commented 9 months ago

Overview

The xstate library kolibri uses for some of the kolibri processes has released a new version v5.x that adds some features but introduces some breaking changes with version 4.x .

We should apply those changes to kolibri code before upgrading to v5. Also some of the new features (use of can in guards or the fromPromise helper can improve current machines code)

Description and outcomes

To be done in a future 0.16 patch release

Resources

### Tasks
- [ ] https://github.com/learningequality/kolibri/issues/12646
- [ ] Explore compatibility of vue 3.6.2 with xstate-vue
- [ ] Unify use of xstate for routing in vue in kolibri /KDS
- [ ] Follow migration guide from https://stately.ai/docs/migration
- [ ] Upgrade xstate in KDS
davidkpiano commented 9 months ago

Please let me know if you need any help with this migration - willing to help!

MisRob commented 9 months ago

Thanks @davidkpiano, we appreciate it. Your library has been of such a great help for some of our complex workflows.

jredrejo commented 9 months ago

v5.4.1 is the current target