Skip to content

perf: replace debug with obug#161

Merged
43081j merged 1 commit intoe18e:mainfrom
PowerKiKi:obug
Feb 4, 2026
Merged

perf: replace debug with obug#161
43081j merged 1 commit intoe18e:mainfrom
PowerKiKi:obug

Conversation

@PowerKiKi
Copy link
Contributor

https://github.com/sxzz/obug is a newly developed project, forked from debug, the most popular npm library for debugging.

obug addresses several issues:

  • Built-in TypeScript support—no need to install @types/debug (More accurate)

  • Zero dependencies, achieved by dropping support for legacy browsers and older Node.js versions

    • Optimized for modern environments
    • Supports ES2015+ browsers
    • Compatible with Node.js 20.19 and above
  • Pure ESM

  • Extremely small footprint

    • Unpacked size: 21 KB vs 42 KB (including dependencies)
    • Production bundle size for browsers: only 3.22 kB, gzip: 1.5kB.
  • Uses trusted publishing (although some consider this meaningless, this is simply to inform those who care about it; related discussions are outside the scope of this post)

See e18e/ecosystem-issues#217 for discussion

@PowerKiKi
Copy link
Contributor Author

PowerKiKi commented Feb 4, 2026

I suppose it make sense dogfooding our own recommendations.

Copy link
Contributor

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

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

hey @PowerKiKi, thank you for taking the time to work on this! if @debug/types isn't needed anymore, would you mind removing it from dev deps? appreciate it!

@PowerKiKi
Copy link
Contributor Author

done in a squashed commit.

Copy link
Contributor

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

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

thank you @PowerKiKi

@43081j 43081j merged commit 081e861 into e18e:main Feb 4, 2026
3 of 4 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.

3 participants