Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Releases: g-script/better-tail

v0.2.0

15 Dec 01:53

Choose a tag to compare

Changelog

  • Add support for line event emitting already decoded data
  • Fix emitting when file is truncated
  • Destroy stream on end event when follow option is set to false
  • unfollow method now executes only when follow option is set to true (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 update data event section

v0.1.0

13 Dec 12:52

Choose a tag to compare

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 milliseconds
    • max: abort retry after given retries count
    • interval: retry after given milliseconds (still defaults to sleepInterval 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

12 Dec 16:16
bcb9a63

Choose a tag to compare

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

12 Dec 11:12
c6d9f7a

Choose a tag to compare

Changelog

  • isFD now checks for underlying fd.fd property to check if it’s a file descriptor
  • fix undefined target defaulting to process.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 superseeds lines option when both are set
  • add new test for undefined target handling

v0.0.3

12 Dec 01:24
a0cbc3b

Choose a tag to compare

Changelog

  • retry option now wait for sleepInterval milliseconds between retries

Documentation

  • add Github Action badge
  • update retry option description

v0.0.2

12 Dec 01:15
8cc85b9

Choose a tag to compare

Support Node.js from version 8 (code and tests).

v0.0.1

11 Dec 13:15

Choose a tag to compare

First release of better-tail 🎉