Skip to content

Commit 58a2f63

Browse files
committed
2.9.0
1 parent 4ee0b45 commit 58a2f63

File tree

5 files changed

+70
-49
lines changed

5 files changed

+70
-49
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [20.x, 18.x, 16.x, 14.x, 12.x]
15+
node-version: [23.x, 22.x, 20.x, 18.x, 16.x, 14.x, 12.x]
1616

1717
steps:
1818
- uses: actions/checkout@v2

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-
- Added `minSize` CLI option to control a minimum size to return, with results smaller than this threshold put in 'Other' ([#35](https://github.com/Nixinova/LinguistJS/pull/35)).
3+
## 2.9.0
4+
*2025-02-09*
5+
- Added `minSize` CLI option to control a minimum size for results, with languages smaller than this threshold moved into 'Other' ([#32](https://github.com/Nixinova/LinguistJS/issues/32), [#35](https://github.com/Nixinova/LinguistJS/pull/35)).
56

67
## 2.8.1
78
*2024-12-05*

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "linguist-js",
3-
"version": "2.8.1",
3+
"version": "2.9.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": {
@@ -42,8 +42,8 @@
4242
"binary-extensions": "^2.3.0 <3",
4343
"commander": "^9.5.0 <10",
4444
"common-path-prefix": "^3.0.0",
45-
"cross-fetch": "^3.1.8 <4",
46-
"ignore": "^5.3.2",
45+
"cross-fetch": "^3.2.0 <4",
46+
"ignore": "^7.0.3",
4747
"isbinaryfile": "^4.0.10 <5",
4848
"js-yaml": "^4.1.0",
4949
"node-cache": "^5.1.2"

readme.md

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ Running LinguistJS on this folder will return the following JSON:
5050
"files": {
5151
"count": 5,
5252
"bytes": 6020,
53-
"lines": {
54-
"total": 100,
55-
"content": 90,
56-
"code": 80,
57-
},
53+
"lines": {
54+
"total": 100,
55+
"content": 90,
56+
"code": 80,
57+
},
5858
"results": {
5959
"/src/index.ts": "TypeScript",
6060
"/src/cli.js": "JavaScript",
@@ -69,26 +69,46 @@ Running LinguistJS on this folder will return the following JSON:
6969
"languages": {
7070
"count": 3,
7171
"bytes": 6010,
72-
"lines": {
73-
"total": 90,
74-
"content": 80,
75-
"code": 70,
76-
},
72+
"lines": {
73+
"total": 90,
74+
"content": 80,
75+
"code": 70,
76+
},
7777
"results": {
78-
"JavaScript": { "type": "programming", "bytes": 1000, "lines": { "total": 49, "content": 49, "code": 44 }, "color": "#f1e05a" },
79-
"Markdown": { "type": "prose", "bytes": 3000, "lines": { "total": 10, "content": 5, "code": 5 }, "color": "#083fa1" },
80-
"Ruby": { "type": "programming", "bytes": 10, "lines": { "total": 1, "content": 1, "code": 1 }, "color": "#701516" },
81-
"TypeScript": { "type": "programming", "bytes": 2000, "lines": { "total": 30, "content": 25, "code": 20 }, "color": "#2b7489" },
78+
"JavaScript": {
79+
"type": "programming",
80+
"bytes": 1000,
81+
"lines": { "total": 49, "content": 49, "code": 44 },
82+
"color": "#f1e05a"
83+
},
84+
"Markdown": {
85+
"type": "prose",
86+
"bytes": 3000,
87+
"lines": { "total": 10, "content": 5, "code": 5 },
88+
"color": "#083fa1"
89+
},
90+
"Ruby": {
91+
"type": "programming",
92+
"bytes": 10,
93+
"lines": { "total": 1, "content": 1, "code": 1 },
94+
"color": "#701516"
95+
},
96+
"TypeScript": {
97+
"type": "programming",
98+
"bytes": 2000,
99+
"lines": { "total": 30, "content": 25, "code": 20 },
100+
"color": "#2b7489"
101+
},
82102
},
83103
},
84104
"unknown": {
85105
"count": 1,
86106
"bytes": 10,
87-
"lines": {
88-
"total": 10,
89-
"content": 10,
90-
"code": 10,
91-
},
107+
"lines": {
108+
"total": 10,
109+
"content": 10,
110+
"code": 10,
111+
},
92112
"filenames": {
93113
"no-lang": 10,
94114
},

0 commit comments

Comments
 (0)