chore(deps): update dependency jscpd to v4.3.0 - #418
renovate[bot] wants to merge 1 commit into
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
75d0689 to
7d39f3c
Compare
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
7d39f3c to
7a6f7c5
Compare
7a6f7c5 to
7118d63
Compare
7f9b558 to
84c065a
Compare
84c065a to
e9ba546
Compare
e9ba546 to
945bd45
Compare
945bd45 to
0fb072c
Compare
f606644 to
a9c010e
Compare
a9c010e to
bdb8ebd
Compare
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
bdb8ebd to
141ae82
Compare
This PR contains the following updates:
4.0.8→4.3.0Release Notes
kucherenko/jscpd (jscpd)
v4.3.0Compare Source
New Features
--colors/--no-colorsflags and acolorsconfig key to override. Precedence: explicit flag/config →FORCE_COLOR→NO_COLOR→ TTY detection. The statistics table is covered too. (#893, #899)--allowed-origin/--allowed-host) on both/mcpand the REST API, a loopback default bind (127.0.0.1), and a hardened start/stop lifecycle. (#902)Bug Fixes
ai,consoleFull); jscpd-server shares the same wiring. (#900)NO_COLOR/FORCE_COLORand TTY detection like the CLI.Security
pnpm-workspace.yaml, where pnpm 10 actually reads them. CI installs use--frozen-lockfileso lockfile drift fails loudly.Thank You ❤️
This release was shaped by community contributions — huge thanks to:
v4.2.5Compare Source
Bug Fixes
tokenswas always reported as0in JSON output; now computed from token positions (end.position - start.position) (#801)..gitignorefiles in parent directories up to the repo root are now read and combined with scan-directory.gitignorefiles. Also reads.git/info/excludeand the globalcore.excludesFilefor full parity with Git's ignore resolution (#741).cli.minTokens, etc.) to thecli.opts()API required by Commander v8+. The--no-gitignore/--gitignoreflag handling was rewritten to use Commander's native negation support instead ofrawArgsinspection.v4.2.4Compare Source
v4.2.3Compare Source
v4.2.2Compare Source
v4.2.1Compare Source
v4.2.0Compare Source
Breaking Changes
.vuefiles are no longer tokenized asmarkup. Each block is now dispatched to its own sub-format:<script>→javascript,<script lang="ts">→typescript,<template>→markup,<style>→css,<style lang="scss">→scss,<style lang="less">→less. Clone reports for.vuefiles now appear under these resolved sub-format names. Any tooling or configuration that relied on.vueclones being reported undermarkupmust be updated.--formatsExtsusers — custom mappings that pointed.vuetomarkup(e.g."formatsExts": { "markup": ["vue"] }) will no longer take effect because.vueis handled by the dedicatedvueformat processor. Remove or update such mappings.New Features
prismjsnpm package with a self-contained reprism-based grammar engine. ~11.5% faster tokenization on real projects (avg 1126 ms → 997 ms on a 548-file, 223-format scan)..vue), Svelte (.svelte), Astro (.astro), and Markdown files are now tokenized per-block/per-section. A<script>block in a.vuefile can match a.tsfile; a fenced code block in Markdown can match a.pyfile./usr/bin/env python3) are auto-detected by their#!shebang line and tokenized in the correct language.--store-path— configure a custom directory for the LevelDB cache, eliminating collisions when multiple jscpd processes run in parallel on the same machine.--skipComments— shorthand flag for--mode weak, which strips comments before detection.--formats-names— map specific filenames (e.g.Makefile,Dockerfile) to a detection format.Bug Fixes
@jscpd/core#728) — RabinKarp flushed the pending clone on a store hit at end-of-file instead of on a miss. Files that are complete copies of each other were undetected. Fixed.@jscpd/tokenizer#737) — the Lisp string regex/"(?:[^"\\]*|\\.)*"/could catastrophically backtrack (O(2ⁿ)) on unterminated strings. Replaced with a linear/"(?:[^"\\]|\\[\s\S])*"/pattern.package.json(#739) —readJSONSyncthrew an unhandledSyntaxErrorwhenpackage.jsoncontained invalid JSON, killing the process. Now emits a warning and continues with an empty config.vue) as the store namespace for all SFC blocks, preventing a<script>block in one.vuefile from ever matching a<script>block in another. The namespace now reflects each block's resolved sub-format.@jscpd/tokenizer.Known Limitations
v4.1.1Compare Source
v4.1.0Compare Source
New Features
aireporter that produces compact, token-efficient clone output specifically designed for feeding results into language models and AI tooling. Use--reporters aito activate it.jscpd://statisticsresource and supports a recheck endpoint so AI agents can trigger a rescan without restarting the process.--noTipsflag — suppress the usage-tip messages that appear after a detection run.Performance
spark-md5dependency has been removed in favour of a lighter built-in implementation. Startup time and memory usage are noticeably reduced on large codebases.reprismsyntax library with the officialprismjsnpm package, shrinking the installed footprint.Bug Fixes
start.lineexpectation for weak-mode clone detection.v4.0.9Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.