Skip to content

v4.1.0

Compare
Choose a tag to compare
@mysticatea mysticatea released this 23 Feb 09:29
· 220 commits to master since this release
v4.1.0
3f03d92

New rules

  • c289f18 added no-hide-core-modules rule.
    This rule disallows require() expressions and import declarations if those import a third-party module which has the same name as core modules. Especially, if you depend on such modules indirectly and npm flattens dependencies, you can depend on such third-party modules before as you know it. This might cause unintentional behaviors.

Enhancements

Bug fixes

  • 17c8ae0 fixed the behavior of no-deprecated-api rule about indirect dependencies. The no-deprecated-api rule has ignored deprecated APIs if a code imports the third-party module which has same name as a core module. However, I found it can cause confusing because of indirect dependencies and flatting dependencies.
    Now, The no-deprecated-api rule does not ignore deprecated APIs even if a code imports the third-party module which has same name as a core module except it's in your package.json explicitly.
    If you want to revive old behavior, please set ignoreIndirectDependencies: true option.