Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Mar 11, 2025

Bumps zx from 8.2.2 to 8.4.0.

Release notes

Sourced from zx's releases.

8.4.0 – Drip Detective

Try the new batch of enhancements: npm i zx@8.4.0 https://www.npmjs.com/package/zx/v/8.4.0

Changes

  • The CLI option --prefer-local now allows linking both external binaries and packages #1116 #1117
const cwd = tmpdir()
const external = tmpdir()
await fs.outputJson(path.join(external, 'node_modules/a/package.json'), {
  name: 'a',
  version: '1.0.0',
  type: 'module',
  exports: './index.js',
})
await fs.outputFile(
  path.join(external, 'node_modules/a/index.js'),
  `
export const a = 'AAA'
`
)
const script = `
import {a} from 'a'
console.log(a);
`
const out = await $`zx --cwd=${cwd} --prefer-local=${external} --test <<< ${script}`
assert.equal(out.stdout, 'AAA\n')
  • The quote has been slightly changed for a conner case, when zx literal gets an array. #999 #1113
const p = $({prefix: '', postfix: ''})`echo ${[1, '', '*', '2']}`
// before
p.cmd //  echo 1  $'*' 2)
// after
p.cmd //  echo 1 $'' $'*' 2)

  • Provided support for custom script extensions via CLI #1104 #1105
zx script.zx           # Unknown file extension "\.zx"
zx --ext=mjs script.zx # OK

... (truncated)

Commits
  • 3efc9eb chore: add prettier to pre-commit hook (#1118)
  • 539130a feat(cli): use --prefer-local option to link external `node_modules (#1117)
  • 778fd03 chore: bump to v8.4.0 (#1114)
  • eff2d70 fix: enhance quote to handle empty args (#1113)
  • f4b0328 refactor: use ts exts for relative paths (#1111)
  • a23261b feat: pass origin error as ProcessOuput cause (#1110)
  • b571839 docs: describe nothrow option (#1109)
  • 1ef794a refactor: let nothrow suppress any kind of errors (#1108)
  • b709f2b feat: define explicit primitive cast for ProcessPromise and ProcessOutput...
  • 5f48c73 ci: separate build and publish steps (#1106)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [zx](https://github.com/google/zx) from 8.2.2 to 8.4.0.
- [Release notes](https://github.com/google/zx/releases)
- [Commits](google/zx@8.2.2...8.4.0)

---
updated-dependencies:
- dependency-name: zx
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 11, 2025
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Mar 17, 2025

Superseded by #37.

@dependabot dependabot bot closed this Mar 17, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/zx-8.4.0 branch March 17, 2025 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant