-
-
Notifications
You must be signed in to change notification settings - Fork 926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #1714 conditionally halting stream #2200
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stick something in the changelog?
I didn't review this in depth, but it seems like the wrong fix to me... stream.HALT is supposed to stop the propagation of the current value, not to end the dependent streams... The docs isn't clear about it but I think it was meant to be reversible. |
That's a good point @pygy , but I don't think the word HALT conveys that.. I think IGNORE / SKIP would make better sense? |
I'm really sorry - totally jumped the gun. You're right @pygy, HALT stops that one value - The test should in fact ensure that the flag can be flipped back again. |
Re:naming #2017 Could we include that renaming part into 2.0 since it's semver major anyways? |
+1 for The stream library has its own npm package, we can introduce breaking changes independently. |
@pygy that's also a great point for not including stream as a named export in the mithril esm bundle! Do we want to do anything special at all if returning HALT? I don't think we should if we introduce SKIP which works as you defined? |
* Fix MithrilJS#1714 conditionally halting stream * Add note in changelog
+1 for This is actually a breaking change for #1957. The tests need to be better for it. |
…2194) * output mithril, stream and ospec esm versions on build * Add esm bundles * [request] Clearer error message for JSON deserialization failure (#2195) * Bundled output for commit fd7cf80 [skip ci] * Fix #1714 conditionally halting stream (#2200) * Fix #1714 conditionally halting stream * Add note in changelog * Do not include stream as named export in mithril.esm.js * Rename mithril.min.esm.js to mithril.esm.min.js * Add esm files to eslintignore * Add named exports * Add hyperscript `m` as named export * Add builds with export changes * checkout regular bundled files * Change .esm.js to .mjs * Update pkg module to point to .mjs * Fix for export names to avoid collision * Updated bundled files
Description
When a stream returns halt it is unregistrered to avoid calling dependent streams
Motivation and Context
#1714
How Has This Been Tested?
Types of changes
Checklist:
docs/change-log.md