Releases: lynxthecat/adblock-lean
v0.6.2
This is a small bugfix release. We are planning a much larger release soon, and v0.6.2 is just meant to have the current stable code released.
Bugs fixed:
- Rogue elements check not working
- Config version updates failing with Busybox
sed
(thank you @splintering for reporting the issue)
Full Changelog: v0.6.1...v0.6.2
v0.6.1
What's Changed
- Revert attaching session log when calling
report_success()
from custom script - Minor improvement to console messages
- Fix old libraries still used while updating adblock-lean and accepting the 'Start adblock-lean now?' dialog
- Fix error while updating adblock-lean and the new version has a different config format
Full Changelog: v0.6.0...v0.6.1
v0.6.0
This release fixes a few minor issues:
- Fix adblock-lean not showing up in Startup in Luci on OpenWrt 24.10 and current OpenWrt snapshot (thanks OpenWrt forum user openwrter for reporting the issue).
- Fix the symlink created in
/etc/rc.d
(wasK4adblock-lean
, should beK04adblock-lean
) - Fix GNU utils not detected correctly during the same run when they are installed
- Additional minor fixes and improvements
But mostly this release focuses on changing the code structure of adblock-lean, implementing proper versioning and enhancing the version update functionality.
The code is now split between the service file - /etc/init.d/adblock-lean
and 2 library files - /usr/lib/adblock-lean/abl-lib.sh
and /usr/lib/adblock-lean/abl-process.sh
. This is mainly to make it easier to maintain and develop the project.
adblock-lean now supports 2 version update channels: release
and snapshot
. When updating from a previous version, the update channel is automatically set to release
. When on this channel, changes to adblock-lean master branch will no longer trigger the update notification. Rather, adblock-lean will detect new released versions and notify users about them. Mostly for troubleshooting purposes, we implemented additional options which can be specified when issuing the command service adblock-lean update
- you can learn more from the release details.
We also changed the version update mechanism - rather than downloading the raw scripts, tar archives are now fetched from our Github and then unpacked. This should improve the reliability of version updates.
adblock-lean now supports a new command - service adblock-lean version
- which is self-explanatory.
This release also introduces the abl-install.sh
script which can be used for initial adblock-lean installation. We updated the installation instructions in the README accordingly.
Details
- Refactor into 3 scripts (adblock-lean, usr/lib/adblock-lean/abl-lib.sh, usr/lib/adblock-lean/abl-process.sh)
- Add abl-install.sh
- Implement versioning in scripts
- Implement
version
command - start(), status(): print adblock-lean version
- status(): check and print service enabled state
- Implement support for update channels: 'release' and 'snapshot'
- Update and install can fetch any of: latest released version (
service adblock-lean update
if on release channel orservice adblock-lean update -v latest
if not), any previously released version (service adblock-lean update -v v[version]
), any version on any branch corresponding to a GH tag (service adblock-lean update -v tag=[tag]
), latest snapshot on master (service adblock-lean update -v snapshot
), any version corresponding to a commit on any branch (service adblock-lean update -v commit=[commit_hash]
) - Upon update from previous versions, set update channel to 'release'
- When updating or installing, fetch and unpack tar archives rather than fetching raw files (should improve reliability)
- Re-detect GNU utils after installing any of them
- Fix the K symlink in
/etc/rc.d
(wasK4adblock-lean
, should beK04adblock-lean
) - Fix adblock-lean not showing up in Startup in Luci on OpenWrt 24.10 and current OpenWrt snapshot (workaround for openwrt/packages#25963)
- Minor optimizations in
int2human()
(suggested by Dantes on OpenWrt forum) - Additional minor fixes and improvements
- Update the README
Full Changelog: v0.5.4...v0.6.0
v0.5.4
This is a maintenance and bugfix release with following changes since v0.5.3:
- Fix dnsmasq instances detection with built-in Busybox utils
- Always detect utils on script initialization
- Decouple utils detection from utils reporting
- init_command(): fix writing to session log when command is gen_config
- setup(): use log_msg() rather than print_msg() for messages which should be logged
- setup(): ignore ${luci_use_old_config} when config file doesn't exist
- setup(): communicate fatal errors via error codes
- parse_config(): remove irrelevant code for recommended preset detection
- write_config(): correctly handle $luci_preset=auto
- parse_config(): add error message
- parse_config(): use 'return' rather than 'exit'
- fix_config(): use 'return' rather than 'exit'
- get_dnsmasq_instance_ns(): use $SED_CMD
- Change some colors and add some spacers in console output
- check_lock(): when detecting stale pid file, report PID which used to own that file
- init_command(): do not reset $lock_req on each command initialization
- init_command(): make sure to always set $log_file
- Implement rc_enable(), rc_enabled(), rc_disable()
- Use more straightforward logic for 'enable', 'disable' commands
- Increase 'large' preset target entries count to 1M
- Add preset 'large_relaxed' intended for 1024MiB+ devices, same default lists selection as in 'large' but max limits are multiplied by 2
- Various minor bugfixes and improvements
v0.5.3
This is a pretty big release with following main changes:
- Implement proper support for selecting the dnsmasq instance and automatically acquiring its properties (including the conf-dir), which fixes compatibility with OpenWrt snapshots, and with systems which are using multiple dnsmasq instances
- Support the 'apk' package manager for OpenWrt snapshots
- Multiple (mostly minor) bugfixes
- Various code quality improvements
- Minor improvements in console, log and error messages
- Improve and update documentation
Full Changelog: v0.5.2...v0.5.3
Cheers!
v0.5.2
In preparation for the next major release, we are releasing this version which has shown itself to be stable and reliable for the past 3 monts. This has only minor changes, compared to v0.5.1.
What's Changed
- Fix cron job removal when uninstalling by @friendly-bits in #82
- Update brevo example, mailsend smtp address by @Wizballs in #83
v0.5.1
This is a hotfix for v0.5.0 , fixing domains removal in whitelist mode.
What's Changed
- Fix domains removal in whitelist mode by @friendly-bits in #81
Full Changelog: v0.5.0...v0.5.1
v0.5.0 - first numbered release
While adblock-lean has been in development (and in use) for quite some time, this is the first numbered release. We picked an arbitrary number (v0.5.0) for it.