Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@4.0.2...istanbul-lib-instrument@4.0.3">4.0.3</a> (2020-05-09)

## Bug Fixes

- Prevent readInitialCoverage from reading babel config (#562) (49b4745)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@4.0.1...istanbul-lib-instrument@4.0.2">4.0.2</a> (2020-05-06)

## Bug Fixes

- Add ts-ignore to reassignment of generated function (#557) (817efb0)
- Use @babel/core for all babel imports. (#555) (a99a13e)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@4.0.0...istanbul-lib-instrument@4.0.1">4.0.1</a> (2020-02-03)

## Bug Fixes

- Always call coverage initialization function (#524) (c6536c1)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@4.0.0-alpha.3...istanbul-lib-instrument@4.0.0">4.0.0</a> (2019-12-20)

Note: Version bump only for package istanbul-lib-instrument

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@4.0.0-alpha.2...istanbul-lib-instrument@4.0.0-alpha.3">4.0.0-alpha.3</a> (2019-12-07)

Note: Version bump only for package istanbul-lib-instrument

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@4.0.0-alpha.1...istanbul-lib-instrument@4.0.0-alpha.2">4.0.0-alpha.2</a> (2019-11-01)

### Bug Fixes

- Produce properly merged source-maps when inputSourceMap is provided (#487) (8f8c88e)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@4.0.0-alpha.0...istanbul-lib-instrument@4.0.0-alpha.1">4.0.0-alpha.1</a> (2019-10-06)

### Bug Fixes

- Eliminate babel hoisting of the coverage variable (#481) (8dfbcba), closes #92
- Honor ignore hints in chained if statements (#469) (a629770), closes #468
- Populate lastFileCoverage for already instrumented files (#470) (ea6d779), closes istanbuljs/nyc#594

### Features

- Use @istanbuljs/schema to pull defaults (#485) (87e27f3), closes #460

### BREAKING CHANGES

- The defaults for `autoWrap`, `preserveComments`, `esModules` and `produceSourceMap` are now true. This applies only to the stand-alone instrumenter, the visitor does not use these options.
- The `flow` and `jsx` parser plugins are no longer enabled by default. This applies only to the stand-alone instrumenter, the visitor does not use this option.
- The `plugins` option of the stand-alone instrumenter has been renamed to `parserPlugins` to match nyc.

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.3.0...istanbul-lib-instrument@4.0.0-alpha.0">4.0.0-alpha.0</a> (2019-06-19)

### Features

- Update dependencies, require Node.js 8 (#401) (bf3a539)

### BREAKING CHANGES

- Node.js 8 is now required

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.2.0...istanbul-lib-instrument@3.3.0">3.3.0</a> (2019-04-24)

### Features

- Enable classProperties and classPrivateProperties parsers and coverage. (#379) (c09dc38)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.1.2...istanbul-lib-instrument@3.2.0">3.2.0</a> (2019-04-09)

### Features

- Add bigInt and importMeta to default parser plugins. (#356) (fb4d6ed), closes #338

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.1.1...istanbul-lib-instrument@3.1.2">3.1.2</a> (2019-04-03)

### Bug Fixes

- Be more friendly to ts-node. (#352) (40d15f5), closes #336

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.1.0...istanbul-lib-instrument@3.1.1">3.1.1</a> (2019-03-12)

### Bug Fixes

- Honor istanbul ignore next hints placed before export statement. (#298) (f24795d), closes #297

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.0.1...istanbul-lib-instrument@3.1.0">3.1.0</a> (2019-01-26)

### Features

- dont skip for loop initialization instrumentation (#188) (2e0258e)
- New options coverageGlobalScope and coverageGlobalScopeFunc. (#200) (25509c7), closes #199

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@3.0.0...istanbul-lib-instrument@3.0.1">3.0.1</a> (2018-12-25)

Note: Version bump only for package istanbul-lib-instrument

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.3.2...istanbul-lib-instrument@3.0.0">3.0.0</a> (2018-09-06)

### Chores

- Update test for babel 7. (#218) (9cf4d43), closes #205

### Features

- Add option plugins (#205) (312f81f)
- Update babel to 7.0.0. (#215) (8a96613)

### BREAKING CHANGES

- was added which requires an option for the `decorators` plugin. Add it to get tests working again, commit updated api.md.

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.3.1...istanbul-lib-instrument@2.3.2">2.3.2</a> (2018-07-24)

Note: Version bump only for package istanbul-lib-instrument

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.3.0...istanbul-lib-instrument@2.3.1">2.3.1</a> (2018-07-07)

### Bug Fixes

- Don't ignore src/visitor.js for self test. (#194) (71b815d)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.2.1...istanbul-lib-instrument@2.3.0">2.3.0</a> (2018-06-27)

### Features

- update pinned babel version to latest release. (#189) (ac8ec07)

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.2.0...istanbul-lib-instrument@2.2.1">2.2.1</a> (2018-06-26)

### Bug Fixes

- Instrument ObjectMethod's. (#182) (126f09d)
- update default args test guard to work on supported versions. (#185) (955511a)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.0.2...istanbul-lib-instrument@2.2.0">2.2.0</a> (2018-06-06)

### Features

- add support for optional catch binding (#175) (088dd9f)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.0.2...istanbul-lib-instrument@2.1.0">2.1.0</a> (2018-05-31)

### Features

- add support for optional catch binding (#175) (088dd9f)

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.0.1...istanbul-lib-instrument@2.0.2">2.0.2</a> (2018-05-31)

Note: Version bump only for package istanbul-lib-instrument

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@2.0.0...istanbul-lib-instrument@2.0.1">2.0.1</a> (2018-05-31)

### Bug Fixes

- should import @babel/template (85a0d1a)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.10.1...istanbul-lib-instrument@2.0.0">2.0.0</a> (2018-05-31)

### Bug Fixes

- parenthesize superClass on non-idetifier case (#158) (6202c88)

### Chores

- upgrade babel in instrumenter (#174) (ce23e91)

### BREAKING CHANGES

- babel@7 drops Node@4 support

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.10.0...istanbul-lib-instrument@1.10.1">1.10.1</a> (2018-03-09)

### Bug Fixes

- default value for ignorelassMethods (#151) (5dd88e8)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.9.2...istanbul-lib-instrument@1.10.0">1.10.0</a> (2018-03-04)

### Features

- allows an array of ignored method names to be provided (#127) (67918e2)

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.9.1...istanbul-lib-instrument@1.9.2">1.9.2</a> (2018-02-13)

### Bug Fixes

- compatibility with babel 7 (#135) (6cac849)
- handle instrumentation when a function is called Function (#131) (b12a07e)
- proper passing of the preserveComments option to babel (#122) (470bb0e)
- update instrument, account for lack of arrow expression (#119) (#125) (0968206)

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.9.0...istanbul-lib-instrument@1.9.1">1.9.1</a> (2017-10-22)

### Bug Fixes

- address issue with class instrumentation (#111) (cbd1c14)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.8.0...istanbul-lib-instrument@1.9.0">1.9.0</a> (2017-10-21)

### Bug Fixes

- support conditional expression for superClass (#106) (aae256f)

### Features

- add support for ignoring entire files (#108) (f12da65)

# <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.7.5...istanbul-lib-instrument@1.8.0">1.8.0</a> (2017-09-05)

### Features

- add support for object-spread syntax (#82) (28d5566)

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.7.4...istanbul-lib-instrument@1.7.5">1.7.5</a> (2017-08-23)

### Bug Fixes

- name of function is now preserved or named exports (#79) (2ce8974)

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.7.3...istanbul-lib-instrument@1.7.4">1.7.4</a> (2017-07-16)

### Bug Fixes

- update increment operator to appropriate expression type (#74) (dc69e66)

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.7.2...istanbul-lib-instrument@1.7.3">1.7.3</a> (2017-06-25)

## <a href="https://github.com/istanbuljs/istanbuljs/compare/istanbul-lib-instrument@1.7.1...istanbul-lib-instrument@1.7.2">1.7.2</a> (2017-05-27)

### Bug Fixes

- hoist statement counter for class variables, so that name is preserved (#60) (120d221)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/istanbul-lib-instrument@1.7.0...istanbul-lib-instrument@1.7.1">1.7.1</a> (2017-04-29)

### Bug Fixes

- don't instrument a file if it has already been instrumented (#38) (9c38e4e)

# <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/istanbul-lib-instrument@1.6.2...istanbul-lib-instrument@1.7.0">1.7.0</a> (2017-03-27)

### Features

- use extended babylon support; adding features such as jsx (#22) (11c2438)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/istanbul-lib-instrument@1.6.1...istanbul-lib-instrument@1.6.2">1.6.2</a> (2017-03-22)

### Bug Fixes

- loc is sometimes not defined, so loc.start fails see #99 (#18) (df85ba6)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/istanbul-lib-instrument@1.6.0...istanbul-lib-instrument@1.6.1">1.6.1</a> (2017-03-21)

# <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/istanbul-lib-instrument@1.4.2...istanbul-lib-instrument@1.6.0">1.6.0</a> (2017-03-21)

### Features

- adds line number property back to coverage.json (b03b927)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.4.1...v1.4.2">1.4.2</a> (2017-01-04)

### Bug Fixes

- only hoist counter for a smaller subset of function declarations (9f8931e)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.4.0...v1.4.1">1.4.1</a> (2017-01-04)

### Bug Fixes

- address regression discussed in https://github.com/istanbuljs/babel-plugin-istanbul/issues/78 (#40) (7f458a3)

# <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.3.1...v1.4.0">1.4.0</a> (2017-01-02)

### Features

- preserve inferred function names (#38) (312666e)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.3.0...v1.3.1">1.3.1</a> (2016-12-27)

### Bug Fixes

- function declaration assignment now retains function name (#33) (2d781da)

# <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.2.0...v1.3.0">1.3.0</a> (2016-11-10)

### Features

- allow an input source-map to be passed to instrumentSync() (#23) (b08e4f5)

# <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.1.4...v1.2.0">1.2.0</a> (2016-10-25)

### Features

- implement function to extract empty coverage data from an instrumented file (#28) (06d0ef6)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.1.3...v1.1.4">1.1.4</a> (2016-10-17)

### Bug Fixes

- hoist coverage variable to very top of file (#26) (0225e8c)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.1.2...v1.1.3">1.1.3</a> (2016-09-13)

### Performance Improvements

- simplify coverage variable naming https://github.com/istanbuljs/istanbul-lib-instrument/pull/24 (7252aae)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.1.1...v1.1.2">1.1.2</a> (2016-09-08)

### Performance Improvements

- use zero-based numeric indices for much faster instrumented code (#22) (5b401f5)

## <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.1.0...v1.1.1">1.1.1</a> (2016-08-30)

### Bug Fixes

- upgrade istanbul-lib-coverage (eb9b1f6)

# <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.1.0-alpha.4...v1.1.0">1.1.0</a> (2016-08-11)

### Bug Fixes

- guard against invalid loc (#16) (23ebfc3)

# <a href="https://github.com/istanbuljs/istanbul-lib-instrument/compare/v1.0.0-alpha.5...v1.1.0-alpha.4">1.1.0-alpha.4</a> (2016-07-20)

### Bug Fixes

- require more performant babel-generator (#15) (21b2563)