416 Commits

Author SHA1 Message Date
Nathan Rajlich
bf88540737 enabled() updates existing debug instances, add destroy() function (#440)
* dynamically updatable instances

* add a `destroy()` function to debug instances

So that "dynamically created instances" can clean up after themselves
2017-08-08 14:42:25 -07:00
George Joseph
9d7c997992 Make millisecond timer namespace specific and allow 'always enabled' output (#408)
* Make millisecond timer namespace specific

When debugging node apps, I find it much more useful for the
millisecond timer to be relative to last message from the same
namespace instead of any message. This is especially true when I'm
debugging across multiple libraries or multiple levels in the same
module and I'm interested in seeing all the messages but also need to
compare times from specific levels.

* Enable 'always enabled' output

Having to deal with 2 different logging mechanisms, one for debugging
and one for normal output, can be a nuisance.  It would be much easier to
always use the same facility and semantics for both.  This patch allows
an 'always enabled' namespace to be specified by appending a single '*'
to the namespace name.

var alwaysOn = require('debug')('normal:messages*');
alwaysOn('This will always display regardless of DEBUG');
2017-08-08 14:42:25 -07:00
Nathan Rajlich
ff432e76e9 Remove DEBUG_FD (#406)
* remove DEBUG_FD

Now simply uses `process.stderr`. Breaking API change,
for the v3 branch.

Previously used internal and undocumented Node.js APIs to support
this underly used API.

Fixes #280
Closes #386

* remove DEBUG_FD from readme
2017-08-08 14:42:25 -07:00
Mattias Kindborg @FantasticFiasco
659ac0252c docs(readme): fix typo (#473) 2017-08-04 11:51:36 -07:00
Tim Ruffles
a45d4a0239 document .enabled flag (#465)
Was added in #15, should be documented (e.g #423)
2017-06-15 14:39:48 -07:00
Nathan Rajlich
52e1f21284 Release 2.6.8 2.6.8 2017-05-18 13:06:48 -07:00
Marc MacLeod
2482e08e4e Check for undefined on browser globals (#462)
* Check for undefined on browser globals.

Not all environments include these globals. For example, web workers do not have global window objects.

* remove redundant global checks
2017-05-18 09:38:54 -07:00
Andrew E. Rhyne
6bb07f7e1b release 2.6.7 2.6.7 2017-05-16 21:33:08 -07:00
Jamie
15850cb89d Fix Regular Expression Denial of Service (ReDoS)
https://snyk.io/vuln/npm:ms:20170412
2017-05-16 17:54:55 -07:00
Douglas Wilson
4a6c85c601 update "debug" to v1.0.0 (#454) 2017-05-12 16:54:37 -07:00
Mohammad Asad Siddiqui
b68dbf8cd4 Fix typo (#455)
Enables/disabled -> Enables/disabled
2017-05-12 16:54:14 -07:00
Douglas Wilson
1351d2f91f Inline extend function in node implementation (#452) 2017-05-10 15:51:27 -07:00
Andrew E. Rhyne
c211947ea3 update version for component 2.6.6 2017-04-27 09:05:43 -07:00
Andrew E. Rhyne
14df14c358 release 2.6.5 2.6.5 2017-04-27 09:03:42 -07:00
Andrew E. Rhyne
cae07b70c9 cleanup browser tests and fix null reference check on window.documentElement.style.WebkitAppearance (#447) 2017-04-27 08:59:02 -07:00
Andrew E. Rhyne
f311b10b7b release 2.6.4 2.6.4 2017-04-20 11:07:44 -07:00
Lucian Buzzo
1f01b70f88 Fix bug that would occure if process.env.DEBUG is a non-string value. (#444)
Connects to #443
2017-04-20 11:04:28 -07:00
Andrew E. Rhyne
2f3ebf49c1 Update CHANGELOG.md 2017-04-07 09:49:45 -07:00
Andrew E. Rhyne
f5ae33211a Update CHANGELOG.md 2017-04-07 09:49:13 -07:00
João Vieira
9742c5f383 chore(): ignore bower.json in npm installations. (#437) 2017-04-04 09:54:50 -07:00
Nathan Rajlich
27d93a37f7 update "debug" to v0.7.3
Closes #428.
2017-03-16 11:44:29 -07:00
Andrew E. Rhyne
9dc30f8378 release 2.6.3 2.6.3 2017-03-13 20:49:55 -07:00
Paul Betts
0fb8ea4730 LocalStorage returns undefined for any key not present (#431) 2017-03-13 20:43:57 -07:00
Andrew E. Rhyne
ce4d93e71d changelog fix 2017-03-10 11:45:08 -08:00
Andrew E. Rhyne
017a9d6856 release 2.6.2 2017-03-10 11:44:00 -08:00
slavaGanzin
23bc780b84 fix DEBUG_MAX_ARRAY_LENGTH 2.6.2 2017-02-22 11:18:13 -08:00
Pia Mancini
065cbfb1bf Add backers and sponsors from Open Collective (#422)
Now your open collective backers and sponsors can to appear directly on your README. 
see how it'll look [here](https://github.com/apex/apex#backers)
[More info](https://github.com/opencollective/opencollective/wiki/Github-banner)
Also add badges on top.
2017-02-17 10:38:15 -08:00
Nathan Rajlich
918d686521 Revert "add Slackin invite badge"
This reverts commit f46d67144d78a081c45a0d02cfec9da48b44e105.
2017-02-10 12:29:08 -08:00
Nathan Rajlich
f46d67144d add Slackin invite badge 2017-02-10 12:28:39 -08:00
Andrew E. Rhyne
580a7a18b3 changed slackin url 2017-02-10 11:30:25 -08:00
Andrew E. Rhyne
9f33c9a8a8 added slackin 2017-02-10 11:24:08 -08:00
Andrew E. Rhyne
941653e333 release 2.6.1 2017-02-10 11:00:05 -08:00
Pooya Parsa
37e14d6aad Whitelist DEBUG_FD for values 1 and 2 only Fixes #410 (#415)
* Hide in DEBUG_FD deprecation warning in Webstorm Fixes #410

+ Intellij idea

* Hide in DEBUG_FD deprecation warning in Webstorm Fixes #410

* whitelist DEBUG_FD for values 1 and 2 only

* Use appreciate depreciation message
2.6.1
2017-01-23 17:42:32 -08:00
Andrew E. Rhyne
705a9fe613 Merge pull request #414 from vgoma/export-default-fix 2017-01-19 23:24:04 -08:00
vgoma
78ae6c9412 Fixed IE8 "Expected identifier" error 2017-01-16 22:00:27 +03:00
Mykyta Usikov
1c163a48c1 added names and skips arrays erasing on enable call (#409) 2017-01-04 13:58:28 -06:00
Andrew E. Rhyne
ac5ccae703 release 2.6.0 2.6.0 2016-12-28 23:49:38 -06:00
Andrew E. Rhyne
589559502a better null pointer checks for browser useColors 2016-12-28 23:46:46 -06:00
Nathan Rajlich
664613047c remove explicit window.debug export (#404)
Exporting to the "outer" scope of the module is more the responsibility
of the module loader (i.e. browserify, webpack, etc.) and thus this
is not necessary. `make test-browser` still passes after this patch.
2016-12-28 23:27:52 -06:00
Nathan Rajlich
62df220d20 Deprecate DEBUG_FD (#405)
* remove DEBUG_FD from readme

* deprecate DEBUG_FD

* remove arrow function

ES6 habbits hit hard :D
2016-12-27 18:25:09 -06:00
Andrew E. Rhyne
9a18d66282 release 2.5.2 2.5.2 2016-12-25 20:39:21 -06:00
Klaus Trainer
eba68cec1a fix(browser): prevent ReferenceError in workers (#393)
fixes #382
2016-12-25 18:34:37 -08:00
Nathan Rajlich
280a64d788 Merge pull request #391 from lurch/patch-1
Fix README typo
2016-12-21 13:32:54 -08:00
Andrew Scheller
146d0d1c0a Fix README typo 2016-12-21 06:17:41 +00:00
Andrew E. Rhyne
ea43614db8 added notice about v3 api discussion 2016-12-20 22:05:21 -08:00
Andrew E. Rhyne
3950daef4c release 2.5.1 2.5.1 2016-12-20 21:32:58 -08:00
Andrew E. Rhyne
a31178c8d8 hotfix for babel-core 2016-12-20 21:31:53 -08:00
Andrew E. Rhyne
5a1a36c302 fix 2016-12-20 21:29:23 -08:00
Andrew E. Rhyne
b7769980da Merge branch 'master' of github.com:visionmedia/debug 2016-12-20 21:24:56 -08:00
Andrew E. Rhyne
86d8245268 release 2.5.0 2016-12-20 21:24:46 -08:00