Skip to content

Latest commit

 

History

History
345 lines (270 loc) · 19.8 KB

CHANGELOG.md

File metadata and controls

345 lines (270 loc) · 19.8 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

[Unreleased]

Added

Changed

  • name-format now checks the following things:

    • Name is lowercase
    • Name is less than 214 characters. This includes scope.
    • Name doesn't start with a . or a _.

    Addresses #115

  • Improved schema validation that runs against npm-package-json-lint config files. Highlights include:

    • Better error messages. Ex: - severity must be either "off", "warning", or "error".
    • Array type rules now ensure at least one item is passed.
    • Array type rules now validate unique items are passed.

Fixed

Removed

  • Dropped support for Node 6 and 7.

[3.7.0] - 2019-06-16

Added

Addresses #109 from @ceilfors.

[3.6.1] - 2019-05-22

Fixed

  • @lddubeau resolved an issue with how require.resolve was implemented. The issue was causing npm-package-json-lint to crash on Node 12.3.0. Please see #110 for more details.

Huge shout-out to @lddubeau for identifying and fixing this issue 🎉

[3.6.0] - 2019-02-28

Added

Huge shout-out to @greatislander for contributing the rule! 🎉

[3.5.0] - 2019-02-03

Added

  • New cli flag, ignorePath (-i) - Path to a file containing patterns that describe files to ignore.

Huge shout-out to @evilebottnawi for contributing the new cli option! 🎉

[3.4.1] - 2018-10-13

Fixed

  • Resolved an issue with the following rules:
    • no-caret-version-dependencies
    • no-caret-version-devDependencies
    • no-tilde-version-dependencies
    • no-tilde-version-devDependencies

Addresses #97 from @agvctm.

[3.4.0] - 2018-10-06

Added

Huge shout-out to @jogold for contributing these rules! 🎉

[3.3.1] - 2018-08-23

Fixed

  • Resolved an issue in the CLIEngine where the file path separator was incompatible with Windows path separators. Addresses #91 from @aduth.

[3.3.0] - 2018-08-03

Added

[3.2.0] - 2018-07-14

Added

Huge shout-out to @fastfrwrd for contributing these rules! 🎉

[3.1.0] - 2018-06-02

Added

[3.0.1] - 2018-05-14

Fixed

  • Addressed issue, from @ntwb, #79.

[3.0.0] - 2018-05-09

Added

  • Added support for glob based package.json file detection. Addresses #74 from @dnepro.
  • Added support for recursive config file detection. Addresses #75 from @dnepro.
  • Added support for running npm-package-json-lint programmatically. Addresses #76 from @minijus.
  • New rule: valid-values-publishConfig. Addresses #80 from @ntwb.
  • Improved rule: scripts-type. Addresses #77 from @reggi.

Changed

  • npm-package-json-lint's cli has been renamed from pjl-cli to npmPkgJsonLint. The cli interface has also changed. Multiple patterns can now specified. Please run npmPkgJsonLint --help for examples.

Removed

  • Dropped support for Node 4 and 5.

[2.11.2] - 2018-02-18

Fixed

[2.11.1] - 2017-12-27

Fixed

  • Addressed issue, from @hassankhan, #64. This change adds support for authors as objects. Impacts valid-values-author

[2.11.0] - 2017-09-02

Added

[2.10.0] - 2017-09-02

Changed

  • Addressed issues, from @moshest, #57 and #58. This change gives better recommendations for what change is required by the user to resolve the lint issue. It also no longer throws an error when a property exists in the package.json file that doesn't exist in the preferred property order array. Thanks @moshest.

[2.9.0] - 2017-08-29

Changed

  • Update all rules to export the type of rule they are. Current valid values are "standard" and "array". The rules loader has been updated to references the ruleType export rather than trying to maintain a separate list of array style rules. This change closes issue #56 and should prevent the issue discussed in issue #53 from occurring again.

[2.8.2] - 2017-08-23

Fixed

[2.8.1] - 2017-08-21

Changed/Fixed

[2.8.0] - 2017-08-16

Added

[2.7.1] - 2017-08-15

Fixed

[2.7.0] - 2017-08-08

Added

  • The ability to pass config using:
    1. a npmPackageJsonLintConfig property in package.json
    2. a .npmpackagejsonlintrc file in the current working directory
    3. a npmpackagejsonlint.config.js file that exports a config object in the current working directory.
    4. a global .npmpackagejsonlintrc file in the root of your user directory
    5. a global npmpackagejsonlint.config.js file that exports a config object in the root of your user directory

[2.6.0] - 2017-07-30

Changed

  • Bumped dependencies
  • Converted grunt tasks to npm scripts
  • Update cli output format for cleaner output

[2.5.0] - 2017-06-11

Changed

@chr1shaefn3r enhanced the following rules so they no longer require a leading equals sign

[2.4.0] - 2017-05-24

Added

Thanks to @chr1shaefn3r for submitting the new rules

Changed

  • Improved the message when prefer-alphabetical-dependencies, prefer-alphabetical-devDependencies, prefer-alphabetical-bundledDependencies, prefer-alphabetical-optionalDependencies, or prefer-alphabetical-peerDependencies are triggered. Now failing dependency is communicated as well as the dependency it must be placed after.

[2.3.0] - 2017-04-22

Added

Removed

  • grunt tasks, tests, and project linting files from published node module

[2.2.0] - 2017-04-12

Added

  • Add new quiet (-q) option to cli that suppresses output if no errors

[2.1.2] - 2017-04-10

Fixed

  • Array style rules, like valid-values-author, so they can be easily turned off by setting valid-values-author: 'off'

[2.1.1] - 2017-04-10

Fixed

  • CLI so process exit code remains 0 if only warnings are detected

[2.1.0] - 2017-04-09

Changed

  • CLI process exit code to 2 (non-zero) if issues are detected in the scan

[2.0.2] - 2017-02-18

Fixed

  • Issue .npmpackagejsonlintrc.json files that only have a extends value with no rules object

[2.0.1] - 2017-02-18

Fixed

  • Issue with relative path local config extension modules. Now relative path modules are load relative to the current working directory of the active process.

[2.0.0] - 2017-02-18

Added

  • Support configuration extension!! Now you can add "extends" to your rc file to extend a based configuration. This is great for sharing a standard ruleset between many projects. Please see the wiki for more information.
  • An optional cli flag for controlling rule severity. Please see the README.md for examples.

Removed

[1.4.0] - 2016-10-15

Added

[1.3.0] - 2016-07-26

Added

[1.2.0] - 2016-07-26

Changed

  • Bump grunt-eslint to version 19.0.0
  • Move to shared eslint-config-tc module

[1.1.0] - 2016-07-17

Added

  • Error handling if an invalid rule name is included in .npmpackagejsonlintrc.json.

Fixed

  • Issue resolving file path of .npmpackagejsonlintrc.json when running the cli from a nested directory under node_modules

[1.0.0] - 2016-05-22

Added

Changed

  • Renamed author-required to require-author
  • Renamed description-required to require-description
  • Renamed engines-required to require-engines
  • Renamed license-required to require-license
  • Renamed name-required to require-name
  • Renamed repository-required to require-repository
  • Renamed version-required to require-version
  • Renamed bugs-recommended to require-bugs
  • Renamed homepage-recommended to require-homepage
  • Renamed keywords-recommended to require-keywords
  • Renamed author-valid-values to valid-values-author
  • Renamed private-valid-values to valid-values-private
  • Renamed dependencies-invalid-dependencies to no-restricted-dependencies
  • Renamed dependencies-invalid-pre-release-dependencies to no-restricted-pre-release-dependencies
  • Renamed devDependencies-invalid-dependencies to no-restricted-devDependencies
  • Renamed devDependencies-invalid-pre-release-dependencies to no-restricted-pre-release-devDependencies

Fixed

  • Updated man-type to account for both settings, array and string

[0.4.0] - 2016-05-13

Added

Changed

  • Update to single quotes (ESLint rule: quotes)

[0.3.0] - 2016-05-10

Changed

  • Bumped deps
  • Add node 6 tests on TravisCI

[0.2.0] - 2016-05-01

Added

  • ESLint to build process

Fixed

  • README cli alias flags
  • Remove invalid README column from

Removed

  • JSHint from build process

[0.1.0] - 2016-04-20

Added

  • First release