diff --git a/CHANGELOG.md b/CHANGELOG.md index c87f487c..09778a72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,118 @@ +# 1.0.0 (2023-04-02) + + +### Bug Fixes + +* `--all` now respects `--extension` flag. ([#357](https://github.com/prantlf/c8/issues/357)) ([a5deb27](https://github.com/prantlf/c8/commit/a5deb278dcdd7293e8e758ca892d0a44c6d9bba4)) +* add missing space in text ([#245](https://github.com/prantlf/c8/issues/245)) ([efe6d04](https://github.com/prantlf/c8/commit/efe6d041aa0a1620f9b2e4717ba5d2a96da7a5a3)) +* address bugs with source remapping on Windows ([#301](https://github.com/prantlf/c8/issues/301)) ([c817902](https://github.com/prantlf/c8/commit/c81790262f843c01b3d14390fde81dbdbcf2226f)) +* address file:// issue with CJS ([#39](https://github.com/prantlf/c8/issues/39)) ([d4f9cab](https://github.com/prantlf/c8/commit/d4f9cab69f31dac63e40afb165bcfb1532919d86)) +* all flag not propagated to check-coverage command ([#188](https://github.com/prantlf/c8/issues/188)) ([86eaf72](https://github.com/prantlf/c8/commit/86eaf72a8c7af93d6ec9699b741d11df50017a8d)) +* **config:** support configuration inheritance ([#343](https://github.com/prantlf/c8/issues/343)) ([e81ed5d](https://github.com/prantlf/c8/commit/e81ed5dd9ef5dac1a1f2f6dc26a07abb6c05d709)) +* **deps:** merging failed when the same script occurred multiple times in the same report ([#147](https://github.com/prantlf/c8/issues/147)) ([1ebcaf9](https://github.com/prantlf/c8/commit/1ebcaf984e6dbe5881a45763942c863b1f64dda9)) +* **deps:** update dependency find-up to v4 ([#119](https://github.com/prantlf/c8/issues/119)) ([c568d96](https://github.com/prantlf/c8/commit/c568d969786b2fb71f2bf33b904259fc364c8d5b)) +* **deps:** update dependency find-up to v5 ([#242](https://github.com/prantlf/c8/issues/242)) ([8a0cfd7](https://github.com/prantlf/c8/commit/8a0cfd702e35fa9d7e87ef99f0fd08dd92cd9614)) +* **deps:** update dependency furi to v2 ([#193](https://github.com/prantlf/c8/issues/193)) ([6b9af6e](https://github.com/prantlf/c8/commit/6b9af6ee8cbbacd85eea91dc49bb269fe3651c12)) +* **deps:** update dependency rimraf to v3 ([#132](https://github.com/prantlf/c8/issues/132)) ([7601748](https://github.com/prantlf/c8/commit/7601748426d1eed073ec1591918c28f970c66b88)) +* **deps:** update dependency v8-to-istanbul to v4 ([#167](https://github.com/prantlf/c8/issues/167)) ([97b9769](https://github.com/prantlf/c8/commit/97b97699870ddc4af780cedb25cbb3a87e0eb777)) +* **deps:** update dependency yargs to v14 ([#134](https://github.com/prantlf/c8/issues/134)) ([e49737f](https://github.com/prantlf/c8/commit/e49737f6d839d93be3249fa74feb25e2a025667b)) +* **deps:** update dependency yargs to v15 ([#164](https://github.com/prantlf/c8/issues/164)) ([e41a483](https://github.com/prantlf/c8/commit/e41a4831aac92591f303d48038a327e9631affee)) +* **deps:** update dependency yargs to v16 ([#251](https://github.com/prantlf/c8/issues/251)) ([0436816](https://github.com/prantlf/c8/commit/0436816ef0ceb4cff25f65dfff1843a2bad80ca1)) +* **deps:** update dependency yargs-parser to v13 ([#124](https://github.com/prantlf/c8/issues/124)) ([1eb3394](https://github.com/prantlf/c8/commit/1eb3394f0716fe656ab35e59ad93f080bb7d24b9)) +* **deps:** update dependency yargs-parser to v14 ([#144](https://github.com/prantlf/c8/issues/144)) ([9b3d089](https://github.com/prantlf/c8/commit/9b3d0898167e8e6d3e25d5d97d9083b8f1e6a086)) +* **deps:** update dependency yargs-parser to v15 ([#153](https://github.com/prantlf/c8/issues/153)) ([80153de](https://github.com/prantlf/c8/commit/80153de61be8e5830f1c228945184e4878f8cf0c)) +* **deps:** update dependency yargs-parser to v16 ([#157](https://github.com/prantlf/c8/issues/157)) ([15746e5](https://github.com/prantlf/c8/commit/15746e51640e6e172f27f02c12056e2977342005)) +* **deps:** update dependency yargs-parser to v17 ([#201](https://github.com/prantlf/c8/issues/201)) ([d730c63](https://github.com/prantlf/c8/commit/d730c63235c1292da65cdc19ba68ffcb9d316dc2)) +* **deps:** update dependency yargs-parser to v18 ([#202](https://github.com/prantlf/c8/issues/202)) ([983de44](https://github.com/prantlf/c8/commit/983de440cf8876eb223975f06ddb658a7b8f4220)) +* **deps:** update dependency yargs-parser to v19 ([#241](https://github.com/prantlf/c8/issues/241)) ([baa01df](https://github.com/prantlf/c8/commit/baa01df3dede86373773acfae086647da2b43549)) +* **deps:** update dependency yargs-parser to v20 ([#252](https://github.com/prantlf/c8/issues/252)) ([ae845f0](https://github.com/prantlf/c8/commit/ae845f0bf52c5b1547263079f210ad99c6bd4d7b)) +* **deps:** update deps to address warning in cross-spawn ([#141](https://github.com/prantlf/c8/issues/141)) ([4b66221](https://github.com/prantlf/c8/commit/4b66221cb3f34bc6d105f45191a1cc8d489f2e0f)) +* **deps:** update deps to latest ([#384](https://github.com/prantlf/c8/issues/384)) ([78eac8c](https://github.com/prantlf/c8/commit/78eac8c8ddaf034e25e2525db12d40356d9e6162)), closes [#375](https://github.com/prantlf/c8/issues/375) +* **deps:** v8-to-istanbul with fix for Windows paths ([#311](https://github.com/prantlf/c8/issues/311)) ([ef1b875](https://github.com/prantlf/c8/commit/ef1b8757f5f9c664cf63cfce753e93b92057cab5)) +* **deps:** v8-to-istanbul with patch for crasher ([#200](https://github.com/prantlf/c8/issues/200)) ([d4b7d80](https://github.com/prantlf/c8/commit/d4b7d80d78f3d1cb2e9a2e9e106af0cef327b446)) +* **deps:** v8-to-istnbul with fixes for Node 10/18 ([#392](https://github.com/prantlf/c8/issues/392)) ([d5f642a](https://github.com/prantlf/c8/commit/d5f642a31b5de2053fd798b5b1327004be565dfa)) +* do not override NODE_V8_COVERAGE if set ([#70](https://github.com/prantlf/c8/issues/70)) ([8bb67b0](https://github.com/prantlf/c8/commit/8bb67b0150e4de058b962fa45b1a81a5c8ef3edc)) +* don't load JSON that does not look like coverage ([#146](https://github.com/prantlf/c8/issues/146)) ([a6481f1](https://github.com/prantlf/c8/commit/a6481f1d3012a07e721ff080dc35c327f5c6cafe)) +* escaping issue with cobertura reporter ([#203](https://github.com/prantlf/c8/issues/203)) ([e93747b](https://github.com/prantlf/c8/commit/e93747b9e9044fa14f5ceebda9d0d789aba1c655)) +* exclude coverage of the CJS-ESM bridge from results ([#83](https://github.com/prantlf/c8/issues/83)) ([da2c945](https://github.com/prantlf/c8/commit/da2c945d44134752c015fc23dd0978ee97405ce2)) +* exit with code 1 when report output fails ([#92](https://github.com/prantlf/c8/issues/92)) ([a27b694](https://github.com/prantlf/c8/commit/a27b694fed7fc1fa77a2e1cb18fdca13d8d6e550)) +* file URL to system path conversion ([#46](https://github.com/prantlf/c8/issues/46)) ([e7f8cf2](https://github.com/prantlf/c8/commit/e7f8cf29440ba867df0119922348cebf8bb7026b)) +* fix package.json `test:snap` script to use cross-env ([#366](https://github.com/prantlf/c8/issues/366)) ([5d2981c](https://github.com/prantlf/c8/commit/5d2981c056a8c666c9fdd6847d07c7be38abf181)) +* Fix usage of excludeAfterRemap not to set the coverage always to 100 ([9113449](https://github.com/prantlf/c8/commit/9113449ba1e752eba9810b4f0b1fa2ad1cd0175d)), closes [#462](https://github.com/prantlf/c8/issues/462) +* float patch for branch/function coverage merge bug ([#56](https://github.com/prantlf/c8/issues/56)) ([1de0cca](https://github.com/prantlf/c8/commit/1de0ccaae539cc3e91fe1233ed034d35a29b0163)) +* HTML report now has correct source positions for Node >10.16.0 ([#125](https://github.com/prantlf/c8/issues/125)) ([c49fa7f](https://github.com/prantlf/c8/commit/c49fa7fad11bf0086e614973a8836b8f86a33051)) +* ignore missing source maps in raw coverage output ([#233](https://github.com/prantlf/c8/issues/233)) ([eed98af](https://github.com/prantlf/c8/commit/eed98afae8dc6878c64b157d5007b0d9ce3bd59f)) +* make tests run on Windows ([#25](https://github.com/prantlf/c8/issues/25)) ([08e44d0](https://github.com/prantlf/c8/commit/08e44d004e01f0f5ba44063f0aa283f4e2e4242a)) +* make tmp directory regardless of clean ([44d2185](https://github.com/prantlf/c8/commit/44d2185a6152303a7624176bbe9c013440e59c8b)) +* **perf:** cache `this.exclude.shouldInstrument` for improved performance ([#388](https://github.com/prantlf/c8/issues/388)) ([8b36f23](https://github.com/prantlf/c8/commit/8b36f23c253742d3ef1c9d52c8e843fff63cdacd)) +* pin to functional version of spawn-wrap ([d1ced8c](https://github.com/prantlf/c8/commit/d1ced8cd8b2355b7388046936be03a6726c5e672)) +* process coverage merging ([#37](https://github.com/prantlf/c8/issues/37)) ([67959b4](https://github.com/prantlf/c8/commit/67959b4855636e75a6afce910e1aa5fc207a6e86)) +* regex flags in dependency were breaking Node 8 ([a9d9645](https://github.com/prantlf/c8/commit/a9d9645858031cee985087828f5e04cfd8922868)) +* remove the unmaintained mkdirp dependency ([#91](https://github.com/prantlf/c8/issues/91)) ([a465b65](https://github.com/prantlf/c8/commit/a465b65d907b669714cfc3dca949efd667f499c3)) +* snapshot ([7fd9e13](https://github.com/prantlf/c8/commit/7fd9e13a7bfef7e39110db8ac6d307ae4a1c8113)) +* support node@v15.x.x built-in modules ([#265](https://github.com/prantlf/c8/issues/265)) ([1b90a22](https://github.com/prantlf/c8/commit/1b90a221d540354c552da10d90ef7d1f7a8e8227)) +* switch to mkdirp for Node 8 ([206b83f](https://github.com/prantlf/c8/commit/206b83f156ff93d1a7b211d61bd4fd8e9a4cd95f)) +* temporary files should be in tmp folder ([#106](https://github.com/prantlf/c8/issues/106)) ([64dd2e6](https://github.com/prantlf/c8/commit/64dd2e6ebe3a83a1aa57abcaaaec96476f7256dc)) +* tweak inspector event timing ([#6](https://github.com/prantlf/c8/issues/6)) ([01f654e](https://github.com/prantlf/c8/commit/01f654e1ba49a1c3b94ef40b929241558a4beb43)) +* **types:** add excludeAfterRemap and allowExternal ([#297](https://github.com/prantlf/c8/issues/297)) ([e32a53f](https://github.com/prantlf/c8/commit/e32a53ff050b5faf740da4e9c3fb08e70e29d60d)) +* Upgrade dependencies ([c288f5f](https://github.com/prantlf/c8/commit/c288f5f13a5cc33897847564b07df58aebe05538)) +* upgrade to @bcoe/v8-coverage with breaking regex dropped ([6c28e7f](https://github.com/prantlf/c8/commit/6c28e7f0d9a278aa807421d21a441c0afc34086e)) +* **v8-to-istanbul:** fixes shebang handling/ignore behavior ([#267](https://github.com/prantlf/c8/issues/267)) ([21cd41f](https://github.com/prantlf/c8/commit/21cd41f5ed2b7b3ef81bbad2ae57b531934915cc)) +* **v8-to-istanbul:** pull in fix for missing branches ([#258](https://github.com/prantlf/c8/issues/258)) ([eaffa78](https://github.com/prantlf/c8/commit/eaffa7836155d051a0d13899f70a728819860bdb)) +* **v8-to-istanbul:** revert off by one that broke TypeScript ([#262](https://github.com/prantlf/c8/issues/262)) ([81ab5b7](https://github.com/prantlf/c8/commit/81ab5b7bf0ceccef3e5c936eb6b77f06a727a109)) +* we were not exiting with 1 if mkdir failed ([#89](https://github.com/prantlf/c8/issues/89)) ([fb02ed6](https://github.com/prantlf/c8/commit/fb02ed6b97380ce8308b0edc8a05a6e2830b5043)) + + +* feat!: use Node.js' source-map cache, to support tools like ts-node (#152) ([53bba15](https://github.com/prantlf/c8/commit/53bba15bee07e8f0446fd85cc59d2b562fe34a21)), closes [#152](https://github.com/prantlf/c8/issues/152) +* feat!: default temp directory to report directory (#102) ([8602f4a](https://github.com/prantlf/c8/commit/8602f4aa742ed3a05d8cb3c52bf978ea7572229e)), closes [#102](https://github.com/prantlf/c8/issues/102) + + +### Features + +* `--100` ([#332](https://github.com/prantlf/c8/issues/332)) ([4205f2f](https://github.com/prantlf/c8/commit/4205f2f33585693d82c2500d0d6850571965bb8b)) +* add --config option and documentation on options and configs ([#308](https://github.com/prantlf/c8/issues/308)) ([99436ef](https://github.com/prantlf/c8/commit/99436ef131c2ab966174b5012fe22e499fb44ccd)) +* add --exclude-node-modules option ([#321](https://github.com/prantlf/c8/issues/321)) ([a4733c6](https://github.com/prantlf/c8/commit/a4733c68abd778757bb6ed641e074be94b79c417)) +* add --extension option ([#331](https://github.com/prantlf/c8/issues/331)) ([ff01cd8](https://github.com/prantlf/c8/commit/ff01cd832a155494892b24c30c5a1c8f0169fd8e)) +* add --report-dir alias (for consistency with nyc) ([0dd1b04](https://github.com/prantlf/c8/commit/0dd1b045527947619c9ca22f0fb4e72cdb59ce50)) +* add --skip-full ([#287](https://github.com/prantlf/c8/issues/287)) ([8b01b63](https://github.com/prantlf/c8/commit/8b01b63740d7af75fe83d0164c0f18021592e1a6)) +* add `skipFull` and `excludeNodeModules` to type definitions ([#417](https://github.com/prantlf/c8/issues/417)) ([b93b9c0](https://github.com/prantlf/c8/commit/b93b9c06b2efb4b894406b9aa3cfdf4c8bef419e)) +* add support for 1:1 source-maps ([#85](https://github.com/prantlf/c8/issues/85)) ([6ca4345](https://github.com/prantlf/c8/commit/6ca434524de5900e90a30141dcb35e57b3e2c4fe)) +* add support for ignoring lines, functions, and blocks ([#87](https://github.com/prantlf/c8/issues/87)) ([c66950e](https://github.com/prantlf/c8/commit/c66950e93c536181be50e83407f137d715f467e8)) +* add thresholds for enforcing coverage percentage ([#59](https://github.com/prantlf/c8/issues/59)) ([70e8943](https://github.com/prantlf/c8/commit/70e8943b81d4120b6fefdc77a20c34c022a9a691)) +* adds --all functionality ([#158](https://github.com/prantlf/c8/issues/158)) ([2eb631e](https://github.com/prantlf/c8/commit/2eb631e460eba3d06925ee1d128e0db82ec50b6c)) +* adds support for 1:many source maps ([#238](https://github.com/prantlf/c8/issues/238)) ([dbf94a0](https://github.com/prantlf/c8/commit/dbf94a0dcf8104ef8d5ec1ccd6198594bc6c2bd3)) +* adds TypeScript definitions ([d39801b](https://github.com/prantlf/c8/commit/d39801bc9b2713aa56592010e6394a295bd12b0b)), closes [#195](https://github.com/prantlf/c8/issues/195) +* **all:** handle base64 inline source maps ([#283](https://github.com/prantlf/c8/issues/283)) ([3f12dd4](https://github.com/prantlf/c8/commit/3f12dd4cd4b903b396c60c9c6d76cdf990ec6cbe)) +* allow --reports-dir to be configured ([#65](https://github.com/prantlf/c8/issues/65)) ([5ab31f5](https://github.com/prantlf/c8/commit/5ab31f5b5b8ea77b1bc4a2357547373fbfc77f06)) +* allow relative paths to be optionally included ([3806c79](https://github.com/prantlf/c8/commit/3806c79dd189bfa4c66f5a1e4f5305f3c9eac263)) +* allow script wrapper length to be specified ([#51](https://github.com/prantlf/c8/issues/51)) ([a22c4e0](https://github.com/prantlf/c8/commit/a22c4e0ecbc61423965424dbc405024067a754d6)) +* first pass at functional prototype without subprocess support ([#5](https://github.com/prantlf/c8/issues/5)) ([9534f56](https://github.com/prantlf/c8/commit/9534f56592ebbc7adeef3e15c715c9f29256b962)) +* foreground-child's done() method was not being called ([#82](https://github.com/prantlf/c8/issues/82)) ([fde596e](https://github.com/prantlf/c8/commit/fde596edf5b6ccaa6681fb4c340c312bc639966b)) +* implement Istanbul reporting ([#8](https://github.com/prantlf/c8/issues/8)) ([8e430bf](https://github.com/prantlf/c8/commit/8e430bf5e051395406562cb62222c13a39781ee4)) +* improve test assertions ([#28](https://github.com/prantlf/c8/issues/28)) ([522720e](https://github.com/prantlf/c8/commit/522720e23fc2d735fc073cabdb5ffc94cb911880)) +* introduce --exclude-after-remap flag ([#293](https://github.com/prantlf/c8/issues/293)) ([53c4234](https://github.com/prantlf/c8/commit/53c42347e0ed4eb29e37b84d40768eed89bf9eb0)), closes [#224](https://github.com/prantlf/c8/issues/224) +* load .nycrc/.nycrc.json to simplify migration ([#100](https://github.com/prantlf/c8/issues/100)) ([bd7484f](https://github.com/prantlf/c8/commit/bd7484f5a1d8ed01ab2aaa175641327da81d4e98)) +* playing around with initial implementation ([18f5471](https://github.com/prantlf/c8/commit/18f5471aa32154f97b97652b2f932f114c129f17)) +* support --check-coverage for reports ([#60](https://github.com/prantlf/c8/issues/60)) ([b542930](https://github.com/prantlf/c8/commit/b542930338f2feb069a552e9fbf8bbd35159555d)) +* support for instrumenting files outside of current working directory ([7e53a0e](https://github.com/prantlf/c8/commit/7e53a0ecf93eda5467e2a8ac7d33cf8d6af84cf1)) +* support ignore start/stop comment ([#273](https://github.com/prantlf/c8/issues/273)) ([90949fa](https://github.com/prantlf/c8/commit/90949fa2deac7fccb9fc4b83ecca70f4de025ae9)), closes [#271](https://github.com/prantlf/c8/issues/271) +* support passing reporter options ([#423](https://github.com/prantlf/c8/issues/423)) ([bc347a9](https://github.com/prantlf/c8/commit/bc347a91f06a3fea7b7425c4affd66d7f8b9d416)) +* switch to stderr and default port ([#7](https://github.com/prantlf/c8/issues/7)) ([bb117b7](https://github.com/prantlf/c8/commit/bb117b7c5ed53cb3e768c8bf26f164d4ff217c3d)) +* switch to using Node's built in coverage ([#22](https://github.com/prantlf/c8/issues/22)) ([3c1b92b](https://github.com/prantlf/c8/commit/3c1b92b621b7f18f9927395a7e95dc8ac73f0bc7)) +* **types:** add typings for reporterOptions ([#446](https://github.com/prantlf/c8/issues/446)) ([3646e6e](https://github.com/prantlf/c8/commit/3646e6eb3762574d8f70907d7637e47dd9dfac25)) +* use debuglog rather than console.warn ([#279](https://github.com/prantlf/c8/issues/279)) ([7c04a4d](https://github.com/prantlf/c8/commit/7c04a4dc47ee9496d89fcae9062da24a6f642f39)) +* use process.stdout.columns for reporter maxCols ([#409](https://github.com/prantlf/c8/issues/409)) ([7731574](https://github.com/prantlf/c8/commit/77315744b219b90eb6a02efc9d26e5400f99af62)) +* warn instead of throw on exception ([#29](https://github.com/prantlf/c8/issues/29)) ([a8620d4](https://github.com/prantlf/c8/commit/a8620d49fffdcd0b04c85eef2473958b642f6f0b)) + + +### BREAKING CHANGES + +* Node.js' source-map and lineLength cache is now used to remap coverage output (this allows tools like ts-node to be supported, which transpile at runtime). +* temp directory now defaults to setting for report directory +* c8 will now load source-maps if possible and remap coverage accordingly +* switches to using NODE_V8_COVERAGE rather than inspector directly +* dropped subprocess support for the time being, while we march towards an initial implementation. + # Changelog 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. diff --git a/package-lock.json b/package-lock.json index 61a4f9d6..44d6bd5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@prantlf/c8", - "version": "7.13.0", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@prantlf/c8", - "version": "7.13.0", + "version": "1.0.0", "license": "ISC", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", diff --git a/package.json b/package.json index 3b0f7425..de8e715c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@prantlf/c8", - "version": "7.13.0", + "version": "1.0.0", "description": "output coverage reports using Node.js' built in coverage", "main": "./index.js", "types": "./index.d.ts",