Skip to content

Releases: Nixinova/LinguistJS

2.0.1

07 Sep 22:59
Compare
Choose a tag to compare

Version 2.0.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Changed file paths in CLI output JSON to be absolute instead of relative (#3).
  • Fixed percentages in CLI output displaying NaN when the total byte count is 0.

2.0.0

05 Sep 05:50
Compare
Choose a tag to compare

Version 2.0 is out!

A major update to Linguist which includes a host of breaking changes.

Install on npm using npm install [email protected].

Changelog

View commits

  • Breaking: Changed output schema:
    • countfiles.count
    • resultsfiles.results
    • languages.alllanguages.results
    • languages.data → (deleted)
    • languages.markup → (deleted)
    • languages.programming → (deleted)
    • languages.prose → (deleted)
    • languages.unknownunknown.{filenames|extensions}
    • languages.total.uniquelanguages.count
    • languages.total.byteslanguages.bytes
    • languages.total.unknownBytesunknown.bytes
  • Breaking: Changed the default CLI output format from JSON to summary.
  • Breaking: Changed CLI array arguments to require delimiters to be spaces instead of other characters.
  • Breaking: Changed the name of option ignoreFiles to ignoredFiles.
  • Breaking: Changed the name of option ignoreLanguages to ignoredLanguages.
  • Added CLI option --json to display the results as JSON (the previous default behavior).
  • Removed CLI option --summary as it is now the default output format.
  • Removed CLI option --files to list all files parsed.
  • Removed deprecated option ignore which was superceded by ignoredFiles.

1.9.1

29 Aug 04:47
Compare
Choose a tag to compare

Version 1.9.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

  • Fixed a crash occurring when using both the categories and ignoreLanguages options together.

1.9.0

28 Aug 20:15
Compare
Choose a tag to compare

Version 1.9 of Linguist.

Install on npm using npm install [email protected].

Changelog

  • Add ignoreLanguages option to configure which languages to ignore.
  • Added alias ignoreFiles for option ignore.
  • Added CLI argument --tree to traverse the output tree to a specific object instead of logging the entire results.
  • Deprecated option ignore as it is now ambiguous.

1.8.2

27 Aug 22:10
Compare
Choose a tag to compare

Version 1.8.2 of Linguist.

Install on npm using npm install [email protected].

Changelog

  • Fixed known vendored files not being removed from output.

1.8.1

27 Aug 21:29
Compare
Choose a tag to compare

Version 1.8.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

  • Fixed input folder paths being case sensitive.
  • Fixed dotfiles not showing up in the output.

1.8.0

24 Aug 07:24
Compare
Choose a tag to compare

Version 1.8 of Linguist.

Install on npm using npm install [email protected].

Changelog

  • Added support for the first argument to analyse() to be an array of paths.

1.7.1

21 Aug 07:58
Compare
Choose a tag to compare

Version 1.7.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

  • Changed file paths specified in option ignore to remain hidden even when keepVendored is enabled.
  • Fixed file results not being listed when using globbed input.
  • Fixed command-line arguments not being fully normalised.

1.7.0

19 Aug 06:08
Compare
Choose a tag to compare

Version 1.7.0 of Linguist.

Install on npm using npm install [email protected].

Changelog

  • Added categories option to control which language categories (data, markup, programming, and/or prose) should be included in the output.
  • Fixed some files being incorrectly classified as binary.

1.6.1

17 Aug 08:22
Compare
Choose a tag to compare

Version 1.6.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

  • Changed binary file checking to check file content as well as extension.
  • Fixed filename matching not comparing the full base name to the list of filename matches.