Skip to content

@ekino/logger v3.0#48

Merged
tduyng merged 76 commits into
ekino:masterfrom
tduyng:3.0
Apr 30, 2026
Merged

@ekino/logger v3.0#48
tduyng merged 76 commits into
ekino:masterfrom
tduyng:3.0

Conversation

@tduyng
Copy link
Copy Markdown
Contributor

@tduyng tduyng commented Feb 24, 2025

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

Also close issue #25 , close issue #37

tduyng added 30 commits October 21, 2024 16:00
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread benchmarks/README.md Outdated
Comment thread benchmarks/README.md Outdated
Comment thread benchmarks/README.md Outdated
Comment thread docs/BREAKING_CHANGES.md Outdated
Comment thread examples/cjs/example3.cjs Outdated
Comment thread examples/esm/example3.js Outdated
Comment thread examples/example3.ts Outdated
@tduyng
Copy link
Copy Markdown
Contributor Author

tduyng commented Dec 3, 2025

Thank @Nico385412 for all the reviews!

Comment thread package.json Outdated
Comment thread package.json Outdated
Copy link
Copy Markdown

@halimatou-cpu halimatou-cpu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@tduyng tduyng force-pushed the 3.0 branch 6 times, most recently from 308b75a to d2405d7 Compare April 30, 2026 07:17
- Fix error message format for backward compatibility
- Fix setNamespaces whitespace handling
- Fix setGlobalContext to use deep copy (structuredClone)
- Export isEnabled function for namespace/level checking
- Add cache invalidation when namespaces/level change
- Remove memoize to avoid memory leak
- Remove benchmarks and performance docs (not needed)
- Update BREAKING_CHANGES.md
@tduyng tduyng merged commit fdd4f5e into ekino:master Apr 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants