Skip to content

Latest commit

 

History

History
200 lines (146 loc) · 6.46 KB

File metadata and controls

200 lines (146 loc) · 6.46 KB

Changelog

4.0.4-prerelease - 2026-08-17

  • Flush writes that arrive during an in-flight flush
  • Skip file writes after close()
  • Treat null as a JSON message, not a log object
  • Flush on beforeExit when crash: 'flush'
  • Update TypeScript typings and README
  • Improve code style
  • Add node.js 26 to CI
  • Update dependencies

4.0.3-prerelease - 2026-03-10

  • Remove private members from TypeScript declarations
  • Audit: Bump minimatch from 3.1.2 to 3.1.5
  • Update dependencies

4.0.2-prerelease - 2025-12-28

  • Update dependencies
  • Add node.js 25 to CI

4.0.1-prerelease - 2025-10-13

  • Fix ENOENT error when using relative paths
  • Add tests to reproduce and verify ENOENT fix

4.0.0-prerelease - 2025-09-07

  • Enhanced Console class with full Node.js API compatibility:
    • Added console.dirxml() method
    • Enhanced console.dir() to support options parameter
    • Enhanced console.table() to support properties parameter
    • Fixed console.timeLog() to properly calculate elapsed time
  • Decompose Logger to:
    • Logger - Main logging class with file rotation and buffering
    • Console - Full Node.js console API compatibility
    • BufferedStream - Efficient buffered stream writing
    • Formatter - Log formatting with pretty, file, and JSON output
  • Renamed options: writeInterval → flushInterval
  • Added complete configuration options table with types and defaults
  • Added advanced usage examples (custom streams, selective logging, JSON logging)
  • Added comprehensive API reference for all classes and methods
  • Corrected: "log levels" → "log tags" throughout code and docs

3.1.17 - 2025-09-04

  • Consolidate test files: console.js and json.js to eliminate code duplication
  • Remove node 21 and 23 from CI, set engines: >=18
  • Update dependencies
  • Fix TypeScript typings:
    • add missing properties and methods
    • add constructor option: crash
    • add complete Console interface with all available methods
    • use unknown instead of any for better type safety

3.1.16 - 2025-06-05

  • Add node.js 23 and 24 to CI
  • Update dependencies

3.1.15 - 2024-08-30

  • Update eslint to 9.x and prettier with configs
  • Add node.js 22 to CI

3.1.14 - 2023-12-10

  • Moved to native node test runner
  • Update dependencies
  • Fix package file: url and formatting
  • Update Guthub actions CI config and add nodejs 21 to CI
  • Add "es2020" to eslint configuration

3.1.13 - 2023-10-22

  • Added flush logs on buffer size condition
  • Added default params toFile, toStdout in constructor
  • Drop node.js 16 and 19
  • Update dependencies and convert lockfileVersion 2 to 3

3.1.12 - 2023-07-13

  • Use isError from metautil
  • Use private fields in Console
  • Maintenance: update typings, dependencies, eslint rules, fix code style

3.1.11 - 2023-05-01

  • Drop node.js 14 support, add node.js 20
  • Convert package_lock.json to lockfileVersion 2
  • Update dependencies

3.1.10 - 2023-03-13

  • Update dependencies and fix security issues
  • Add node: prefix in require for built-in modules

3.1.9 - 2022-07-07

  • Package maintenance

3.1.8 - 2022-03-30

  • Add support for json-only logs

3.1.7 - 2022-03-17

  • Fix unlink empty files
  • Improve error handling
  • Update dependencies and package maintenance

3.1.6 - 2021-12-08

  • Fix typings
  • Remove useless code from tests
  • Fix unlink file bug

3.1.5 - 2021-10-11

  • Update dependencies and npm audit fix

3.1.4 - 2021-09-10

  • Update dependencies

3.1.3 - 2021-07-22

  • Improve code style
  • Move types to package root

3.1.2 - 2021-05-24

  • Package maintenance

3.1.1 - 2021-01-15

  • Remove code duplication: use metautil.replace
  • Remove unneeded code and comments
  • Add examples to README.md
  • Add .d.ts typings

3.1.0 - 2021-01-07

  • Use metautil instead of metarhia/common
  • Use writable factory instead of constructor
  • Use fs.createWriteStream instead of metastreams

3.0.0 - 2020-12-16

  • Change Logger interface, use async/await
  • Console interface implementation
  • Create log folder if not exists
  • Support windows
  • New Logger class extends EventEmitter
  • Refactor module to use new ES2020 syntax and features
  • Rewrite code using async/await
  • Truncate paths in stack traces to minimize log files
  • Use metarhia eslint config
  • Fix multiple bugs and optimize performance

First generation of Metarhia Logger