Commit graph

617 commits

Author SHA1 Message Date
Trent Mick
2975178220 prep for future dev 2015-09-07 01:27:17 -07:00
Trent Mick
e14f191327 prepare for 1.5.0 release 2015-09-07 01:27:01 -07:00
Trent Mick
27d60578a9 strict mode
Should fix usage with bundles including bunyan and using strict mode.
Had to fix a surprise effect that 'window === this' is no longer
true in strict mode:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode
"""That means, among other things, that in browsers it's no longer
possible to reference the window object through this inside a strict
mode function."""

Fixes #236, #231, and #223.
2015-09-07 01:21:43 -07:00
Peter deHaan
6baeb2c581 Add license attribute
https://docs.npmjs.com/files/package.json#license
http://npm1k.org/
2015-09-07 00:42:33 -07:00
Ionică Bizău
9cd70479cb Added the missing syntax highlighting
Added syntax highlighting everywhere and minor formatting.
2015-09-07 00:39:56 -07:00
Trent Mick
4f071a0a37 changelog for webpack fix 2015-09-07 00:32:35 -07:00
Trent Mick
bf994a34b3 fix 'make check'; add some recent authors 2015-09-07 00:29:17 -07:00
Denis Izmaylov
466829dc73 Fix issues to work with webpack 2015-09-07 00:18:50 -07:00
Shakeel Mohamed
bedb2ae7ff Fixed typos in README 2015-09-07 00:08:17 -07:00
Trent Mick
56f2ac4de5 typo 2015-09-06 23:37:14 -07:00
Yunong Xiao
08710eca4d add link to bunyan kafka plugin 2015-09-06 23:07:29 -07:00
Trent Mick
5e3e86cec3 bump to 1.5.0 2015-09-06 23:03:32 -07:00
Trent Mick
2a078fec7a get 'make testall' to include node v4.0 (hacked up for my rc1 build in ~/src/node) 2015-09-06 22:56:37 -07:00
Stéphan Kochen
602c0c315c Upgrade to dtrace-provider 0.6.
For io.js 3.x support.
2015-09-04 21:29:03 +02:00
Trent Mick
3be145a72c drop 0.8 support; test with iojs3.0 (tho it is broken) 2015-08-16 17:51:30 -07:00
Trent Mick
9d309c5dc4 comment tweak 2015-07-25 22:29:53 -07:00
Mirko Kiefer
7a884019a7 add bunyan-cloudwatch to readme
Fixes #263.
2015-06-12 23:01:59 -07:00
Trent Mick
6ed1afd1b9 readme note 2015-06-12 23:01:01 -07:00
Trent Mick
930ce61533 prep for future dev 2015-06-07 11:07:49 -07:00
Trent Mick
32c037e0e8 prepare for 1.4.0 release 2015-06-07 11:07:37 -07:00
Trent Mick
ff50cd3741 update versions to match 2015-06-07 11:07:31 -07:00
Trent Mick
5d666f49f1 update tests to run against some io.js versions. Minor test case fix for io.js slight diff to 0.12. 2015-06-07 11:06:50 -07:00
Stéphan Kochen
3f8ff80c8c Upgrade to dtrace-provider 0.5.
Fixes #259. Fixes #258.
2015-06-07 11:03:50 -07:00
Trent Mick
e71890562e fix some test failures 2015-06-04 00:35:18 -07:00
Trent Mick
15f2bb1133 prep for future dev 2015-06-01 22:13:17 -07:00
Trent Mick
29ddf443af prepare for 1.3.6 release 2015-06-01 22:13:00 -07:00
Trent Mick
d41f15bcd7 A follow-up to #250 to indicate the 'ms' log rotation scope is just for testing 2015-05-12 21:38:52 -07:00
Tony Lukasavage
f82ccfcd4f add undocumented "ms" rotation period to docs 2015-05-12 18:55:11 -04:00
Trent Mick
762e26713c Make bunyan defensive on res.header=null.
Fixes #244.
Also add test case for this and a couple recent `bunyan` crashers.
2015-04-15 09:21:31 -07:00
Trent Mick
a5bc7911d3 prep for future dev 2015-04-12 22:18:52 -07:00
Trent Mick
98430d708a prepare for 1.3.5 release 2015-04-12 22:18:39 -07:00
Trent Mick
d820b03dcd Make bunyan defensive on res.header as a boolean. Fixes #233 2015-04-12 21:43:01 -07:00
Trent Mick
24528aa638 Be defensive on err.stack not being a string. Fixes #242. 2015-04-12 21:34:16 -07:00
Trent Mick
6f81f4b1e1 TODO 2015-04-12 21:21:13 -07:00
Trent Mick
2828e462aa prep for future dev 2015-02-20 14:55:15 -08:00
Trent Mick
46b0162368 prepare for 1.3.4 release 2015-02-20 14:54:57 -08:00
Trent Mick
c25ce3a5bd Allow log.child(...) to work even if the logger is a *sub-class* of Bunyan's Logger class. 2015-02-20 14:52:37 -08:00
Trent Mick
a7c646191d Hide 'source-map-support' require from browserify. Fixes #219 2015-02-19 20:41:34 -08:00
Seth Pollack
ef669b6660 add third-party stream for fogbugz 2015-02-08 13:51:09 -05:00
Trent Mick
22669dbd32 Reset haveNonRawStreams on <logger>.addStream
Fixed #218
2015-02-05 21:45:55 -08:00
Trent Mick
265c42f58f Merge pull request #221 from sethpollack/patch-1
add third-party stream for slack
2015-01-28 14:36:26 -08:00
Seth Pollack
3d786a84f0 add third-party stream for slack 2015-01-28 16:49:53 -05:00
Trent Mick
6cabaa9a0b prep for future dev 2015-01-26 09:24:03 -08:00
Trent Mick
e6cff79167 prepare for 1.3.3 release 2015-01-26 09:23:52 -08:00
Trent Mick
b7cacf6f7f changelog for recent change; TODO 2015-01-25 21:18:50 -08:00
Rui Marinho
df5044d4dc Update dtrace-provider@0.4.0
Adds io.js support.

Closes #212.
2015-01-24 00:21:50 +00:00
Trent Mick
ffd9903d74 prep for future dev 2015-01-18 23:29:43 -08:00
Trent Mick
8598a479ed prepare for 1.3.2 release 2015-01-18 23:29:33 -08:00
Trent Mick
64b8fd1004 test cases for #182, style tweaks, changelog, etc. 2015-01-18 23:27:28 -08:00
Martin Gausby
c0ca774238 Defend against throwing defined props in stringify
If an object has a defined property, that is enumerable, and this
property throws an error, it will make JSON stringify throw an
error, and potentially bring down the program.

The solution so far is to try-catch with the usual json stringifyer,
that guards against circular references. If this throws an error
we will attempt to guard against defined properties; and return
[Throws] if a property throws an error when accesed.

The following examples illustrate the problem:

```js
var obj = {};
obj.__defineGetter__('foo', function() { throw new Error('ouch!'); });

JSON.stringify(obj.foo); // error thrown
```

And using `Object.defineProperty`:
```js
var obj = {};
Object.defineProperty(obj, 'foo', {
    get: function() { throw new Error('ouch!'); }
    enumerable: true // enumerable is false by default
});

JSON.stringify(obj.foo); // error thrown
```

The cases we have seen in production is third party modules that
has enumerable getters that try to access properties on undefined
objects.

Fixes #182.
2015-01-18 23:27:06 -08:00