Releases: google/zx
Releases · google/zx
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.
4.3.0
4.2.0
4.1.1
4.1.0
4.0.0
3.1.0
3.0.0
- 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)