Skip to content

Not a major release, just a tiny breaking change

Compare
Choose a tag to compare
@staltz staltz released this 08 Aug 09:43
· 3131 commits to master since this release

If you do not use responses.dispose(), you can safely update to Cycle Core v2 and all your code will still work.

This is not a "v2" as in "everything different". We are just following good old semver. This version fixes the semantics of disposal.

Given

let [requests, responses] = Cycle.run(main, drivers);

There exists responses.dispose(). Prior to v2, there was no requests.dispose(), and there were some subscriptions left undisposed if you wanted to dispose everything.

In v2, we have both requests.dispose() and responses.dispose(). If you were using dispose(), please carefully update your program. You might need to dispose both requests and responses.