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

[Snyk] Upgrade zx from 8.1.0 to 8.1.1 #7

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

WeiLunSnyk
Copy link
Collaborator

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade zx from 8.1.0 to 8.1.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.

  • The recommended version was released on 21 days ago.

Release notes
Package name: zx
  • 8.1.1 - 2024-05-23

    This release brings a pinch of sugar and minor fixes.

    Features

    • Introduced $.preferLocal option to prefer node_modules/.bin located binaries over globally system installed ones.

      #798
    $.preferLocal = true

    await $c8 npm test

    await $({ preferLocal: true })eslint .

    • Added some formatter shortcuts for ProcessPromise:

      #764, #811, #815
    const p = $echo 'foo\nbar'

    await p.text() // foo\n\bar\n
    await p.text('hex') // 666f6f0a0861720a
    await p.buffer() // Buffer.from('foo\n\bar\n')
    await p.lines() // ['foo', 'bar']
    await $echo '{"foo": "bar"}'.json() // {foo: 'bar'}

    • ProcessPromise now exposes its signal reference.

      #816
    https://example.com', {signal})

    setTimeout(() => p.abort('reason'), 1000)">

    const p = $sleep 999
    const {signal} = p

    const res = fetch('https://example.com', {signal})

    setTimeout(() => p.abort('reason'), 1000)

    Fixes

    • CLI flag --quiet is mapped to $.quiet option. #813
    • Module conditional exports are properly sorted now. #812
    • A newline character is appended to the output of ProcessPromise if it's missing. #810
  • 8.1.0 - 2024-05-13

    This new release is a big deal. It brings significant improvements in reliability and compatibility.

    New features

    Added usePwsh() helper to switch to PowerShell v7+ #790

    import {usePwsh, useBash} from 'zx'

    usePwsh()
    $.shell // 'pwsh'

    useBash()
    $.shell // 'bash'

    timeout is now configurable $ opts #796

    import {$} from 'zx'

    await $({ timeout: 100 })sleep 999

    $.timeout = 1000 // Sets default timeout for all commands
    $.timeoutSignal = 'SIGKILL' // Sets signal to send on timeout

    await $sleep 999

    Added --cwd option for CLI #804

    zx --cwd=/some/path script.js

    Introduced tmpdir and tmpfile helpers #803

    import {tmpdir, tmpfile} from 'zx'

    t1 = tmpdir() // /os/based/tmp/zx-1ra1iofojgg/
    t2 = tmpdir('foo') // /os/based/tmp/zx-1ra1iofojgg/foo/

    f1 = tmpfile() // /os/based/tmp/zx-1ra1iofojgg
    f2 = tmpfile('f.txt') // /os/based/tmp/zx-1ra1iofojgg/foo.txt
    f3 = tmpfile('f.txt', 'string or buffer')

    • Support CRLF for markdown script #788
    • Added help digest for man #806
    • Added compatibility with Deno 1.x. → zx seems to be working with Deno 1.x.
from zx GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

@Shoreasg Shoreasg merged commit e2e422e into main Jun 29, 2024
4 checks passed
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.

3 participants