Skip to content

Releases: google/zx

6.2.2

04 Jun 08:22
3a66988
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.2.1...6.2.2

6.2.1

03 Jun 05:40
38e95cf
Compare
Choose a tag to compare
  • Fixed $.verbose type.

6.2.0

01 Jun 21:23
50e5f70
Compare
Choose a tag to compare

This release adds async local contexts via ctx() and configurable logger.

6.1.0

15 Apr 12:00
Compare
Choose a tag to compare

This release contains updates of dependencies:

 minimist   ^1.2.5  β†’  ^1.2.6
 yaml      ^1.10.2  β†’  ^2.0.0

6.0.7

21 Mar 19:51
9589f19
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.0.6...6.0.7

6.0.4

18 Mar 16:01
09509bc
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.0.3...6.0.4

6.0.2

17 Mar 17:15
cf369ce
Compare
Choose a tag to compare

What's Changed

Full Changelog: 6.0.1...6.0.2

5.3.0

14 Mar 20:25
023ac68
Compare
Choose a tag to compare

What's Changed

5.2.0

27 Feb 14:40
Compare
Choose a tag to compare

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

16 Feb 19:31
59e9121
Compare
Choose a tag to compare

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`