A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
Full Changelog: https://github.com/debug-js/debug/compare/4.3.3...4.3.4
This is a documentation-only release. Further, the repository was transferred. Please see notes below.
Thank you to @taylor1791 and @kristofkalocsai for their contributions.
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.
In most cases, you shouldn't notice any change.
The only exception I can think of is if you pull code directly from https://github.com/visionmedia/debug, e.g. via a "debug": "visionmedia/debug"
-type version entry in your package.json - in which case, you should still be fine due to the automatic redirection Github sets up, but you should also update any references as soon as possible.
If you pull code directly from the old URL, you should update the URL to https://github.com/debug-js/debug as soon as possible. The old organization has many 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 (@qix-) also wouldn't have access to that repository, so while I don't think it would happen, it's still something to consider.
Even in such a case, however, the officially released package on npm (debug
) would not be affected. That package is still very much under control (even more than it used to be).
Search the issues first to see if someone has already reported it, and then open a new issue if someone has not.
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.
Thus, according to all of the "APIs" (loosely put) involved, nothing should have broken.
I understand there are a lot of edge cases so please open issues as needed so I can assist in any way necessary.
I'll just list them off in no particular order.
debug
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.No.
.enabled
checks (#799)Thank you @omg!
debugInstance.destroy()
. Future major versions will not have this method; please remove it from your codebases as it currently does nothing.console.debug
in the browser only when it is available (#600)"engines"
key to package.jsonselectColor
(#747)supports-color
as an optional peer dependencyThis backport fixes a bug in coveralls configuration as well as the .extend()
function.
This backport fixes a 4x performance regression when debug is disabled.
Massive thank you to @mblarsen and @outsideris for knocking out two long-awaited changes.