chore(deps): update dependency jscpd to v5#436
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Collaborator
✅ 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. |
f207fe4 to
c6664b7
Compare
c6664b7 to
3d03e94
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.0.5→^5.0.0Release Notes
kucherenko/jscpd (jscpd)
v5.0.10Compare Source
cpd (Rust) v5.0.10
Bug Fixes
absolute: false(or the default). Previously,jscpd /abs/pathfrom a different CWD left absolute paths in SARIF/JSON/XML/HTML/CSV/Markdown/console output, and Windows/macOS path canonicalization could leave\\?\or./prefixes. Paths are now normalized against the canonicalized scan root (with CWD fallback) and stripped of any leading./or.\\component. Fixes #827--skip-localto match jscpd v4 TypeScript semantics: it now filters clones where both fragments are under the same scan root, instead of only skipping clones in the same parent directoryRefactoring
print_clone_header,print_clone_locations,print_snippet,write_report_file, report statistics, test fixtures, etc.) intocpd-reporter/src/shared.rs. Console, console-full, CSV, JSON, HTML, Markdown, silent, XML, and SARIF reporters now reuse the same implementation, reducing the monorepo's reported duplication ratio from 5.0% to 0.56% and fixing a latent--absolutepath relativization bug in the same passgitoxidetogit blame --porcelain; capture elapsed time after blame so timing includes blame workneedless_borrowclippy warnings in CSV and Markdown reportersDocumentation
https://jscpd.devin allCargo.tomland npmpackage.jsonfiles, add curl install method to READMEs, clean up outdated badgesPublished Packages
cpd-core@0.1.5on crates.iocpd-finder@0.1.8on crates.iocpd-reporter@0.1.7on crates.iocpd-tokenizer@0.1.6on crates.iojscpd@5.0.10on crates.iocpd@5.0.10on npmjscpd@5.0.10on npmcpd-darwin-arm64@​5.0.10on npmcpd-darwin-x64@​5.0.10on npmcpd-linux-x64-gnu@5.0.10on npmcpd-linux-arm64-gnu@5.0.10on npmcpd-linux-x64-musl@5.0.10on npmcpd-windows-x64-msvc@5.0.10on npmInstall
v5.0.9Compare Source
New Features
jscpd-copy-paste-detectoraction for GitHub Actions Marketplace. Scan your repo for copy/paste in CI withuses: kucherenko/jscpd/.github/workflows/action.yml@v5Bug Fixes
cpdis installed as a nested dependency (e.g. in a project'snode_modulesvia a parent package). The runner now correctly locates the platform-specific binary relative to the installed package rather than assuming a top-level install. Fixes #816v5.0.8Compare Source
Bug Fixes
vm.max_map_count(default 131 072 on Linux). The walker previously held a liveMmapper discovered file; each rayon worker now opens and drops its mapping within the processing closure, capping concurrent mappings to the thread-pool size (typically 8–32). Fixes #813--patternnot matching relative paths when the scan root is absolute (e.g. CWD). Patterns likesrc/**/*.tsnow match correctly by comparing against both the relative path and the full absolute path, and bare patterns like*.tsgain a**/prefix to match at any depth. Fixes #811\nnow count the final line correctlyv5.0.7Compare Source
Bug Fixes
test/bundlerwith 320K+ nested for-loops). OXC's recursive-descent parser allocates one stack frame per AST nesting level; pathological inputs now exceed the default 8 MiB thread stack. Fixed by building a local rayonThreadPoolwith 64 MiB stacks instead of using the global pool (which silently fails on re-init)--max-sizeto1mb— files exceeding the limit are skipped at walk time, consistent with jscpd v4'smaxSizebehavior. This prevents OXC from ever seeing megabyte-scale generated files that would overflow the stack--workers Nnow correctly takes effect on everyrun()call (previouslybuild_global()silently no-op'd after the first invocation)v5.0.6Compare Source
New Features
.jscpd.jsonfieldspath,pattern,ignore, andignorePatternare now read and applied, matching jscpd v4 behaviorignoreandignorePatternare now distinct:ignorematches file-level globs,ignorePatternmatches code-level regex patterns (previously conflated).jscpd.jsonpath config support — reads scan directories from thepathfield, resolving relative paths against the config file's directoryjscpdnpm wrapper package — publishes the same Rust binary under thejscpdname on npm with v5.x versioning--exit-codenow matches v4 behavior: accepts optional integer value (--exit-codeexits 1,--exit-code 2exits 2);--thresholdand--exit-codeare now independentmemmap2) eliminates heap copies of file contents; SIMD-accelerated line counting (viamemchr); parallel detection pipeline usesflat_mapto avoid intermediate allocations; JS tokenizer no longer clones source strings before parsing (thanks to @auterium, #808)Bug Fixes
--exit-codeto match jscpd v4's--exitCodebehavior (was boolean, now optional integer)v5.0.5Compare Source
v5.0.4Compare Source
New Features
--absolute,--ignore-case,--formats-exts,--formats-namesflags; fixed--threshold, improved--max-sizeBug Fixes
jscpd-report.htmlat theoutput_dirrootas_nanos()instead ofsubsec_nanos())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.