Skip to content

chore(deps-dev): Bump just-bash from 3.4.2 to 3.6.1 - #469

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/just-bash-3.6.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/just-bash-3.6.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor

Bumps just-bash from 3.4.2 to 3.6.1.

Release notes

Sourced from just-bash's releases.

just-bash@3.6.1

Patch Changes

  • #590 8386d25 Thanks @​privatenumber! - Bound awk field arrays by maxArrayElements. Assigning to NF, to $N, or to a field through sub/gsub now fails with field count limit exceeded before allocating, instead of padding the record with millions of empty fields. Splitting a record into fields (input records, $0 assignment, sub/gsub on $0) stops at the same limit, so a record with more fields than maxArrayElements now fails with that error. Rebuilding $0 checks the joined size against the string limit first, and a negative NF is rejected as in gawk.

  • #562 3ebd1c2 Thanks @​Hazzng! - Treat /dev/null redirects as a discard/EOF device without requiring filesystem device nodes. Output redirects discard data, input redirects return EOF, and read-write redirects support both behaviors. This works on filesystems that cannot initialize /dev, preserves command exit statuses, and prevents append redirects from growing a backing file.

    This change covers redirect operators only. Commands that access /dev/null by path, such as cat, cp, and test -e, still depend on filesystem entries. /dev/stdout and /dev/stderr retain their existing behavior; stream-device identity and offset handling are separate work.

  • #584 8fc1930 Thanks @​privatenumber! - Support rg --color and --, and align heading layout, context match prefixes, glob precedence, explicit-file selection, zero match limits, and error exit codes with ripgrep. Preserve the documented smart-case default and plain text output for all color choices.

    Correct overlapping-context match prefixes in grep, egrep, and fgrep, while retaining context prefixes for trailing lines after their -m limit. Apply ripgrep's combined --glob/--iglob precedence, validate types in rg --files mode and malformed --iglob values, and accept attached values in combined short flags and leading + in nonnegative numeric values.

    Honor per-file -m limits in line-based count mode for rg, grep, egrep, and fgrep, including rg --count-matches, which counts every occurrence on the selected matching lines.

  • #552 7c39159 Thanks @​FredAmartey! - Evaluate the index of X[expr] in jq against the input, as jq does, so .foo[.bar] and $m[.] look up the right key. The index is read before the base and several keys come out in jq's order. path() and del follow the same rule, and xan can index with a column, as in split(names, '|')[idx]. Filters that leaned on the old reading change too: .items[length-1] now reads length from the input, so use .items[-1] for the last item.

  • #439 58d1ecf Thanks @​trieloff! - bash/sh: start nested shells from the exported environment only

    Bash.exec(…, { env, replaceEnv: true }) set its variables for commands run directly, but a nested sh -c or bash -c never saw them, and still saw the constructor's env instead:

    const bash = new Bash({ env: { SECRET: "leak" } });
    await bash.exec("sh", {
      args: ["-c", "echo [$MARKER]; printenv SECRET"],
      env: { MARKER: "YES" },
      replaceEnv: true,
    }); // was "[]\nleak\n", now "[YES]\n"

    Nested sh and bash now inherit only exported variables. Per-exec environment values reach them, export -n takes effect, and exports made in one exec() no longer affect later calls. Wrappers such as env, time, and timeout use the active caller's variables and exports, preserving script exports without restoring constructor variables during replacement execution.

    Startup resets IFS and OPTIND while retaining inherited export attributes. cd - uses the current OLDPWD: an unset value reports an error, and an empty value succeeds without changing directory.

  • #592 ad9039a Thanks @​privatenumber! - Each exec() now gets its own copy of shopt settings, readonly attributes, and hashed command paths, so changes made by one exec() no longer carry over to later calls on the same Bash instance. Nested executions (for example through time or a custom command's ctx.exec) still inherit the calling script's settings.

  • #580 f0baa00 Thanks @​privatenumber! - Preserve prepared output destinations when commands change directories and apply output, read-write (<>), and input-only redirects in source order. Combined redirects to /dev/stdout and /dev/stderr use the selected stream, input redirects on stdout or stderr leave stdin unchanged, and duplicated read-write destinations retain both stdout and stderr output.

  • #521 864dfe5 Thanks @​Hazzng! - Fix js-exec Buffer encoding defaults, UTF-8 reads, typed-array inputs, character-boundary writes, and range validation. Reduce temporary allocations in byte conversion, tr, and sed while preserving execution limits.

  • #561 6df20ce Thanks @​Hazzng! - Report a missing or non-directory parent of an output redirect target the way bash does

    On a filesystem whose writeFile throws ENOENT for a missing parent directory, echo x > /missing/f rejected the whole bash.exec() call. Inside a loop, the loop stopped after its first iteration and the script still exited 0. The command now fails alone with bash: /missing/f: No such file or directory (or Not a directory), $? is 1, and the script continues. Numeric-fd redirects such as exec 3> /missing/f print the same message in place of cannot open redirect target. Other filesystem errors, such as EROFS, behave as before.

  • #401 9ab0e0d Thanks @​atesgoral! - rg: search an empty piped or redirected stdin instead of the current directory

    printf '' | rg target treated the empty pipe as absent stdin and recursively searched the current directory. Real ripgrep searches the empty input and exits 1 with no matches. A pipeline stage or an fd-0 redirection (< empty-file, an empty here-doc) now counts as stdin even when empty, including through command rg and exec rg.

    This applies to every external command: inside a group with its own stdin, { cat < empty-file; } < other now reads EOF instead of falling back to other.

... (truncated)

Commits
  • 5b82979 chore: release (#545)
  • 7a2a7a5 docs: define issue priority and pull request triage (#655)
  • 9ab0e0d fix(rg): preserve empty piped stdin (#401)
  • 8386d25 fix(awk): bound field array growth and record splitting (#590)
  • ad9039a Copy shopt options, readonly attributes, and hash table per exec (#592)
  • 8fc1930 fix(rg): align Grep tool arguments and output with ripgrep (#584)
  • f0baa00 fix(redirections): preserve opened destinations and redirect order (#580)
  • 3ebd1c2 fix(redirections): handle /dev/null without filesystem device nodes (#562)
  • 6df20ce fix(redirections): fail the command, not exec(), when a redirect target's par...
  • 7c39159 fix(jq): evaluate X[expr]'s index against the input (#552)
  • 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 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 [just-bash](https://github.com/vercel-labs/just-bash) from 3.4.2 to 3.6.1.
- [Release notes](https://github.com/vercel-labs/just-bash/releases)
- [Commits](https://github.com/vercel-labs/just-bash/compare/just-bash@3.4.2...just-bash@3.6.1)

---
updated-dependencies:
- dependency-name: just-bash
  dependency-version: 3.6.1
  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 Nov 24, 2026
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.

0 participants