Skip to content

Latest commit

 

History

History
158 lines (85 loc) · 5.71 KB

CHANGELOG.md

File metadata and controls

158 lines (85 loc) · 5.71 KB

2.3.0 (2018-06-12)

Features

2.2.0 (2017-05-05)

Features

2.1.0 (2017-04-09)

Features

2.0.1 (2017-02-13)

Bug Fixes

2.0.0 (2016-11-12)

Features

Breaking Changes

We stopped providing prebuilt bundle for browsers. Please build your own by using browserify, webpack and so on. We also dropped bower support. Please use npm instead.

1.2.0 (2016-10-25)

Features

1.1.0 (2016-01-22)

Bug Fixes

  • relax too strict originalCode checking (458ef9f1)

Features

1.0.0 (2015-08-08)

Bug Fixes

  • properties of outgoing SourceMap is broken when typeof options.sourceMap is string (af6ba419)
  • preserve sourceRoot if incoming sourceMap contains sourceRoot (c95e3252)

Features

  • transfer to power-assert-js organization (ff22316e)
  • ship bundle for browsers with npm module (36b4ed84)
  • sourceRoot option
  • throw EspowerError when originalCode is not specified (04d86abb)
  • clarify parameter prerequisite and its outcome (95ed841b)

0.10.0 (2014-11-11)

  • espower-source:

0.9.1 (2014-09-15)

Features

  • espower-source: update espower to 0.9.1 (8acad23d)

0.9.0 (2014-08-31)

Features

  • espower-source: backport espowerify to support multi-stage sourcemaps (71de737c)

0.8.0 (2014-08-12)

Features

  • espower-source:
    • update espower to 0.8.0 (ae15a229)
    • simple xtend would be better for options handling (6bea0a92)

Breaking Changes

If you already customize instrumentation pattern using powerAssertVariableName and targetMethods, you need to migarte. To migrate, change your code from the following:

var espowerSource = require('espower-source');
var options = {
    powerAssertVariableName: 'yourAssert',
    targetMethods: {
        oneArg: [
            'okay'
        ],
        twoArgs: [
            'equal',
            'customEqual'
        ]
    }
};
var modifiedCode = espowerSource(originalCode, filepath, options);

To:

var espowerSource = require('espower-source');
var options = {
    patterns: [
        'yourAssert(value, [message])',
        'yourAssert.okay(value, [message])',
        'yourAssert.equal(actual, expected, [message])',
        'yourAssert.customEqual(actual, expected, [message])'
    ]
};
var modifiedCode = espowerSource(originalCode, filepath, options);