Skip to content

Releases: google/zx

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

4.1.0

31 Aug 21:35
Compare
Choose a tag to compare
import 'zx/globals'

4.0.0

27 Aug 22:02
Compare
Choose a tag to compare

In this release:

  • Added kill() method 4915ff3
  • Added path package ce69a84
  • Added cjs support (#203)
  • Changed: register globals only in zx binary 33aaae4

New examples:

let {stdin, stdout} = $`npm init`

for await (let chunk of stdout) {
  if (chunk.includes('package name:')) stdin.write('test\n')
}

3.1.0

20 Aug 07:35
79be5c2
Compare
Choose a tag to compare

3.0.0

16 Aug 06:37
Compare
Choose a tag to compare
  • Use inherited stdin instead of piped (#192)
  • Separated test files and example files 287ed0b
  • Fixed trim query string to resolve correct script extension (#190)
  • Added exit codes info 9c52044
  • Fixed stops at the question() call (#188)
  • Added error print at TS compile 07cce2f
  • The pipe() throws if already resolved (#129)
  • Added support for bash code blocks in markdown scripts 479ca79
  • Fixed quote and substitute bugs 8fefed0
  • Fixed split regex for JS stack (#181)

2.1.0

10 Aug 10:57
ef80b84
Compare
Choose a tag to compare

This release:

  • Adds globby (#178)
  • Fixes args parsing such as --quiet (#168)
  • Fixes script's resolve algorithm (#173)
  • Fixes quote() function regex (#167)

2.0.0

05 Jul 13:02
Compare
Choose a tag to compare
  • use fs-extra
  • add minimist
  • new CLI args: --quiet, --shell, --prefix