This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Releases: g-script/better-tail
Releases · g-script/better-tail
v0.2.0
Changelog
- Add support for
line
event emitting already decoded data - Fix emitting when file is truncated
- Destroy stream on
end
event whenfollow
option is set tofalse
unfollow
method now executes only whenfollow
option is set totrue
(as indicated in documentation)
Tests
- Add tests for
line
event - Add tests for truncated file behavior
Documentation
- Small overall improvements
- Add new « good to know » section giving further details on some behaviors
- Add section on
line
event and updatedata
event section
v0.1.0
Changelog
- Fix invalid usage of
this.debug
with more than one argument - Mutualize options validation error handling
- Add support for customizable
retry
option, it can now be either a boolean or an object defining following properties:timeout
: abort retry after given millisecondsmax
: abort retry after given retries countinterval
: retry after given milliseconds (still defaults tosleepInterval
value)
Tests
- Fix invalid original test of
retry
option (timeout value was not set) - Add new tests for new
retry
options
Documentation
- Add code of conduct
- Make notes about options more visible
- Add
sleepInterval
usage example - Add list of supported encodings
- Add documentation about new
retry
option usage
v0.0.5
Changelog
This release does not change the way to use better-tail
. It just adds some improvements:
- validate options before running
- emits an error if validation failed
- adds new utility file containing, well, utilities
- moves files under
lib
folder
Tests
- add tests for invalid options
- add test for retry option
Documentation
- add section about debugging
- add section about tests
- add contributing guide
v0.0.4
Changelog
isFD
now checks for underlyingfd.fd
property to check if it’s a file descriptor- fix
undefined
target defaulting toprocess.stdin
(this is for another time but was planned for initial release)
Tests
- update test names to match options names they are testing
- add new test to check if
bytes
option superseedslines
option when both are set - add new test for undefined target handling
v0.0.3
Changelog
- retry option now wait for
sleepInterval
milliseconds between retries
Documentation
- add Github Action badge
- update retry option description
v0.0.2
Support Node.js from version 8 (code and tests).
v0.0.1
First release of better-tail
🎉