Skip to content

Releases: jhaynie/linguist

1.0.1

05 Apr 02:04
Compare
Choose a tag to compare
  • Simplify internal interface
  • Fixed issue with sending multiple files which get returned out of order

1.0.0

04 Apr 22:08
Compare
Choose a tag to compare

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

04 Mar 16:50
Compare
Choose a tag to compare

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

19 Sep 02:26
Compare
Choose a tag to compare

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 the Result struct will be true.

  • Added a last parameter (optional) to GetLanguageDetails and GetLanguageDetailsMultiple (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

06 Aug 02:32
Compare
Choose a tag to compare

Changes

  • Added ability to pass in multiple files at once for analysis with new function GetLanguageDetailsMultiple
  • Added VERSION to exclusion list

0.0.5

06 Aug 01:46
Compare
Choose a tag to compare

Fixes and Improvements

  • optimize preoptimization cache lock by using RWLock
  • add APIs to support customization of exlusion rules
  • add more built-in exclusion rules
  • fix max buffer size (to be exluded) to be 100K, not 10K

0.0.4

04 Aug 21:59
Compare
Choose a tag to compare

😡 Changes

Don't exclude LICENSE or LICENSE.md for now.

0.0.3

04 Aug 21:00
Compare
Choose a tag to compare

😪 Fixes

  • Fixed issue where a mutation of the result would change subsequent results
  • Removed Loc and Sloc from the Result since those aren't used and are inaccurate with preoptimizations

0.0.2

04 Aug 18:48
Compare
Choose a tag to compare

🐱Changes

  • API interface change: The Result struct now only have one Detection 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 and IsExcluded to provide additional information about results with no detection

0.0.1

04 Aug 05:28
Compare
Choose a tag to compare

🎭 Initial Release

This is the first release of linguist API.