nyc v14.0.0 Release Notes

Release Date: 2019-04-15 // 9 months 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.