node-logger icon indicating copy to clipboard operation
node-logger copied to clipboard

@ekino/logger v3.0

Open tduyng opened this issue 10 months ago • 1 comments

Summary

Rewrite @ekino/logger for v3.0

Motivation

  • It's been so long time the library is not matained
  • Rewrite this library for adapting the modern Node.js (Typescript, ESM)

What has changed?

Here are the key changes made in this PR:

  • Rewritten in ESM
  • Support for dual package (CommonJS and ESM)
  • Rewritten in TypeScript
  • Removed many unnecessary dependencies
  • Replaced yarn with pnpm, which is faster and more convenient with different commands and management
  • Upgraded GitHub Actions, rewrote some deprecated syntax
  • Using git-cliff on GitHub Actions for easily customizable CHANGELOG
  • Replaced ESLint + Prettier with Biome, which is faster, has sufficient rules, and is easier to set up
  • Rewrote all tests from ava + sinon.js + nyc + ts-node to vitest (compatible with ESM)
  • Create a benchmark compare with pino.js and winston
  • Refactored and cleaned up code, focusing on performance, and much more...

Test plan

  • All unit tests have been correctly rewritten with Vitest
  • All functional test behaviors are ensured

tduyng avatar Feb 24 '25 08:02 tduyng

TODO: fix github-action for release and changelog.

tduyng avatar May 23 '25 08:05 tduyng

Thank @Nico385412 for all the reviews!

tduyng avatar Dec 03 '25 15:12 tduyng