Skip to content

Commit 0833ce9

Browse files
committed
2.6.0
1 parent daaf868 commit 0833ce9

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

changelog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Changelog
22

3-
## Next
4-
- Add `alternatives` key to list all possible language matches for files that do not have a definite match.
3+
## 2.6.0
4+
*2023-06-29*
5+
- Add `alternatives` key to list all possible alternative language classifications for files that do not have a definite match ([#15](https://github.com/Nixinova/LinguistJS/issues/15), [#19](https://github.com/Nixinova/LinguistJS/pull/19)).
56

67
## 2.5.6
78
*2023-06-28*

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linguist-js",
3-
"version": "2.5.6",
3+
"version": "2.6.0",
44
"description": "Analyse languages used in a folder. Powered by GitHub Linguist, although it doesn't need to be installed.",
55
"main": "dist/index.js",
66
"bin": {

test/unit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ async function test([filename, fileContent = ''], [type, testVal]) {
1818
const result = testContent === testVal;
1919
i = `${+i + 1}`.padStart(2, '0');
2020
if (result) {
21-
console.info(`- #${i} passed: '${filename}': ${testVal}`);
21+
console.info(`- #${i} passed: '${filename}' is ${testVal}`);
2222
}
2323
else {
2424
errors++;
25-
console.error(`- #${i} failed: '${filename}': ${testContent} instead of ${testVal}`);
25+
console.error(`- #${i} failed: '${filename}' is ${testContent} instead of ${testVal}`);
2626
}
2727
}
2828

0 commit comments

Comments
 (0)