Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.2.1] - 2026-06-30

### Fixed
- **Critical regression**: file contents were no longer extracted β€” the output
contained only the directory tree and every file was wrongly reported as
"empty" (`Processed 0 files`). The content extraction pipeline now reads and
writes file contents correctly again.
- `should_process_file()`: extension matching now strips a leading dot
(e.g. `--include .py` and `--include py` behave identically) and files without
an extension are handled correctly in both include and exclude modes.
- `list_files_to_process()`: rebuilt around a single `find` invocation with
proper directory, filename and extension filtering, emitting NUL-delimited
paths so filenames with spaces are handled safely.
- Removed a stray control character from the content-reading `sed` pipeline that
could corrupt or blank out file contents.
- Replaced `mapfile` with a Bash 3.2-compatible read loop so the script runs on
macOS's default Bash.

## [4.2] - 2025-12-18

### Added
Expand Down
4 changes: 2 additions & 2 deletions codepack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Author: Ɛɔıs3 Solutions
# GitHub: https://github.com/w3spi5
# License: MIT
# Version: 4.2
# Version: 4.2.1
# Dependencies: Optional external minifiers for maximum compression
# ----------------------------------------------------------------------------

Expand Down Expand Up @@ -935,7 +935,7 @@ main() {
check_minifiers

echo ""
echo "πŸ”§ codepack v4.2"
echo "πŸ”§ codepack v4.2.1"
echo "Automatically excluding directories: $(printf "'%s', " "${exclude_dirs[@]}" | sed 's/, $//')"
echo "Automatically excluding files: $(printf "'%s', " "${exclude_files[@]}" | sed 's/, $//')"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@w3spi5/codepack",
"version": "4.2.0",
"version": "4.2.1",
"keywords": [
"cli",
"minify",
Expand Down
Loading