debug
4.4.3 · 13 Sep 2025MIT930.4M / weekRepositoryHomepagenpmAtom feed
3.2.7 is the newest release of 3.x.
In short
4 breaking8 new1 fixed2 internal
- breaking
Remove
DEBUG_FD - breaking
Make millisecond timer namespace specific and allow 'always enabled' output
- breaking
Use
Date#toISOString()instead toDate#toUTCString()when output is not a TTY - breaking
enabled()updates existing debug instances
Security
2 advisories affect 3.0.0; 3.2.7 fixes them
- Highdebug Inefficient Regular Expression Complexity vulnerabilityGHSA-9vvw-cc9w-f27h · 9 Jan 2023Fixed in 3.1.0
- LowRegular Expression Denial of Service in debugGHSA-gxpj-cx7g-858c · 9 Aug 2018Fixed in 3.2.7
Release note
Major Changes
- breaking
Remove
DEBUG_FD - breaking
Make millisecond timer namespace specific and allow 'always enabled' output
- breaking
Use
Date#toISOString()instead toDate#toUTCString()when output is not a TTY - breaking
enabled()updates existing debug instances
Minor Changes
Add
destroy()functionDocument
enabledflagSupport 256 colors
Update "browserify" to v14.4.0: 826fd94
Separate Node.js and web browser examples: 87880f6
More readme screenshots replaced: 25eb545
Add Namespace Colors section to readme: 8b5c438
Separate the Node and Browser tests in Travis: f178d86
Patches
Component: Update "ms" to v2.0.0: d2dd80a