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

chore(deps): update dependency zx to v7 #90

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 31, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zx ^4.3.0 -> ^7.0.0 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.


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 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner January 31, 2023 22:25
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Base: 70.31% // Head: 70.31% // No change to project coverage 👍

Coverage data is based on head (b834168) compared to base (f2b6b82).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #90   +/-   ##
=======================================
  Coverage   70.31%   70.31%           
=======================================
  Files          41       41           
  Lines         283      283           
  Branches       35       35           
=======================================
  Hits          199      199           
  Misses         81       81           
  Partials        3        3           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

0 participants