Releases: google/zx
Releases · google/zx
6.0.7
What's Changed
- Code coverage increased to 98% by @antongolub in #359
- Fixed: do not rely on globals inside
experimental.mjs
by @antongolub in #363
Full Changelog: 6.0.6...6.0.7
6.0.4
What's Changed
- Added export for
which
package as global by @antongolub in #347 - Introduced experimental
withTimeout
helper by @antongolub in #355
Full Changelog: 6.0.3...6.0.4
6.0.2
What's Changed
- Added new CLI
--experimental
flag 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
quiet
func by @svennergr in #332 - Added optional delay for
retry
by @antongolub in #335 - New config
spawn
func by @antongolub in #333 - New config
maxBuffer
option 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`
5.0.0
__/\\\\\\\\\\\__/\\\____/\\\_
_\///////\\\/__\///\\\/\\\/__
______/\\\/______\///\\\/____
____/\\\/_________/\\\/\\\___
__/\\\\\\\\\\\__/\\\/\///\\\_
_\///////////__\///____\///__
Updated dependencies
chalk ^4.1.2 → ^5.0.0
globby ^12.0.1 → ^13.1.1
node-fetch ^2.6.1 → ^3.2.0
Added feature
Added YAML
package.
let {foo} = YAML.parse('foo: bar')
Breaking changes
This release drops build of CommonJS version and support for .ts
extension by zx bin.
TypeScript is still supported, for example, via ts-node:
node --loader ts-node/esm script.ts
Also, a new Node version requirement is >= 16.0.0.