Skip to content

Releases: google/zx

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`

5.0.0

09 Feb 16:56
Compare
Choose a tag to compare
   __/\\\\\\\\\\\__/\\\____/\\\_     
    _\///////\\\/__\///\\\/\\\/__    
     ______/\\\/______\///\\\/____   
      ____/\\\/_________/\\\/\\\___  
       __/\\\\\\\\\\\__/\\\/\///\\\_ 
        _\///////////__\///____\///__

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.

4.3.0

16 Jan 20:57
Compare
Choose a tag to compare
  • 3f7c8ca Fixed --version argv parsing.
  • fe083c4 Fixed a process kill() with unhandled exception.
  • 5f54045 Fixed cd() to work with relative paths.
let p = $`sleep 99999`
await sleep(100)
p.kill()

4.2.0

07 Sep 21:46
Compare
Choose a tag to compare
  • Fixed export of zx/globals.
  • Improved usage CLI output.

Screenshot 2021-09-08 at 17 03 30

4.1.1

31 Aug 21:44
Compare
Choose a tag to compare
  • Added missing path global 3f7e8fe