Skip to content

Releases: approvals/Approvals.NodeJS

v1.1.1

05 Mar 19:20
Compare
Choose a tag to compare

In this release we removed the need to pass in __dirname when initializing mocha & jasmine tests.

  • Thanks to @faceleg who found a way to not require passing in __dirname during the .mocha(__dirname) initialization.

v1.1.0

31 May 16:25
Compare
Choose a tag to compare

This is a small update:

  1. Fixes an issue when comparing files but ignore the BOM (Byte Order Mark)
  2. Added the config option { forceApproveAll: false } (check the docs in the readme for more info).

v1.0.0

25 May 23:33
Compare
Choose a tag to compare

*** BIG BREAKING CHANGES ***

I'm sorry for the breaking changes, but over the holiday, I had some time to implement some of my original vision regarding configuration and the ability for different users to override configuration on their local machine. (allowing two different developers to use different diff tools without it having to be checked into source control).

I'm also going to make an effort at using semver (which is why the bump to 1.0 now :shipit:

Install Module

npm install --save-dev approvals

Install CLI Tool

npm install -g approvals

In this Release

Breaking changes

  • Default configuration for appenEOL is now true (it used to be just true on windows, false otherwise (not sure why I thought that was needed))
  • Restructured how configuration works #11
    • If you ever used the final reporters parameter on a verify method - that's been changed to a full config object and you'll have to update it as such.
    • Change calling this.verify(someData, ['gitdiff'])
    • which becomes this.verify(someData, { reporters: ['gitdiff'] } )

Other changes

  • Merged in support for icdiff reporter thanks to @icecreammatt
  • While diffing, allow the Byte Order Mark to be ignored #13

v0.0.27

20 Apr 15:11
Compare
Choose a tag to compare

Install Module

npm install approvals

Install CLI Tool

npm install -g approvals

In this Release

This release contained a number of internal cleanup items consisted of mostly cleanup items...

  • Thanks to a PR from @robdmoore a usual test run (without any failures) should be much faster.
  • CLI tool adds a shortcut for --forceapproveall with -f as an option now.
  • Added the nodediff reporter which is a decent CLI reporter using color (based on https://github.com/kpdecker/jsdiff)