Skip to content

Releases: basefoundry/base-bash-libs

v1.2.0

Choose a tag to compare

@codeforester codeforester released this 05 Jul 03:33
41c3bba

Added

  • Added lib/bash/gh/lib_gh.sh with generic GitHub CLI availability, authentication diagnostics, failure reporting, and checked command execution helpers.

Fixed

  • Hardened std_run --timeout retry internals so timeout discovery is cached per call, fallback setup failures return a generic error, and fallback timer cleanup cannot remove the timeout marker before it is observed.
  • Clarified update_file_section logging when appending a new managed section.

Removed

  • Removed early compatibility aliases run, std_run_with_timeout, and str_in_array; use std_run, std_run --timeout, and list_contains instead.

v1.1.0

Choose a tag to compare

@codeforester codeforester released this 03 Jul 17:09
6ce8af0

Corrective 1.x release for the latest base-bash-libs code line. This release
supersedes the accidental v2.0.0 publication while preserving all launcher and
library changes.

Added

  • Added the base-bash launcher for standalone scripts that want the
    base-bash-libs stdlib preloaded from a shebang.
  • Added std_run --timeout, --max-attempts, and --retry-delay execution
    policy options for timeout-only, retry-only, and timeout-plus-retry command
    execution.

Changed

  • Changed string case and trim helpers to mutate named variables in place
    instead of requiring command substitution.
  • Added public assert_variable_name validation for helpers that accept Bash
    variable names.
  • Deprecated std_run_with_timeout in documentation for new code; it remains as
    a compatibility wrapper around std_run --timeout.
  • Changed cleanup path registration to require absolute paths so exit cleanup
    cannot drift after a script changes directory.
  • Changed the Bash timeout fallback to kill TERM-ignoring commands after a short
    grace period.
  • Changed list and string array helpers to require caller-declared indexed arrays
    instead of silently coercing scalar variables.

base-bash-libs v1.0.0

Choose a tag to compare

@codeforester codeforester released this 21 Jun 20:57
437575b

Added

  • Added lib/bash/str/lib_str.sh with string case, trim, predicate, split, join, and membership helpers.
  • Added a documented stdlib-loaded marker for companion-library dependency guards.
  • Added stdlib cleanup hook and cleanup path registration backed by a shared EXIT trap.
  • Added portable stdlib temporary file and directory helpers with default exit cleanup.
  • Added stdlib command path and function introspection helpers.
  • Added std_run_with_timeout for bounded command execution with macOS/Linux fallback behavior.

Fixed

  • Made the Tests workflow run on main pushes after the default-branch migration.

base-bash-libs v0.2.1

Choose a tag to compare

@codeforester codeforester released this 18 Jun 23:12
2f97fd5

Changed

  • Changed the project license from AGPL-3.0-or-later to Apache-2.0 for broader generic library adoption.
  • Refreshed the top-level README with version/license/install/release metadata and direct links to each library README.
  • Added NOTICE attribution for the Apache-2.0 distribution.
  • Added validation that keeps the README version strip aligned with the repo-root VERSION file.

Validation

  • ./tests/validate.sh
  • GitHub Actions Tests workflow
  • git diff --check

base-bash-libs v0.2.0

Choose a tag to compare

@codeforester codeforester released this 18 Jun 21:49
5191de7

Added

  • Added std_run as the preferred command-runner API while retaining run as a compatibility wrapper.
  • Added readonly BASE_BASH_LIBS_VERSION, sourced from the package VERSION file when lib_std.sh loads.
  • Added optional --fetch support to check_script_up_to_date.
  • Added Linux and supported-Bash GitHub Actions validation coverage.
  • Added PTY-backed coverage for wait_for_enter.
  • Added non-Homebrew installation documentation.

Changed

  • Preserved target file modes when update_file_section appends or replaces managed sections.
  • Hardened update_file_section marker ordering and edge-case behavior.
  • Validated variable-name arguments consistently across stdlib and git helpers.
  • Respected NO_COLOR and composed structured log records before one final stderr write.
  • Made safe_mkdir, git_get_current_branch, and git pull retry behavior more explicit.

Fixed

  • Failed cleanly when lib_std.sh is sourced by unsupported Bash versions.
  • Returned nonzero from set_log_level for invalid input without changing existing logger levels.
  • Added explicit dependency guards for companion libraries sourced without the stdlib.

base-bash-libs v0.1.0

Choose a tag to compare

@codeforester codeforester released this 17 Jun 19:14
e6e976c

Added

  • Initialized the repository with the Base-managed repo baseline.
  • Added the standalone Bash std, file, and git libraries copied from Base, including BATS coverage, ShellCheck validation, and a standalone usage example.