node-logger
node-logger copied to clipboard
@ekino/logger v3.0
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
TODO: fix github-action for release and changelog.
Thank @Nico385412 for all the reviews!