Releases: basefoundry/base-bash-libs
Releases · basefoundry/base-bash-libs
Release list
v1.2.0
Added
- Added
lib/bash/gh/lib_gh.shwith generic GitHub CLI availability, authentication diagnostics, failure reporting, and checked command execution helpers.
Fixed
- Hardened
std_run --timeoutretry 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_sectionlogging when appending a new managed section.
Removed
- Removed early compatibility aliases
run,std_run_with_timeout, andstr_in_array; usestd_run,std_run --timeout, andlist_containsinstead.
v1.1.0
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-bashlauncher for standalone scripts that want the
base-bash-libs stdlib preloaded from a shebang. - Added
std_run --timeout,--max-attempts, and--retry-delayexecution
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_namevalidation for helpers that accept Bash
variable names. - Deprecated
std_run_with_timeoutin documentation for new code; it remains as
a compatibility wrapper aroundstd_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
Added
- Added
lib/bash/str/lib_str.shwith 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
EXITtrap. - Added portable stdlib temporary file and directory helpers with default exit cleanup.
- Added stdlib command path and function introspection helpers.
- Added
std_run_with_timeoutfor bounded command execution with macOS/Linux fallback behavior.
Fixed
- Made the Tests workflow run on
mainpushes after the default-branch migration.
base-bash-libs v0.2.1
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
Added
- Added
std_runas the preferred command-runner API while retainingrunas a compatibility wrapper. - Added readonly
BASE_BASH_LIBS_VERSION, sourced from the packageVERSIONfile whenlib_std.shloads. - Added optional
--fetchsupport tocheck_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_sectionappends or replaces managed sections. - Hardened
update_file_sectionmarker ordering and edge-case behavior. - Validated variable-name arguments consistently across stdlib and git helpers.
- Respected
NO_COLORand 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.shis sourced by unsupported Bash versions. - Returned nonzero from
set_log_levelfor invalid input without changing existing logger levels. - Added explicit dependency guards for companion libraries sourced without the stdlib.
base-bash-libs v0.1.0
Added
- Initialized the repository with the Base-managed repo baseline.
- Added the standalone Bash
std,file, andgitlibraries copied from Base, including BATS coverage, ShellCheck validation, and a standalone usage example.