code-gauge 10.2.3 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +47 -5
  2. package/THIRD-PARTY-NOTICES.txt +12 -12
  3. package/dist/allowDirectives.cjs +2 -0
  4. package/dist/allowDirectives.cjs.map +1 -0
  5. package/dist/allowDirectives.d.ts +45 -0
  6. package/dist/allowDirectives.js +2 -0
  7. package/dist/allowDirectives.js.map +1 -0
  8. package/dist/checkCommand.cjs +3 -3
  9. package/dist/checkCommand.cjs.map +1 -1
  10. package/dist/checkCommand.d.ts +1 -1
  11. package/dist/checkCommand.js +3 -3
  12. package/dist/checkCommand.js.map +1 -1
  13. package/dist/cli.cjs.map +1 -1
  14. package/dist/cli.js.map +1 -1
  15. package/dist/cliConfig.cjs.map +1 -1
  16. package/dist/cliConfig.js.map +1 -1
  17. package/dist/crossFileDuplication.cjs.map +1 -1
  18. package/dist/crossFileDuplication.js.map +1 -1
  19. package/dist/crossFileNearMiss.cjs +1 -1
  20. package/dist/crossFileNearMiss.cjs.map +1 -1
  21. package/dist/crossFileNearMiss.js +1 -1
  22. package/dist/crossFileNearMiss.js.map +1 -1
  23. package/dist/duplicateSelection.cjs.map +1 -1
  24. package/dist/duplicateSelection.js.map +1 -1
  25. package/dist/duplication.cjs +1 -1
  26. package/dist/duplication.cjs.map +1 -1
  27. package/dist/duplication.js +1 -1
  28. package/dist/duplication.js.map +1 -1
  29. package/dist/exclusion.cjs.map +1 -1
  30. package/dist/exclusion.js.map +1 -1
  31. package/dist/git.cjs +2 -1
  32. package/dist/git.cjs.map +1 -1
  33. package/dist/git.d.ts +7 -0
  34. package/dist/git.js +2 -1
  35. package/dist/git.js.map +1 -1
  36. package/dist/languages.cjs.map +1 -1
  37. package/dist/languages.js.map +1 -1
  38. package/dist/metrics.cjs.map +1 -1
  39. package/dist/metrics.js.map +1 -1
  40. package/dist/nativeMetrics.cjs +1 -1
  41. package/dist/nativeMetrics.cjs.map +1 -1
  42. package/dist/nativeMetrics.js +1 -1
  43. package/dist/nativeMetrics.js.map +1 -1
  44. package/dist/scan.cjs +1 -1
  45. package/dist/scan.cjs.map +1 -1
  46. package/dist/scan.js +1 -1
  47. package/dist/scan.js.map +1 -1
  48. package/dist/thresholdCheck.cjs +1 -1
  49. package/dist/thresholdCheck.cjs.map +1 -1
  50. package/dist/thresholdCheck.d.ts +15 -1
  51. package/dist/thresholdCheck.js +1 -1
  52. package/dist/thresholdCheck.js.map +1 -1
  53. package/dist/thresholds.cjs.map +1 -1
  54. package/dist/thresholds.js.map +1 -1
  55. package/dist/wasmBinding.cjs +1 -1
  56. package/dist/wasmBinding.cjs.map +1 -1
  57. package/dist/wasmBinding.js +1 -1
  58. package/dist/wasmBinding.js.map +1 -1
  59. package/dist/worker.cjs.map +1 -1
  60. package/dist/worker.js.map +1 -1
  61. package/native/Cargo.lock +24 -24
  62. package/native/Cargo.toml +12 -12
  63. package/native/code-gauge.wasm +0 -0
  64. package/package.json +39 -43
package/native/Cargo.toml CHANGED
@@ -22,18 +22,18 @@ rustc-hash = "2"
22
22
  # `willbooster-*` crates are WillBooster's forks of the runtime and grammars. Every grammar crate
23
23
  # depends only on `tree-sitter-language`, never on upstream's `tree-sitter` crate, whose
24
24
  # `links = "tree-sitter"` would conflict with the forked runtime's.
25
- tree-sitter = { package = "willbooster-tree-sitter", version = "1.4.3" }
26
- tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "=4.0.2" }
27
- tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "=3.0.1" }
28
- tree-sitter-cpp = { package = "willbooster-tree-sitter-cpp", version = "=2.0.2" }
29
- tree-sitter-go = { package = "willbooster-tree-sitter-go", version = "=1.0.0" }
30
- tree-sitter-java = { package = "willbooster-tree-sitter-java", version = "=1.0.0" }
31
- tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "=4.0.2" }
32
- tree-sitter-kotlin = { package = "willbooster-tree-sitter-kotlin", version = "=4.0.2" }
33
- tree-sitter-python = { package = "willbooster-tree-sitter-python", version = "=1.0.1" }
34
- tree-sitter-ruby = { package = "willbooster-tree-sitter-ruby", version = "=1.0.0" }
35
- tree-sitter-rust = { package = "willbooster-tree-sitter-rust", version = "=2.0.2" }
36
- tree-sitter-typescript = { package = "willbooster-tree-sitter-typescript", version = "=7.0.0" }
25
+ tree-sitter = { package = "willbooster-tree-sitter", version = "2" }
26
+ tree-sitter-c = { package = "willbooster-tree-sitter-c", version = "=5.0.0" }
27
+ tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "=4.0.0" }
28
+ tree-sitter-cpp = { package = "willbooster-tree-sitter-cpp", version = "=3.0.0" }
29
+ tree-sitter-go = { package = "willbooster-tree-sitter-go", version = "=2.0.0" }
30
+ tree-sitter-java = { package = "willbooster-tree-sitter-java", version = "=2.0.0" }
31
+ tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "=5.0.0" }
32
+ tree-sitter-kotlin = { package = "willbooster-tree-sitter-kotlin", version = "=5.0.0" }
33
+ tree-sitter-python = { package = "willbooster-tree-sitter-python", version = "=2.0.0" }
34
+ tree-sitter-ruby = { package = "willbooster-tree-sitter-ruby", version = "=2.0.0" }
35
+ tree-sitter-rust = { package = "willbooster-tree-sitter-rust", version = "=3.0.0" }
36
+ tree-sitter-typescript = { package = "willbooster-tree-sitter-typescript", version = "=8.0.0" }
37
37
 
38
38
  # The WebAssembly build (src/wasm.rs) exports a plain C ABI instead of N-API.
39
39
  [target.'cfg(not(target_family = "wasm"))'.dependencies]
Binary file
package/package.json CHANGED
@@ -1,37 +1,25 @@
1
1
  {
2
2
  "name": "code-gauge",
3
- "version": "10.2.3",
3
+ "version": "10.3.0",
4
4
  "description": "Measure code metrics with tree-sitter.",
5
5
  "keywords": [
6
6
  "cli",
7
- "tree-sitter",
8
- "metrics",
9
- "loc",
10
7
  "cognitive-complexity",
11
- "ncss",
12
- "duplication",
13
8
  "csharp",
9
+ "duplication",
14
10
  "kotlin",
15
- "refactoring"
11
+ "loc",
12
+ "metrics",
13
+ "ncss",
14
+ "refactoring",
15
+ "tree-sitter"
16
16
  ],
17
+ "license": "Apache-2.0",
18
+ "author": "WillBooster Inc.",
17
19
  "repository": {
18
20
  "type": "git",
19
21
  "url": "git+https://github.com/WillBooster/code-gauge.git"
20
22
  },
21
- "license": "Apache-2.0",
22
- "author": "WillBooster Inc.",
23
- "type": "module",
24
- "exports": {
25
- ".": {
26
- "types": "./dist/index.d.ts",
27
- "workerd": "./dist/worker.js",
28
- "require": "./dist/index.cjs",
29
- "import": "./dist/index.js"
30
- }
31
- },
32
- "main": "dist/index.cjs",
33
- "module": "dist/index.js",
34
- "types": "dist/index.d.ts",
35
23
  "bin": "dist/cli.js",
36
24
  "files": [
37
25
  "dist/",
@@ -43,6 +31,22 @@
43
31
  "scripts/buildNative.mjs",
44
32
  "THIRD-PARTY-NOTICES.txt"
45
33
  ],
34
+ "type": "module",
35
+ "main": "dist/index.cjs",
36
+ "module": "dist/index.js",
37
+ "types": "dist/index.d.ts",
38
+ "exports": {
39
+ ".": {
40
+ "types": "./dist/index.d.ts",
41
+ "workerd": "./dist/worker.js",
42
+ "require": "./dist/index.cjs",
43
+ "import": "./dist/index.js"
44
+ }
45
+ },
46
+ "publishConfig": {
47
+ "access": "public",
48
+ "registry": "https://registry.npmjs.org/"
49
+ },
46
50
  "scripts": {
47
51
  "benchmark": "node scripts/benchmark.mjs",
48
52
  "build": "build-ts lib -i src/index.ts -i src/cli.ts -i src/worker.ts --external ../native/code-gauge.wasm",
@@ -68,37 +72,29 @@
68
72
  "@tsconfig/bun": "1.0.10",
69
73
  "@tsconfig/node-lts": "24.0.0",
70
74
  "@tsconfig/node-ts": "23.6.4",
71
- "@types/bun": "1.4.2",
75
+ "@types/bun": "1.4.3",
72
76
  "@types/node": "25.9.4",
73
- "@willbooster/oxfmt-config": "1.2.2",
74
- "@willbooster/oxlint-config": "1.4.8",
75
- "@willbooster/wb": "22.8.0",
76
- "build-ts": "21.0.19",
77
+ "@willbooster/oxlint-config": "1.4.9",
78
+ "@willbooster/wb": "22.29.3",
79
+ "build-ts": "21.0.29",
77
80
  "conventional-changelog-conventionalcommits": "9.3.1",
78
- "lefthook": "2.1.14",
79
- "oxfmt": "0.68.0",
80
- "oxlint": "1.83.0",
81
- "oxlint-tsgolint": "7.0.2002",
81
+ "lefthook": "2.2.2",
82
+ "oxlint": "1.88.0",
83
+ "oxlint-tsgolint": "7.0.2004",
82
84
  "semantic-release": "25.0.5",
83
- "sort-package-json": "4.0.0",
84
- "typescript": "7.0.2",
85
85
  "vitest": "4.1.9",
86
86
  "wrangler": "4.135.0"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=24"
90
90
  },
91
- "publishConfig": {
92
- "access": "public",
93
- "registry": "https://registry.npmjs.org/"
94
- },
95
91
  "optionalDependencies": {
96
- "code-gauge-linux-x64-gnu": "10.2.3",
97
- "code-gauge-linux-arm64-gnu": "10.2.3",
98
- "code-gauge-linux-x64-musl": "10.2.3",
99
- "code-gauge-linux-arm64-musl": "10.2.3",
100
- "code-gauge-darwin-x64": "10.2.3",
101
- "code-gauge-darwin-arm64": "10.2.3",
102
- "code-gauge-win32-x64-msvc": "10.2.3"
92
+ "code-gauge-linux-x64-gnu": "10.3.0",
93
+ "code-gauge-linux-arm64-gnu": "10.3.0",
94
+ "code-gauge-linux-x64-musl": "10.3.0",
95
+ "code-gauge-linux-arm64-musl": "10.3.0",
96
+ "code-gauge-darwin-x64": "10.3.0",
97
+ "code-gauge-darwin-arm64": "10.3.0",
98
+ "code-gauge-win32-x64-msvc": "10.3.0"
103
99
  }
104
100
  }