learningequality / kolibri

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

Upgrade xstate to version 5.x #11614

Open jredrejo opened 11 months ago

jredrejo commented 11 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
- [ ] Follow migration guide from https://stately.ai/docs/migration
- [ ] Upgrade xstate in KDS
- [ ] https://github.com/learningequality/kolibri/issues/12646 
davidkpiano commented 11 months ago

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

MisRob commented 11 months ago

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

jredrejo commented 10 months ago

v5.4.1 is the current target