Skip to content

Commit 6ba6f0d

Browse files
Claudeclaude
authored andcommitted
fix: remove dead @huggingface/transformers dep, add CI dependency audit
@huggingface/transformers was a runtime dependency never imported anywhere in the source — embedding service uses raw fetch() to OpenAI/OpenRouter/Ollama. This massive package (ONNX runtime + model files) bloated every install since initial release through 15+ versions without detection. Added depcheck to CI pipeline so unused dependencies fail the build. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 80ff427 commit 6ba6f0d

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939
- name: Smoke test (free tier)
4040
run: npm run test:smoke:free
4141

42+
- name: Dependency audit (no unused deps)
43+
run: npx depcheck --ignores="@types/*" --json | node -e "const d=JSON.parse(require('fs').readFileSync('/dev/stdin','utf8')); const unused=d.dependencies||[]; if(unused.length){console.error('Unused dependencies:',unused);process.exit(1)}"
44+
4245
publish:
4346
needs: build
4447
runs-on: ubuntu-latest

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.1.1] - 2026-02-17
11+
12+
### Removed
13+
- **Dead dependency `@huggingface/transformers`**: Massive package (ONNX runtime + model files) was declared as a runtime dependency but never imported anywhere. Embedding service uses raw `fetch()` to external APIs. Shipped unused since initial release, bloating every `npx gitmem-mcp` install.
14+
15+
### Added
16+
- **CI dependency audit**: `depcheck` now runs in CI pipeline. Unused runtime dependencies will fail the build. This gap allowed the dead dependency to ship through 15+ versions undetected.
17+
1018
## [1.1.0] - 2026-02-17
1119

1220
### Added

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitmem-mcp",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Institutional memory for AI coding agents. Memory that compounds.",
55
"type": "module",
66
"main": "dist/index.js",
@@ -28,7 +28,6 @@
2828
"release-status": "bash scripts/release-status.sh"
2929
},
3030
"dependencies": {
31-
"@huggingface/transformers": "^3.0.0",
3231
"@modelcontextprotocol/sdk": "^1.0.0",
3332
"uuid": "^9.0.0",
3433
"zod": "^3.22.0"

0 commit comments

Comments
 (0)