Skip to content

Releases: Nixinova/LinguistJS

2.2.0

05 Jan 20:14
Compare
Choose a tag to compare

Version 2.2.0 of Linguist!

Install on npm using npm install [email protected].

Changelog

View commits

  • Added option relativePaths to allow output results to be shown as relative paths (defaults to false).
  • Changed CLI output to display the number of skipped files.
  • Fixed git config entries containing backslashes causing a crash.

2.1.4

29 Sep 00:57
Compare
Choose a tag to compare

Version 2.1.4 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Fixed gitignore entries containing dots not being parsed properly.
  • Fixed git config files containing character classes like [[:digit:]] not being parsed properly.

2.1.3

19 Sep 03:39
Compare
Choose a tag to compare

Version 2.1.3 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Changed gitattributes parsing to support text and binary parameters.
  • Fixed a crash occurring during compilation of regexes.

2.1.2

14 Sep 04:05
Compare
Choose a tag to compare

Version 2.1.2 of Linguist. Fixes a few CLI display errors.

Install on npm using npm install [email protected].

Changelog

View commits

  • Fixed languages without a colour not having their icon displayed properly in the CLI output.
  • Fixed unknown extensions erroneously having an extra dot prefixed in the CLI output.

2.1.1

12 Sep 04:06
Compare
Choose a tag to compare

Version 2.1.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Changed CLI output to display associated language colours.
  • Fixed filenames not taking precedence over extensions when classifying.
  • Fixed parent languages not being checked when parsing heuristics relating to their children.

2.1.0

10 Sep 22:15
Compare
Choose a tag to compare

Version 2.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Added nullable parent property to each entry in languages.results to display the parent language.
  • Added option childLanguages to control whether child languages are displayed instead of their parent (defaults to false).

2.0.3

10 Sep 21:26
Compare
Choose a tag to compare

Version 2.0.3 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Changed the error thrown when traversing an invalid tree via CLI to contain a more useful description.
  • Fixed heuristics not applying start- and end-of-line markers properly (#5).
  • Fixed heuristic language fallback not being applied properly.

2.0.2

09 Sep 05:11
Compare
Choose a tag to compare

Version 2.0.2 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Fixed CLI usage not working when installed with Yarn (#2).
  • Fixed a crash that occurred when file contents changed between runs (#4).
  • Fixed heuristics containing dot wildcards being incorrectly applied (#5).
  • Fixed vendored/generated files containing dots not being classified as vendored.

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.