Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: istanbuljs/babel-plugin-istanbul
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4cd34dcd2456c418bdb4373c7e4d7ef3ac5a284e
Choose a base ref
...
head repository: istanbuljs/babel-plugin-istanbul
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2fb91f54c8271936f016fb521b080213bbdb77f7
Choose a head ref
  • 12 commits
  • 22 files changed
  • 3 contributors

Commits on Jul 31, 2019

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6d21bf2 View commit details

Commits on Sep 14, 2019

  1. Copy the full SHA
    c2aecae View commit details

Commits on Sep 29, 2019

  1. Copy the full SHA
    2b7ea02 View commit details

Commits on Oct 8, 2019

  1. feat!: Drop node.js 6 (#226)

    Fixes #209
    coreyfarrell authored Oct 8, 2019
    Copy the full SHA
    93db21a View commit details
  2. feat: Add support for instrumenter options (#227)

    This adds support for:
    * coverageVariable
    * coverageGlobalScope
    * coverageGlobalScopeFunc
    * ignoreClassMethods
    
    Fixes #208, fixes #212
    coreyfarrell authored Oct 8, 2019
    Copy the full SHA
    fe08f5b View commit details

Commits on Oct 9, 2019

  1. Copy the full SHA
    f39924e View commit details

Commits on Nov 7, 2019

  1. Copy the full SHA
    2342557 View commit details

Commits on Dec 7, 2019

  1. Copy the full SHA
    c35ed7b View commit details
  2. chore: Tidelift tasks

    coreyfarrell committed Dec 7, 2019
    Copy the full SHA
    95b2df7 View commit details

Commits on Dec 9, 2019

  1. Copy the full SHA
    99bd2a2 View commit details

Commits on Dec 20, 2019

  1. Copy the full SHA
    063274a View commit details
  2. chore(release): 6.0.0

    coreyfarrell committed Dec 20, 2019
    Copy the full SHA
    2fb91f5 View commit details
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tidelift: "npm/babel-plugin-istanbul"
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@ node_js:
- "node"
- "10"
- "8"
- "6"

matrix:
include:
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [6.0.0](https://github.com/istanbuljs/babel-plugin-istanbul/compare/v5.2.0...v6.0.0) (2019-12-20)


### ⚠ BREAKING CHANGES

* Drop node.js 6 (#226)

### Features

* Add support for instrumenter options ([#227](https://github.com/istanbuljs/babel-plugin-istanbul/issues/227)) ([fe08f5b](https://github.com/istanbuljs/babel-plugin-istanbul/commit/fe08f5b8282136c7ed9375fa32148586bd6a7e28)), closes [#208](https://github.com/istanbuljs/babel-plugin-istanbul/issues/208) [#212](https://github.com/istanbuljs/babel-plugin-istanbul/issues/212)
* Drop node.js 6 ([#226](https://github.com/istanbuljs/babel-plugin-istanbul/issues/226)) ([93db21a](https://github.com/istanbuljs/babel-plugin-istanbul/commit/93db21aa2bbdbb06fb784f52c24a7847fad6be92)), closes [#209](https://github.com/istanbuljs/babel-plugin-istanbul/issues/209)

## [5.2.0](https://github.com/istanbuljs/babel-plugin-istanbul/compare/v5.1.4...v5.2.0) (2019-07-18)


6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -129,3 +129,9 @@ function instrument(sourceCode, sourceMap, fileName) {
## Credit where credit is due

The approach used in `babel-plugin-istanbul` was inspired by [Thai Pangsakulyanont](https://github.com/dtinth)'s original library [`babel-plugin-__coverage__`](https://github.com/dtinth/babel-plugin-__coverage__).

## `babel-plugin-istanbul` for enterprise

Available as part of the Tidelift Subscription.

The maintainers of `babel-plugin-istanbul` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-babel-plugin-istanbul?utm_source=npm-babel-plugin-istanbul&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
11 changes: 11 additions & 0 deletions fixtures/class-functions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
class Foo1 {
bar() {}
barz() {}
}

class Foo2 {
bar() {}
barz() {}
}

module.exports = { Foo1, Foo2 }
1 change: 1 addition & 0 deletions fixtures/config/file1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('file1')
1 change: 1 addition & 0 deletions fixtures/config/file2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('file2')
5 changes: 5 additions & 0 deletions fixtures/config/nyc-alt.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

module.exports = {
include: ['file2.js']
}
5 changes: 5 additions & 0 deletions fixtures/config/nyc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict'

module.exports = {
include: ['file1.js']
}
1 change: 1 addition & 0 deletions fixtures/config/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion fixtures/node_modules/should-cover.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fixtures/node_modules/should-not-cover.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fixtures/plugin-should-cover.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let foo = function () {
const foo = function () {
console.log('foo')
}
foo()
2 changes: 1 addition & 1 deletion fixtures/plugin-should-not-cover.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let bar = function () {
const bar = function () {
console.log('bar')
}
bar()
2 changes: 1 addition & 1 deletion fixtures/should-cover.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let foo = function () {
const foo = function () {
console.log('foo')
}
foo()
2 changes: 1 addition & 1 deletion fixtures/should-not-cover.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let bar = function () {
const bar = function () {
console.log('bar')
}
bar()
2 changes: 1 addition & 1 deletion fixtures/should-respect-cwd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let foo = function () {
const foo = function () {
console.log('foo')
}
foo()
Loading