Skip to content

Latest commit

 

History

History
124 lines (82 loc) · 3.54 KB

CHANGELOG.md

File metadata and controls

124 lines (82 loc) · 3.54 KB

1.2.0 (2016-12-12)

Features

1.1.0 (2016-02-24)

Features

Bug Fixes

  • main field in package.json should point to task definition (ce092dda)

1.0.0 (2015-08-25)

Features

  • grunt-espower:
    • transfer to power-assert-js organization (23a1e098)
    • update espower to 1.0.6 (48368e5)

0.10.0 (2014-11-11)

  • grunt-espower:
    • update escodegen and espower (5d8bb3c8)

0.9.1 (2014-09-17)

Features

  • grunt-espower: update espower to 0.9.1 (8c6761ae)

0.9.0 (2014-08-28)

Features

0.8.0 (2014-08-12)

Features

  • grunt-espower: update espower-source to 0.8.0 (55110fa4)

Breaking Changes

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

grunt.initConfig({
  espower: {
    demo: {
      options :{
        powerAssertVariableName: 'yourAssert',
        targetMethods: {
            oneArg: [
                'okay'
            ],
            twoArgs: [
                'equal',
                'customEqual'
            ]
        }
      },
      files: [
        {
          expand: true,        // Enable dynamic expansion.
          cwd: 'demo/',        // Src matches are relative to this path.
          src: ['**/*.js'],    // Actual pattern(s) to match.
          dest: 'espowered_demo/',  // Destination path prefix.
          ext: '.js'           // Dest filepaths will have this extension.
        }
      ]
    },
  },
})

To:

grunt.initConfig({
  espower: {
    demo: {
      options :{
        patterns: [
            'yourAssert(value, [message])',
            'yourAssert.okay(value, [message])',
            'yourAssert.equal(actual, expected, [message])',
            'yourAssert.customEqual(actual, expected, [message])'
        ]
      },
      files: [
        {
          expand: true,        // Enable dynamic expansion.
          cwd: 'demo/',        // Src matches are relative to this path.
          src: ['**/*.js'],    // Actual pattern(s) to match.
          dest: 'espowered_demo/',  // Destination path prefix.
          ext: '.js'           // Dest filepaths will have this extension.
        }
      ]
    },
  },
})