Releases: jhaynie/linguist
1.0.1
1.0.0
This is a MAJOR update which switches the underlying engine from the network based ruby version of Linguist to use the golang port of Linguist (http://github.com/generaltso/linguist)
The API is the same.
0.0.8
This release has the following changes:
- Fixed an issue where preoptimization check should have been flagged as vendored wasn't (since it was only passing filename check and not vendor check)
- provide a string method for data structures to make it easier for debugging
- any match on the pre-opt cache check should match and exit not all of them
- added .eslintrc.json, rollup.config.js and appveyor.yml to exclusion list
- added .vscode and .github to exclusion list
0.0.7
Release notes:
-
This releases expose the preoptimization cache API to allow a user to check if the filename will hit the cache before calling the normal API. This is a nice optimization in the case you don't have the source code but have the filename and want to check if you need to fetch the source to pass to linguist for detection. If the result can be retrieved from the cache, the
IsCached
in theResult
struct will betrue
. -
Added a last parameter (optional) to
GetLanguageDetails
andGetLanguageDetailsMultiple
(bool) which allows you to skip the pre-optimization cache check, used in conjunction with above. -
Expose the
MaxBufferSize
variable which is the large size in bytes that a buffer can be before it's considered "large"
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
🐱Changes
- API interface change: The
Result
struct now only have oneDetection
as a pointer instead of an Array of Detection. This simplifies the interface to be consistent with the API which only takes one filename. - Fixed test cases around Sloc check
- Reduce amount of locking by returning copies of Result
- Added
IsBinary
,IsLarge
andIsExcluded
to provide additional information about results with no detection