Open karfau opened 4 years ago
As you can see I added a POC to solve that issue to #40 . I can easily extract those changes into different PRs if you want. Please let me know what you think. (My inspiration was this article: https://dev.to/joshx/test-your-npm-package-against-multiple-versions-of-its-peer-dependency-34j4 )
While trying to add a test for #40 I realized that the state machine I describe in #38 is not valid vor
xstate@3
but only for v4.Updating to version 4 makes the
download
test fail with a message that I fixed in one of the recent PRs.If we still want to support both version 3 and 4 we could at least start a
xstate@4
branch to start working on it (and release them as prereleases?). Or maybe there is a way to test against both version 3 and 4 on CI, any ideas? (Just updating as part of CI might not work since not all machines work for both versions.)I think for the users they will only have machines for one version, so they don't have that issue.