Skip to content

Releases: sindresorhus/serialize-error

v8.0.0

08 Jan 17:25
Compare
Choose a tag to compare

Breaking

  • Use Object#toJSON() method to serialize properties if the method is defined (#38) 34655eb
  • Buffer values in Error properties are not serialized and instead replaced with '[object Buffer]'(#39) d58ce16

v7.0.1...v8.0.0

v7.0.1

12 May 10:36
Compare
Choose a tag to compare
  • Make serialized error properties enumerable (#32) 3235f50

v7.0.0...v7.0.1

v7.0.0

10 May 07:05
Compare
Choose a tag to compare

Breaking

  • Make error properties non-enumerable (#30) cea59fc
    This is really just a bug fix, but since it can cause subtle bugs if you actually iterate over the properties, I wanted to be safe and make it a major release.

v6.0.0...v7.0.0

v6.0.0

11 Mar 15:39
Compare
Choose a tag to compare

Breaking

  • Require Node.js 10 5add55c
  • Make it work better in the browser (#27) 728be12
    Because of this, non-errors might be serialized slightly differently. It now uses JSON.stringify() instead of util.inspect().

v5.0.0...v6.0.0

v5.0.0

23 Sep 07:38
Compare
Choose a tag to compare

Breaking

The default export is now a named export 9da0ddb

- const serializeError = require('serialize-error');
+ const {serializeError} = require('serialize-error');

Enhancements

Fixes

  • Handle top-level null values 5ed49e4

v4.1.0...v5.0.0

v4.1.0

02 Apr 02:32
Compare
Choose a tag to compare
  • Refactor TypeScript definition to CommonJS compatible export (#15) 9212299

v4.0.0...v4.1.0

v4.0.0

18 Mar 17:08
Compare
Choose a tag to compare

Breaking:

Enhancements:

v3.0.0...v4.0.0

v3.0.0

09 Oct 08:29
Compare
Choose a tag to compare

Breaking:

  • Require Node.js 6.

Other:

  • Ensure the .code property is always serialized, even when it's higher up the prototype-chain.