tag:github.com,2008:https://github.com/debug-js/debug/releases Release notes from debug 2025-09-13T17:24:52Z tag:github.com,2008:Repository/2871998/4.4.3 2025-09-13T17:26:59Z 4.4.3 <p>Functionally identical release to <code>4.4.1</code>.</p> <p>Version <code>4.4.2</code> is <strong>compromised</strong>. Please see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3394266240" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/1005" data-hovercard-type="issue" data-hovercard-url="/debug-js/debug/issues/1005/hovercard" href="https://github.com/debug-js/debug/issues/1005">#1005</a>.</p> Qix- tag:github.com,2008:Repository/2871998/4.4.1 2025-05-13T20:57:11Z 4.4.1 <h2>What's Changed</h2> <ul> <li>fix(Issue-996): replace whitespaces in namespaces string with commas globally by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pdahal-cx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pdahal-cx">@pdahal-cx</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2938748601" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/997" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/997/hovercard" href="https://github.com/debug-js/debug/pull/997">#997</a></li> <li>fixes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2788605483" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/987" data-hovercard-type="issue" data-hovercard-url="/debug-js/debug/issues/987/hovercard" href="https://github.com/debug-js/debug/issues/987">#987</a> fallback to localStorage.DEBUG if debug is not defined by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lzilioli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lzilioli">@lzilioli</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2788615273" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/988" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/988/hovercard" href="https://github.com/debug-js/debug/pull/988">#988</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pdahal-cx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pdahal-cx">@pdahal-cx</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2938748601" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/997" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/997/hovercard" href="https://github.com/debug-js/debug/pull/997">#997</a></li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lzilioli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lzilioli">@lzilioli</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2788615273" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/988" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/988/hovercard" href="https://github.com/debug-js/debug/pull/988">#988</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/debug-js/debug/compare/4.4.0...4.4.1"><tt>4.4.0...4.4.1</tt></a></p> Qix- tag:github.com,2008:Repository/2871998/4.4.0 2024-12-06T12:37:31Z 4.4.0 <p>Fixes (hopefully) the inefficient regex warnings in <code>.enable()</code>.</p> <p>Minor version as this is invariably going to break certain users who misuse the <code>.enable()</code> API and expected it to work with regexes, which was never supported nor documented. That's on you, sorry - that functionality won't be added back.</p> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/debug-js/debug/compare/4.3.7...4.4.0"><tt>4.3.7...4.4.0</tt></a></p> Qix- tag:github.com,2008:Repository/2871998/4.3.7 2024-09-06T00:53:57Z 4.3.7 <h2>What's Changed</h2> <ul> <li>Upgrade ms to version 2.1.3 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/realityking/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/realityking">@realityking</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="855961137" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/819" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/819/hovercard" href="https://github.com/debug-js/debug/pull/819">#819</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/debug-js/debug/compare/4.3.6...4.3.7"><tt>4.3.6...4.3.7</tt></a></p> Qix- tag:github.com,2008:Repository/2871998/4.3.6 2024-07-27T09:24:14Z 4.3.6 <h2>What's Changed</h2> <ul> <li>Avoid using deprecated RegExp.$1 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bluwy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bluwy">@bluwy</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2431924790" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/969" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/969/hovercard" href="https://github.com/debug-js/debug/pull/969">#969</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bluwy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bluwy">@bluwy</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2431924790" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/969" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/969/hovercard" href="https://github.com/debug-js/debug/pull/969">#969</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/debug-js/debug/compare/4.3.5...4.3.6"><tt>4.3.5...4.3.6</tt></a></p> Qix- tag:github.com,2008:Repository/2871998/4.3.5 2024-05-31T11:43:15Z 4.3.5 <h1>Patch</h1> <ul> <li><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/debug-js/debug/commit/cac39b1c5b018b0fe93a53a05f084eee543d17f5/hovercard" href="https://github.com/debug-js/debug/commit/cac39b1c5b018b0fe93a53a05f084eee543d17f5"><tt>cac39b1</tt></a> Fix/debug depth (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1581086823" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/926" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/926/hovercard" href="https://github.com/debug-js/debug/pull/926">#926</a>)</li> </ul> <p>Thank you <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/calvintwr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/calvintwr">@calvintwr</a> for the fix.</p> Qix- tag:github.com,2008:Repository/2871998/4.3.4 2022-03-17T13:40:20Z 4.3.4 <h2>What's Changed</h2> <ul> <li>Add section about configuring JS console to show debug messages by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gitname/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gitname">@gitname</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1121469751" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/866" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/866/hovercard" href="https://github.com/debug-js/debug/pull/866">#866</a></li> <li>Replace deprecated String.prototype.substr() by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CommanderRoot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CommanderRoot">@CommanderRoot</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1172293809" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/876" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/876/hovercard" href="https://github.com/debug-js/debug/pull/876">#876</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gitname/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gitname">@gitname</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1121469751" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/866" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/866/hovercard" href="https://github.com/debug-js/debug/pull/866">#866</a></li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CommanderRoot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CommanderRoot">@CommanderRoot</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1172293809" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/876" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/876/hovercard" href="https://github.com/debug-js/debug/pull/876">#876</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/debug-js/debug/compare/4.3.3...4.3.4"><tt>4.3.3...4.3.4</tt></a></p> Qix- tag:github.com,2008:Repository/2871998/4.3.3 2021-11-27T17:59:04Z 4.3.3 <h1>Patch Release 4.3.3</h1> <p>This is a documentation-only release. Further, the repository was transferred. Please see notes below.</p> <ul> <li><strong>Migrates repository from <a href="https://github.com/visionmedia/debug">https://github.com/visionmedia/debug</a> to <a href="https://github.com/debug-js/debug">https://github.com/debug-js/debug</a></strong>. Please see notes below as to why this change was made.</li> <li>Updates repository maintainership information</li> <li>Updates the copyright (no license terms change has been made)</li> <li>Removes accidental epizeuxis (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="898415309" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/828" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/828/hovercard" href="https://github.com/debug-js/debug/pull/828">#828</a>)</li> <li>Adds README section regarding usage in child procs (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1014496252" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/850" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/850/hovercard" href="https://github.com/debug-js/debug/pull/850">#850</a>)</li> </ul> <p>Thank you to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/taylor1791/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/taylor1791">@taylor1791</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kristofkalocsai/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kristofkalocsai">@kristofkalocsai</a> for their contributions.</p> <hr> <h1>Repository Migration Information</h1> <p>I've formatted this as a FAQ, please feel free to open an issue for any additional question and I'll add the response here.</p> <h3>Q: What impact will this have on me?</h3> <p>In most cases, you shouldn't notice any change.</p> <p>The only exception I can think of is if you pull code directly from <a href="https://github.com/visionmedia/debug">https://github.com/visionmedia/debug</a>, e.g. via a <code>"debug": "visionmedia/debug"</code>-type version entry in your package.json - in which case, you should <em>still</em> be fine due to the automatic redirection Github sets up, but you should also update any references as soon as possible.</p> <h3>Q: What are the security implications of this change?</h3> <p>If you pull code directly from the old URL, you should update the URL to <a href="https://github.com/debug-js/debug">https://github.com/debug-js/debug</a> as soon as possible. The old organization has <em>many</em> approved owners and thus a new repository could (in theory) be created at the old URL, circumventing Github's automatic redirect that is in place now and serving malicious code. I (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Qix-/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Qix-">@Qix-</a>) also wouldn't have access to that repository, so while I don't think it would happen, it's still something to consider.</p> <p>Even in such a case, however, the officially released package on npm (<code>debug</code>) would <em>not</em> be affected. That package is still very much under control (even more than it used to be).</p> <h3>Q: What should I do if I encounter an issue related to the migration?</h3> <p><a href="https://github.com/debug-js/debug/issues?q=label%3Amigration+">Search the issues first</a> to see if someone has already reported it, and <em>then</em> open a new issue if someone has not.</p> <h3>Q: Why was this done as a 'patch' release? Isn't this breaking?</h3> <p>No, it shouldn't be breaking. The package on npm shouldn't be affected (aside from this patch release) and any references to the old repository should automatically redirect.</p> <p>Thus, according to all of the "APIs" (loosely put) involved, nothing should have broken.</p> <p>I understand there are a lot of edge cases so please open issues as needed so I can assist in any way necessary.</p> <h3>Q: Why was the repository transferred?</h3> <p>I'll just list them off in no particular order.</p> <ul> <li>The old organization was defunct and abandoned.</li> <li>I was not an owner of the old organization and thus could not ban the non-trivial amount of spam users or the few truly abusive users from the org. This hindered my ability to properly maintain this package.</li> <li>The <code>debug</code> ecosystem intends to grow beyond a single package, and since new packages could not be created in the old org (nor did it make sense for them to live there), a new org made the most sense - especially from a security point of view.</li> <li>The old org has way, <em>way</em> too many approved members with push access, for which there was nothing I could do. This presented a pretty sizable security risk given that many packages in recent years have fallen victim to backdoors and the like due to lax security access.</li> </ul> <h3>Q: Was this approved?</h3> <p><a href="https://twitter.com/tjholowaychuk/status/1451500306311811106" rel="nofollow">Yes.</a><a href="https://archive.fo/OQwfn" rel="nofollow"><sup>[archive]</sup></a></p> <h3>Q: Do I need to worry about another migration sometime in the future?</h3> <p>No.</p> Qix- tag:github.com,2008:Repository/2871998/4.3.2 2020-12-09T15:39:01Z 4.3.2 <h1>Patch release 4.3.2</h1> <ul> <li>Caches enabled statuses on a per-logger basis to speed up <code>.enabled</code> checks (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="759831831" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/799" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/799/hovercard" href="https://github.com/debug-js/debug/pull/799">#799</a>)</li> </ul> <p>Thank you <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/omg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/omg">@omg</a>!</p> Qix- tag:github.com,2008:Repository/2871998/4.3.1 2020-12-09T15:38:02Z 4.3.1 <h1>Patch release 4.3.1</h1> <ul> <li>Fixes a ReDOS regression (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="229067274" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/458" data-hovercard-type="pull_request" data-hovercard-url="/debug-js/debug/pull/458/hovercard" href="https://github.com/debug-js/debug/pull/458">#458</a>) - see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="752666739" data-permission-text="Title is private" data-url="https://github.com/debug-js/debug/issues/797" data-hovercard-type="issue" data-hovercard-url="/debug-js/debug/issues/797/hovercard" href="https://github.com/debug-js/debug/issues/797">#797</a> for details.</li> </ul> Qix-