SimeonC / storybook-xstate-addon

A storybook addon to assist with writing stories that rely on xstate
https://SimeonC.github.io/storybook-xstate-addon/
MIT License
54 stars 6 forks source link

fix: relax the dependency on @xstate/inspect #42

Closed riccardo-forina closed 2 years ago

riccardo-forina commented 2 years ago

With ^0.6 the only acceptable versions are patches to 0.6 (0.6.1, 0.6.2, etc). This is because semver says that since it's a major release of version 0, there might be breaking changes even with minor releases.

Were it a different major, say 1, it would have accepted also minor releases without issues; ^1.0 would work with 1.0.1, 1.3.4, etc.

I think it would be fair to relax this requirement and leave the user of the addon to figure out the best version for them.

SimeonC commented 2 years ago

Thanks for the reminder - completely forgot to go and check about updating the dep version. I want the version to be fairly strict and not accept minor updates as I use some of the internals of how @xstate/inspect works so anything except a bugfix is potentially breaking for me. Also, I've not tested if it works with versions less than 0.6 (I think some of them will actually not work).

I'll close this and update it manually, thanks for raising the PR.

github-actions[bot] commented 2 years ago

:rocket: Issue was released in v2.3.0 :rocket:

github-actions[bot] commented 2 years ago

:rocket: Issue was released in v2.3.0 :rocket:

github-actions[bot] commented 2 years ago

:rocket: Issue was released in v2.3.0 :rocket: