-
Notifications
You must be signed in to change notification settings - Fork 15
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
Options defaults #25
Options defaults #25
Conversation
Spawn options are now folded into a set of default options, using `Object.assign` (not a full merge). Note: this is a breaking change, particularly for Hydrogen which was providing "loose" stdout and stderr as notification messages in Atom (I love having this when I'm working with Spark in Hydrogen). Fixes #24
+1
Yes, that would be really nice to do as well of course. The thing to not do is nothing at all, which results in blocked stdout... |
Is it a breaking change for me, who is using:
|
If you want to only block
Then stderr and stdout will be piped through. That's likely what we'll switch it to for Hydrogen. |
No, your options get folded in since you're overriding the defaults here. > defaultSpawnOptions = { stdio: "ignore" }
Object {stdio: "ignore"}
> Object.assign({}, defaultSpawnOptions, { detached: true, stdio:'ignore' })
Object {stdio: "ignore", detached: true} |
8d80ebb
to
c745d78
Compare
Annnnnd now this passes. I kept changing the |
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.
LGTM 👍
Thanks for fixing CI 💚
Cool, I'll ship this. |
Unless there's something else people want to get in, we'll have to call this a major release since it changes the defaults (if user's weren't setting it -- Hydrogen for example). |
v3.0.0 is out! |
Spawn options are now folded into a set of default options, using
Object.assign
(not a full merge).
Note: this is a breaking change, particularly for Hydrogen which was providing
"loose" stdout and stderr as notification messages in Atom (I love having this
when I'm working with Spark in Hydrogen).
Fixes #24
Check out commit ce657d3, as the first commit is primarily there to bring us inline with the rest of our code bases (using prettier).