Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency zx to v7 #325

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update dependency zx to v7 #325

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 18, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zx ^1.14.1 -> ^7.2.3 age adoption passing confidence

Release Notes

google/zx (zx)

v7.2.3

Compare Source

What's Changed

New Contributors

Full Changelog: google/zx@7.2.2...7.2.3

v7.2.2

Compare Source

What's Changed

New Contributors

Full Changelog: google/zx@7.2.1...7.2.2

v7.2.1

Compare Source

What's Changed

New Contributors

Full Changelog: google/zx@7.2.0...7.2.1

v7.2.0

Compare Source

🐚 zx v7.2.0 release! 🎉

A tool for writing better scripts

zx

In this release:

  • Helpers retry() & spinner() now available in zx without the experimental flag.
  • Added support for ~~~ blocks in markdown scripts.
  • Updated npm dependencies.
  • Added support for ssh commands via webpod.

PS: Plan for the next v8 release.

v7.1.1

Compare Source

  • Fixed default shell on Windows: if bash is installed, use bash by default.

v7.1.0

Compare Source

Autoinstall

This release introduces a new flag --install which will parse and install all required or imported packages automatically.

import sh from 'tinysh'
sh.say('Hello, world!')

And running zx --install script.mjs will trigger installation of tinysh package! It even possible to specify a needed version in comment with @ symbol:

import sh from 'tinysh' // @​^1.0.0
PowerShell

Another big change is for Windows. Now, the default shell on Windows is powershell.exe.

This should fix a lot of issues with "dollar" signs.

Fixes
  • Minimist now correctly parses argv when using zx cli.

v7.0.8

Compare Source

What's Changed

Full Changelog: google/zx@7.0.7...7.0.8

v7.0.7

Compare Source

Now it's possible to do:

const my$ = $.bind(null)
const foo = await my$`echo foo`

v7.0.6

Compare Source

  • Bunch of fixes and improvements. ᕕ( ᐛ )ᕗ

v7.0.5

Compare Source

  • Fixed types definitions for autocomplete in VSCode #​466

v7.0.4

Compare Source

  • Fixed default shell on Windows.
  • Fixed missing chalk import in zx/experimental.

v7.0.3

Compare Source

v7.0.2

Compare Source

  • Fixed possibility to set exit code with process.exitCode = 42 in scripts.

v7.0.1

Compare Source

  • Fixed cd() func with zx/globals import.
  • Fixed argv initialization with zx and node shebangs.

v7.0.0

Compare Source

🐚 zx v7.0.0 release! 🎉

A tool for writing better scripts

zx

In this release:

  • Fully rewritten in TypeScript.
  • Code coverage is now 99%.
  • New within() API for async contexts.
  • echo() now comes out of the box.
  • Support for --eval flag.
  • REPL support.

v6.2.5

Compare Source

What's Changed

New Contributors

Full Changelog: google/zx@6.2.4...6.2.5

v6.2.4

Compare Source

What's Changed

Full Changelog: google/zx@6.2.3...6.2.4

v6.2.3

Compare Source

What's Changed

Full Changelog: google/zx@6.2.2...6.2.3

v6.2.2

Compare Source

What's Changed

Full Changelog: google/zx@6.2.1...6.2.2

v6.2.1

Compare Source

  • Fixed $.verbose type.

v6.2.0

Compare Source

This release adds async local contexts via ctx() and configurable logger.

v6.1.0

Compare Source

This release contains updates of dependencies:

 minimist   ^1.2.5  →  ^1.2.6
 yaml      ^1.10.2  →  ^2.0.0

v6.0.7

Compare Source

What's Changed

Full Changelog: google/zx@6.0.6...6.0.7

v6.0.6

Compare Source

v6.0.5

Compare Source

v6.0.4

Compare Source

What's Changed

Full Changelog: google/zx@6.0.3...6.0.4

v6.0.3

Compare Source

v6.0.1

Compare Source

v6.0.0

Compare Source

v5.3.0

Compare Source

What's Changed

v5.2.0

Compare Source

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.

v5.1.0

Compare Source

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`

v5.0.0

Compare Source

   __/\\\\\\\\\\\__/\\\____/\\\_     
    _\///////\\\/__\///\\\/\\\/__    
     ______/\\\/______\///\\\/____   
      ____/\\\/_________/\\\/\\\___  
       __/\\\\\\\\\\\__/\\\/\///\\\_ 
        _\///////////__\///____\///__

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.

v4.3.0

Compare Source

  • 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()

v4.2.0

Compare Source

  • Fixed export of zx/globals.
  • Improved usage CLI output.
Screenshot 2021-09-08 at 17 03 30

v4.1.1

Compare Source

  • Added missing path global 3f7e8fe

v4.1.0

Compare Source

import 'zx/globals'

v4.0.0

Compare Source

In this release:

New examples:

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

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

v3.1.0

Compare Source

v3.0.0

Compare Source

  • 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)

v2.1.0

Compare Source

This release:

v2.0.0

Compare Source

  • use fs-extra
  • add minimist
  • new CLI args: --quiet, --shell, --prefix

v1.15.2

Compare Source

  • fix: add / to non-quote regexp

v1.15.1

Compare Source

  • require >= node 15

v1.14.2

Compare Source

  • feat: store verbose flag for each promise
  • feat: add fs.constants field to global fs
  • various typescript improvements

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, 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 has been generated by Mend Renovate. View repository job log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants