Releases: google/zx
Releases Β· google/zx
Release list
6.2.2
6.2.1
6.2.0
6.1.0
6.0.7
What's Changed
- Code coverage increased to 98% by @antongolub in #359
- Fixed: do not rely on globals inside
experimental.mjsby @antongolub in #363
Full Changelog: 6.0.6...6.0.7
6.0.4
What's Changed
- Added export for
whichpackage as global by @antongolub in #347 - Introduced experimental
withTimeouthelper by @antongolub in #355
Full Changelog: 6.0.3...6.0.4
6.0.2
What's Changed
- Added new CLI
--experimentalflag by @antongolub in #346 - Fixed bind cwd to spawn call by @antongolub in #352
Full Changelog: 6.0.1...6.0.2
5.3.0
What's Changed
- Added missing type declaration for
quietfunc by @svennergr in #332 - Added optional delay for
retryby @antongolub in #335 - New config
spawnfunc by @antongolub in #333 - New config
maxBufferoption by @antongolub in #337 - Updated node-fetch to v3.2.3 by @antongolub in #336
5.2.0
72c8cf0 Added experimental startSpinner() function.
53a215e Added the signal field to ProcessOutput.
bf88f50 Added quiet() function (#313).
51fb6d5 Improved experemental echo()function.
import {echo} from 'zx/experimental'
// The echo() can be used both ways:
echo`Current branch is ${branch}.`
// or
echo('Current branch is', branch)import {startSpinner} from 'zx/experimental'
let stop = startSpinner()
await $`long-running command`
stop()let p = nothrow($`while true; do :; done`)
setTimeout(() => p.kill('SIGKILL'), 1000)
let {signal} = await p
assert.equal(signal, 'SIGKILL')await quiet($`grep something from-file`)
// Command and output will not be displayed.5.1.0
98a9abb Added new experimental retry & echo functions.
f8bb1c7 Fixed bug where running script without extension removes existing .mjs files (#276).
792370a Increased maxBuffer to 200 MiB.
7fafa26 Added known issues doc.
Example:
import {echo, retry} from 'zx/experimental'
let branch = await $`git branch --show-current`
echo`Current branch is ${branch}.`
let {stdout} = await retry(5)`curl localhost`