- Bug fixes: JSON reporter duplicate token counts, gitignore parent-directory walk, and Commander v15 migration
- Updated dependencies
- @jscpd/core@4.2.5
- @jscpd/finder@4.2.5
- @jscpd/tokenizer@4.2.5
- @jscpd/html-reporter@4.2.5
- jscpd-sarif-reporter@4.2.5
- Features
- detectClonesAndStatistic() API — new function returning both clone results and statistics in one call; also exposes an optional statisticProvider injection point on detectClones. Closes #536, #549. Bug Fixes
- .gitignore not respected by default — gitignore option now defaults to true; patterns are read from every scanned directory (not just process.cwd()); fix applies to both CLI and programmatic API. Use --no-gitignore to opt out. Fixes #790.
- .gitignore negation patterns silently dropped — negated patterns (!test.js, !src/**, etc.) were discarded instead of being passed to fast-glob. Fixes #723. Documentation
- Document path option in .jscpd.json and package.json config examples. (#717)
- Add Gitignore option section to README with CLI examples, config snippet, and default/type reference.
- Add detectClonesAndStatistic API example to README.
- Updated dependencies
- @jscpd/core@4.2.4
- @jscpd/finder@4.2.4
- @jscpd/html-reporter@4.2.4
- jscpd-sarif-reporter@4.2.4
- @jscpd/tokenizer@4.2.4
- fix(finder): resolve relative ignore patterns against scan dirs (#611)
- Updated dependencies
- @jscpd/core@4.2.3
- @jscpd/finder@4.2.3
- @jscpd/html-reporter@4.2.3
- jscpd-sarif-reporter@4.2.3
- @jscpd/tokenizer@4.2.3
- fix(tokenizer): resolve quadratic bash tokenization hang
- Updated dependencies
- @jscpd/core@4.2.2
- @jscpd/finder@4.2.2
- @jscpd/html-reporter@4.2.2
- jscpd-sarif-reporter@4.2.2
- @jscpd/tokenizer@4.2.2
- fix tokenization issue for cross formats detection
- Updated dependencies
- @jscpd/core@4.2.1
- @jscpd/finder@4.2.1
- @jscpd/html-reporter@4.2.1
- jscpd-sarif-reporter@4.2.1
- @jscpd/tokenizer@4.2.1
--store-pathsupport — the server now accepts astorePathoption to configure a custom LevelDB cache directory, consistent with thejscpdCLI. Useful when running multiple server instances or integrating with CI environments that run parallel scans.
- Process crash on malformed
package.json(#739) — invalid JSON in the project'spackage.jsonthrew an unhandledSyntaxErrorthat killed the server process. The server now emits a warning and continues with an empty config.
@jscpd/core→ 4.2.0@jscpd/finder→ 4.2.0@jscpd/html-reporter→ 4.2.0@jscpd/tokenizer→ 4.2.0jscpd-sarif-reporter→ 4.2.0
- Update hash function, improve performance and keep browser support
- Updated dependencies
- @jscpd/core@4.1.1
- @jscpd/finder@4.1.1
- @jscpd/html-reporter@4.1.1
- jscpd-sarif-reporter@4.1.1
- @jscpd/tokenizer@4.1.1
An HTTP server that exposes jscpd's copy-paste detection as a RESTful API. Ideal for IDE plugins, CI services, and web dashboards that need on-demand duplicate analysis without launching a CLI process for every request.
4.1.0 — 2026-05-09
- MCP server enhancements — the Model Context Protocol (MCP) server now exposes a
jscpd://statisticsresource endpoint, allowing AI agents and MCP-compatible clients to query duplication statistics directly. - Recheck endpoint — a new API endpoint lets clients trigger a rescan of the codebase without restarting the server process. Useful for long-running server instances where the codebase changes over time.
- CI now tests against Node.js 22.x and 24.x.
@jscpd/core→ 4.1.0@jscpd/finder→ 4.1.0@jscpd/html-reporter→ 4.1.0@jscpd/tokenizer→ 4.1.0jscpd-sarif-reporter→ 4.1.0
4.0.9 — 2026-04-10
- Aligned with the AI reporter release.
@jscpd/core→ 4.0.5@jscpd/finder→ 4.0.5@jscpd/html-reporter→ 4.0.5@jscpd/tokenizer→ 4.0.5jscpd-sarif-reporter→ 4.0.7
4.0.8 — 2026-01-30
- MCP protocol server — the server now implements the Model Context Protocol, enabling AI agents (such as those built with Claude, GPT, or other MCP-compatible clients) to interact with jscpd programmatically. Includes an icon-menu toggle in the web UI.
@jscpd/core→ 4.0.4@jscpd/finder→ 4.0.4@jscpd/html-reporter→ 4.0.4@jscpd/tokenizer→ 4.0.4jscpd-sarif-reporter→ 4.0.6
4.0.7 — 2026-01-11
- Fixed a build output issue.
@jscpd/core→ 4.0.3@jscpd/finder→ 4.0.3@jscpd/html-reporter→ 4.0.3@jscpd/tokenizer→ 4.0.3jscpd-sarif-reporter→ 4.0.5
4.0.6 — 2026-01-11
First release of jscpd-server. Provides a RESTful HTTP API for code-duplication detection built on top of the jscpd engine.
Key endpoints (initial release):
POST /detect— submit a path or code snippet for duplicate analysis.GET /report— retrieve the latest detection results.
To start the server:
npx jscpd-server@jscpd/core→ 4.0.2@jscpd/finder→ 4.0.2@jscpd/html-reporter→ 4.0.2@jscpd/tokenizer→ 4.0.2jscpd-sarif-reporter→ 4.0.4