google/zx (zx)
### [`v8.1.6`](https://redirect.github.com/google/zx/releases/tag/8.1.6)
[Compare Source](https://redirect.github.com/google/zx/compare/8.1.5...8.1.6)
##### Improvements & Fixes
- The `$.preferLocal` option now also accepts a directory [#886](https://redirect.github.com/google/zx/pull/886), [#887](https://redirect.github.com/google/zx/pull/887).
```ts
$.preferLocal = true // injects node_modules/.bin to the $PATH
$.preferLocal = '/foo/bar' // attaches /foo/bar to the $PATH
$.preferLocal = ['/bar', '/baz'] // now the $PATH includes both /bar and /baz
```
Why not just `$.env['PATH'] = 'extra:' + '$.env['PATH']`?
Well, the API internally does the same, but also [handles the win paths peculiarities](https://redirect.github.com/google/zx/blob/main/src/util.ts#L54).
- Provided `$.killSignal` option for the symmetry with the `$.timeoutSignal`. You can override the default termination flow [#885](https://redirect.github.com/google/zx/pull/885):
```ts
$.killSignal = 'SIGKILL'
const p = $({nothrow: true})`sleep 10000`
setTimeout(p.kill, 100)
(await p).signal // SIGKILL
```
- `$` opt presets became chainable [#883](https://redirect.github.com/google/zx/pull/883):
```ts
const $$ = $({ nothrow: true })
assert.equal((await $$`exit 1`).exitCode, 1)
const $$$ = $$({ sync: true }) // Both {nothrow: true, sync: true} are applied
assert.equal($$$`exit 2`.exitCode, 2)
```
- Enhanced the internal `Duration` parser [#884](https://redirect.github.com/google/zx/pull/884):
```ts
const p = $({timeout: '1mss'})`sleep 999` // raises an error now
```
- Abortion signal listeners are now removed after the process completes [#881](https://redirect.github.com/google/zx/issues/881), [#889](https://redirect.github.com/google/zx/pull/889), [zurk#12](https://redirect.github.com/webpod/zurk/pull/12), [zurk#13](https://redirect.github.com/webpod/zurk/pull/13).
- Extended integration tests matrix, added nodejs-nightly builds and TS dev snapshots [#888](https://redirect.github.com/google/zx/pull/888)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
8.1.5
->8.1.6
Release Notes
google/zx (zx)
### [`v8.1.6`](https://redirect.github.com/google/zx/releases/tag/8.1.6) [Compare Source](https://redirect.github.com/google/zx/compare/8.1.5...8.1.6) ##### Improvements & Fixes - The `$.preferLocal` option now also accepts a directory [#886](https://redirect.github.com/google/zx/pull/886), [#887](https://redirect.github.com/google/zx/pull/887). ```ts $.preferLocal = true // injects node_modules/.bin to the $PATH $.preferLocal = '/foo/bar' // attaches /foo/bar to the $PATH $.preferLocal = ['/bar', '/baz'] // now the $PATH includes both /bar and /baz ``` Why not just `$.env['PATH'] = 'extra:' + '$.env['PATH']`? Well, the API internally does the same, but also [handles the win paths peculiarities](https://redirect.github.com/google/zx/blob/main/src/util.ts#L54). - Provided `$.killSignal` option for the symmetry with the `$.timeoutSignal`. You can override the default termination flow [#885](https://redirect.github.com/google/zx/pull/885): ```ts $.killSignal = 'SIGKILL' const p = $({nothrow: true})`sleep 10000` setTimeout(p.kill, 100) (await p).signal // SIGKILL ``` - `$` opt presets became chainable [#883](https://redirect.github.com/google/zx/pull/883): ```ts const $$ = $({ nothrow: true }) assert.equal((await $$`exit 1`).exitCode, 1) const $$$ = $$({ sync: true }) // Both {nothrow: true, sync: true} are applied assert.equal($$$`exit 2`.exitCode, 2) ``` - Enhanced the internal `Duration` parser [#884](https://redirect.github.com/google/zx/pull/884): ```ts const p = $({timeout: '1mss'})`sleep 999` // raises an error now ``` - Abortion signal listeners are now removed after the process completes [#881](https://redirect.github.com/google/zx/issues/881), [#889](https://redirect.github.com/google/zx/pull/889), [zurk#12](https://redirect.github.com/webpod/zurk/pull/12), [zurk#13](https://redirect.github.com/webpod/zurk/pull/13). - Extended integration tests matrix, added nodejs-nightly builds and TS dev snapshots [#888](https://redirect.github.com/google/zx/pull/888)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.