nyc v14.0.0 Release Notes

Release Date: 2019-04-15 // almost 5 years ago
  • ๐Ÿ› Bug Fixes

    • โž• Add cwd option to instrument command (#1024) (051d95a)
    • โž• Add config values to hash salt (#988) (7ac325d), closes #522
    • Exclude negated not working with '--all' switch (#977) (91de23c)
    • ๐Ÿ‘‰ Make --all work for transpiled code (#1047) (18e04ba)
    • Resolve absolute paths in nyc instrument (#1012) (3cb1861), closes #1014
    • Set processinfo pid/ppid to actual numbers (#1057) (32f75b0)
    • ๐Ÿ‘‰ Use a single instance of nyc for all actions of main command. (#1059) (b909575)

    ๐Ÿ”‹ Features

    • โž• Add delete option to instrument command (#1005) (d6db551)
    • โž• Add include and exclude options to instrument command (#1007) (8da097e)
    • โž• Add processinfo index, add externalId (#1055) (8dcf180)
    • โž• Add support for nyc.config.js (#1019) (3b203c7)
    • โž• Add support to exclude files on coverage report generation (#982) (509c6aa)
    • โž• Add test-exclude args to check-coverage and report subcommands. (0fc217e)
    • ๐Ÿ— Always build the processinfo temp dir (#1061) (c213469)
    • Enable es-modules option for nyc instrument command (#1006) (596b120)
    • ๐Ÿ›  Fix excludeAfterRemap functionality. (36bcc0b)
    • Implement nyc instrument --complete-copy (#1056) (2eb13c6)
    • โœ‚ Remove bundling (#1017) (b25492a)
    • ๐Ÿ‘Œ Support turning off node_modules default exclude via exclude-node-modules option (#912) (b7e16cd)
    • โž• Add support for --exclude-node-modules to subcommands. (#1053) (e597c46)

    ๐Ÿ’ฅ BREAKING CHANGES

    • 0๏ธโƒฃ The --exclude-after-remap option is now functional and enabled by default. This causes the include, exclude and extension lists to be processed after using source maps to determine the original filename of sources.
    • โž• Add a file named 'index.json' to the .nyc_output/processinfo directory, which has a different format from the other files in this dir.
    • ๐Ÿ”„ Change the data type of the pid/ppid fields in processinfo files
    • nyc instrument now honors include and exclude settings, potentially resulting in some files that were previously instrumented being ignored.
    • ๐Ÿ”Œ The plugins option has been renamed to parser-plugins.
    • The logic involving include/exclude processing has changed. Results should be verified to ensure all desired sources have coverage data.
    • 0๏ธโƒฃ nyc instrument now enables the --es-module option by default. This can cause failures to instrument scripts which violate 'use strict' rules.