This release introduces two API changes and several important bug fixes.
API Changes
Introduced CombinedErrorOutput
A new output type for subprocesses that merges the standard error stream with the standard output stream.
When CombinedErrorOutput
is used as the error output for a subprocess, both the standard output and standard error from the child process are combined into a single output stream. This is equivalent to using shell redirection such as 2>&1
.
Updated Environment.updating
to Accept [Key: String?]
This change allows an environment variable to be unset by assigning it a value of nil
.
Important Bug Fixes
- #196 Fixed CMake support. Subprocess can now be used as a dependent project in CMake builds.
- #198 Fixed a hanging issue that occurs in release builds.
Detailed Change Log
- Fix incorrect documentation in Buffer.swift withUnsafeBytes method by @valeriyvan in #178
- Report proper error by @valeriyvan in #177
- Fix some typos by @valeriyvan in #181
- Introudce CombinedErrorOutput by @iCharlesHu in #180
- Fix dependency of Swift System by @0xTim in #187
- Change Environment.updating to accept [Key: String?] by @iCharlesHu in #193
- Add extern "C" to header process_shims.h by @j-hui in #195
- CMake fixes to allow use in dependent projects by @owenv in #196
- Don't suspend/resume the thread while holding an exclusive inout reference by @jakepetroules in #198
New Contributors
- @valeriyvan made their first contribution in #178
- @0xTim made their first contribution in #187
- @j-hui made their first contribution in #195
- @owenv made their first contribution in #196
Full Changelog: 0.1...0.2