Skip to content

Releases: Nixinova/LinguistJS

2.5.2

28 Jun 08:19
Compare
Choose a tag to compare

Version 2.5.2 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits: 2.5.1...2.5.2

  • Fixed file extensions with multiple delimiters not being prioritised over basic extensions.
  • Fixed modeline checking not trimming comments from the first line.
  • Fixed modeline checking being applied to the first line even when it does not contain a modeline.
  • Fixed fallback language detection not being applied when an ambiguous interpreter is declared in a shebang line.

2.5.1

26 Jun 09:34
Compare
Choose a tag to compare

Version 2.5.1 of Linguist, which fixes issues with applying heuristics.

Install on npm using npm install [email protected].

Changelog

View commits: 2.5.0...2.5.1

  • Fixed heuristics not being applied to files.
  • Fixed heuristics with multiple rules not being parsed.

2.5.0

14 May 04:50
Compare
Choose a tag to compare

Version 2.5.0 of Linguist!

Install on npm using npm install [email protected].

Changelog

View commits: 2.4.2...2.5.0

  • Added boolean option offline to allow the use of pre-packaged metadata files instead of having them fetched from GitHub at runtime.
  • Added linguist-js as an alias of the linguist executable.

2.4.2

19 Mar 20:07
Compare
Choose a tag to compare

Version 2.4.2 of LinguistJS.

Install on npm using npm install [email protected].

Changelog

View commits

  • Fixed a crash occurring because of outdated file caches. (#12, #13)
  • Fixed heuristics not being applied when using raw file input.

2.4.1

24 Feb 00:31
Compare
Choose a tag to compare

Version 2.4.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Fixed parsing of gitignore statements not matching its specification.
  • Fixed generated file names being applied case-sensitively.
  • Fixed generated files not being excluded from the input when using raw file mode.
  • Fixed modeline language selection not working for languages containing non-alphanumeric characters.

2.4.0

18 Feb 21:40
Compare
Choose a tag to compare

Version 2.4.0 of Linguist!

Install on npm using npm install [email protected].

Changelog

View commits

  • Added boolean option checkModeline (defaults to true) to check the modeline of files for explicit classification.
  • Fixed shebang statements not taking priority over other methods of disambiguation.

2.3.2

18 Feb 01:23
Compare
Choose a tag to compare

Version 2.3.2 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Changed vendored checking to include paths marked as documentation.
  • Fixed array input not being parsed properly when used with fileContent.
  • Fixed vendor patterns being erroneously applied to parent folders.
  • Fixed vendor patterns made for relative paths not being applied.

2.3.1

16 Feb 02:18
Compare
Choose a tag to compare

Version 2.3.1 of Linguist.

Install on npm using npm install [email protected].

Changelog

View commits

  • Fixed a crash occurring when parsing heuristics containing atomic groups.
  • Fixed option fileContent being ignored if set to an empty string.
  • Fixed file extensions being treated as case sensitive.

2.3.0

12 Feb 19:30
Compare
Choose a tag to compare

Version 2.3.0 of Linguist!

Install on npm using npm install [email protected].

Changelog

View commits

  • Added option fileContent to provide manual file content to analyse instead of reading from a folder on disk (#9, #10).

2.2.1

11 Feb 02:36
Compare
Choose a tag to compare

Version 2.2.1 of linguist-js.

Install on npm using npm install [email protected].

Changelog

View commits

  • Fixed files marked as text=auto being classified as text.
  • Fixed a crash occurring when attempting to load unreadable files.