Releases: Nixinova/LinguistJS
2.2.0
Version 2.2.0 of Linguist!
Install on npm using npm install [email protected]
.
Changelog
- Added option
relativePaths
to allow output results to be shown as relative paths (defaults tofalse
). - Changed CLI output to display the number of skipped files.
- Fixed git config entries containing backslashes causing a crash.
2.1.4
Version 2.1.4 of Linguist.
Install on npm using npm install [email protected]
.
Changelog
- 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
Version 2.1.3 of Linguist.
Install on npm using npm install [email protected]
.
Changelog
- Changed gitattributes parsing to support
text
andbinary
parameters. - Fixed a crash occurring during compilation of regexes.
2.1.2
Version 2.1.2 of Linguist. Fixes a few CLI display errors.
Install on npm using npm install [email protected]
.
Changelog
- 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
Version 2.1.1 of Linguist.
Install on npm using npm install [email protected]
.
Changelog
- 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
Version 2.1 of Linguist.
Install on npm using npm install [email protected]
.
Changelog
- Added nullable
parent
property to each entry inlanguages.results
to display the parent language. - Added option
childLanguages
to control whether child languages are displayed instead of their parent (defaults tofalse
).
2.0.3
Version 2.0.3 of Linguist.
Install on npm using npm install [email protected]
.
Changelog
- 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
2.0.1
Version 2.0.1 of Linguist.
Install on npm using npm install [email protected]
.
Changelog
- 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 is0
.
2.0.0
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
- Breaking: Changed output schema:
count
→files.count
results
→files.results
languages.all
→languages.results
languages.data
→ (deleted)languages.markup
→ (deleted)languages.programming
→ (deleted)languages.prose
→ (deleted)languages.unknown
→unknown.{filenames|extensions}
languages.total.unique
→languages.count
languages.total.bytes
→languages.bytes
languages.total.unknownBytes
→unknown.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
toignoredFiles
. - Breaking: Changed the name of option
ignoreLanguages
toignoredLanguages
. - 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 byignoredFiles
.