Bot releases are visible (Hide)
Published by antonmedv over 2 years ago
Full Changelog: https://github.com/google/zx/compare/6.2.4...6.2.5
Published by antonmedv over 2 years ago
Full Changelog: https://github.com/google/zx/compare/6.2.3...6.2.4
Published by antonmedv over 2 years ago
Full Changelog: https://github.com/google/zx/compare/6.2.2...6.2.3
Published by antonmedv over 2 years ago
Full Changelog: https://github.com/google/zx/compare/6.2.1...6.2.2
Published by antonmedv over 2 years ago
This release contains updates of dependencies:
minimist ^1.2.5 → ^1.2.6
yaml ^1.10.2 → ^2.0.0
Published by antonmedv over 2 years ago
experimental.mjs
by @antongolub in https://github.com/google/zx/pull/363
Full Changelog: https://github.com/google/zx/compare/6.0.6...6.0.7
Published by antonmedv over 2 years ago
which
package as global by @antongolub in https://github.com/google/zx/pull/347
withTimeout
helper by @antongolub in https://github.com/google/zx/pull/355
Full Changelog: https://github.com/google/zx/compare/6.0.3...6.0.4
Published by antonmedv over 2 years ago
--experimental
flag by @antongolub in https://github.com/google/zx/pull/346
Full Changelog: https://github.com/google/zx/compare/6.0.1...6.0.2
quiet
func by @svennergr in https://github.com/google/zx/pull/332
retry
by @antongolub in https://github.com/google/zx/pull/335
spawn
func by @antongolub in https://github.com/google/zx/pull/333
maxBuffer
option by @antongolub in https://github.com/google/zx/pull/337
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.
Published by antonmedv over 2 years ago
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`
Published by antonmedv over 2 years ago
__/\\\\\\\\\\\__/\\\____/\\\_
_\///////\\\/__\///\\\/\\\/__
______/\\\/______\///\\\/____
____/\\\/_________/\\\/\\\___
__/\\\\\\\\\\\__/\\\/\///\\\_
_\///////////__\///____\///__
chalk ^4.1.2 → ^5.0.0
globby ^12.0.1 → ^13.1.1
node-fetch ^2.6.1 → ^3.2.0
Added YAML
package.
let {foo} = YAML.parse('foo: bar')
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.
Published by antonmedv about 3 years ago
zx/globals
.Published by antonmedv about 3 years ago
zx/globals
49d4868import 'zx/globals'
Published by antonmedv about 3 years ago
In this release:
kill()
method 4915ff3path
package ce69a84New examples:
let {stdin, stdout} = $`npm init`
for await (let chunk of stdout) {
if (chunk.includes('package name:')) stdin.write('test\n')
}