jscpd-rs 0.1.1 → 0.1.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2 - 2026-06-01
4
+
5
+ ### Changed
6
+
7
+ - Rename the Windows prebuilt npm package to `jscpd-rs-win` to avoid npm
8
+ registry spam-policy false positives on the previous machine-generated name.
9
+ - Move the Linux arm64 prebuilt build to the Ubuntu 22.04 ARM runner for a more
10
+ stable native ARM publication path and older glibc baseline.
11
+ - Allow npm release workflow reruns for a single prebuilt target without
12
+ republishing the already-published main package.
13
+
3
14
  ## 0.1.1 - 2026-06-01
4
15
 
5
16
  ### Added
package/Cargo.lock CHANGED
@@ -483,7 +483,7 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
483
483
 
484
484
  [[package]]
485
485
  name = "jscpd-rs"
486
- version = "0.1.1"
486
+ version = "0.1.2"
487
487
  dependencies = [
488
488
  "anyhow",
489
489
  "axum",
package/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "jscpd-rs"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  edition = "2024"
5
5
  rust-version = "1.93"
6
6
  license = "MIT"
package/README.md CHANGED
@@ -48,7 +48,7 @@ npx jscpd-rs .
48
48
  Current npm packaging note: `jscpd-rs` installs prebuilt Linux, macOS, and
49
49
  Windows binaries where available, then falls back to building from source with
50
50
  Cargo for unsupported platforms. The original `0.1.0` npm package was
51
- source-build only; use `0.1.1+` for the prebuilt-first path. See
51
+ source-build only; use `0.1.2+` for the full prebuilt-first path. See
52
52
  [docs/prebuilt-binaries.md](docs/prebuilt-binaries.md).
53
53
 
54
54
  From this repository:
@@ -127,7 +127,7 @@ These are intentional first-release limits:
127
127
  tokenizer is needed;
128
128
  - the Rust crate exposes a native Rust API, not the upstream JavaScript package
129
129
  API;
130
- - `jscpd-rs@0.1.1+` npm packaging uses prebuilt binaries on supported Linux,
130
+ - `jscpd-rs@0.1.2+` npm packaging uses prebuilt binaries on supported Linux,
131
131
  macOS, and Windows targets, with a Cargo source-build fallback for
132
132
  unsupported platforms. The original `0.1.0` npm package was source-build
133
133
  only.
@@ -192,7 +192,7 @@ npm/npx-based `jscpd-rs` CI:
192
192
  - run: npx jscpd-rs src --reporters console,json --threshold 5 --exitCode 1
193
193
  ```
194
194
 
195
- `jscpd-rs@0.1.1+` npm installs use prebuilt binaries where available and fall
195
+ `jscpd-rs@0.1.2+` npm installs use prebuilt binaries where available and fall
196
196
  back to Cargo source-build on unsupported platforms. The original `0.1.0` npm
197
197
  package still needs Rust available during installation; see the
198
198
  [prebuilt binary distribution plan](prebuilt-binaries.md).
@@ -19,7 +19,7 @@ The npm package is `jscpd-rs`. It exposes these bin commands:
19
19
  - `jscpd`: installed alias for the native `jscpd` CLI.
20
20
  - `jscpd-server`: installed alias for the native server binary.
21
21
 
22
- `jscpd-rs@0.1.1+` publishes prebuilt platform packages before the main
22
+ `jscpd-rs@0.1.2+` publishes prebuilt platform packages before the main
23
23
  `jscpd-rs` package. The CLI behavior stays the same, and the source-build path
24
24
  remains the fallback for unsupported platforms. The original `0.1.0` package
25
25
  was source-build only; see the
@@ -1,6 +1,6 @@
1
1
  # Prebuilt Binary Distribution
2
2
 
3
- `jscpd-rs` is a native Rust CLI. Starting with `jscpd-rs@0.1.1`, npm
3
+ `jscpd-rs` is a native Rust CLI. Starting with `jscpd-rs@0.1.2`, npm
4
4
  distribution uses a small main package plus platform-specific optional
5
5
  packages. The original `0.1.0` npm package was source-build only.
6
6
 
@@ -28,10 +28,10 @@ The target matrix is defined in `npm/prebuilt-targets.json`.
28
28
  | Package | Rust target | Runner |
29
29
  | --- | --- | --- |
30
30
  | `jscpd-rs-linux-x64-gnu` | `x86_64-unknown-linux-gnu` | `ubuntu-24.04` |
31
- | `jscpd-rs-linux-arm64-gnu` | `aarch64-unknown-linux-gnu` | `ubuntu-24.04-arm` |
31
+ | `jscpd-rs-linux-arm64-gnu` | `aarch64-unknown-linux-gnu` | `ubuntu-22.04-arm` |
32
32
  | `jscpd-rs-darwin-x64` | `x86_64-apple-darwin` | `macos-15-intel` |
33
33
  | `jscpd-rs-darwin-arm64` | `aarch64-apple-darwin` | `macos-15` |
34
- | `jscpd-rs-win32-x64-msvc` | `x86_64-pc-windows-msvc` | `windows-2025` |
34
+ | `jscpd-rs-win` | `x86_64-pc-windows-msvc` | `windows-2025` |
35
35
 
36
36
  Consider Linux musl and Windows arm64 only after install data or user reports
37
37
  show demand.
@@ -83,7 +83,7 @@ Packages:
83
83
  - `jscpd-rs-linux-arm64-gnu`
84
84
  - `jscpd-rs-darwin-x64`
85
85
  - `jscpd-rs-darwin-arm64`
86
- - `jscpd-rs-win32-x64-msvc`
86
+ - `jscpd-rs-win`
87
87
 
88
88
  If a temporary npm token is used for the first platform-package bootstrap,
89
89
  revoke it after Trusted Publishing succeeds.
@@ -36,7 +36,7 @@ current implementation status.
36
36
  | Terminal cosmetics | practical parity | Important messages are gated; exact wrapping/order remains lower priority. |
37
37
  | Upstream JavaScript API parity | follow-up | Native Rust helpers cover the practical app/tokenizer/detector/statistics/store concepts, including an embeddable argv runner and tokenizer map generation; exact JS package export shape is not implemented in the Rust crate. See `docs/api-parity.md`. |
38
38
  | Server snippet matching | optimized baseline | Native `/api/check` and MCP `check_duplication` are functional and reuse project token maps from the last scan; add a dedicated window index only if real server benchmarks require it. |
39
- | Npm prebuilt binaries | ready for 0.1.1 | Platform-specific optional package metadata, runtime prebuilt resolution, prebuilt/fallback package checks, and GitHub Release publishing automation are wired for `jscpd-rs@0.1.1+`. See the [prebuilt binary distribution plan](prebuilt-binaries.md). |
39
+ | Npm prebuilt binaries | ready for 0.1.2 | Platform-specific optional package metadata, runtime prebuilt resolution, prebuilt/fallback package checks, and GitHub Release publishing automation are wired for `jscpd-rs@0.1.2+`. See the [prebuilt binary distribution plan](prebuilt-binaries.md). |
40
40
  | Latest full publication gate | ready | `scripts/prepublish-check.sh` passed locally on code commit `8c3da0e`, including `scripts/release-candidate.sh`, package/install verification, crate/tag availability checks, npm package/name/npx verification, and `cargo publish --dry-run --locked`. GitHub Actions default `release-gate` passed on code commit `8c3da0e` in run `26710762680`. After benchmark documentation updates, `RUN_RELEASE_CANDIDATE=0 scripts/prepublish-check.sh` is the package/dry-run refresh gate for the exact package contents being tagged. |
41
41
 
42
42
  ## Post-MVP
@@ -29,7 +29,7 @@ npm install -g jscpd-rs
29
29
  npx jscpd-rs --version
30
30
  ```
31
31
 
32
- `jscpd-rs@0.1.1+` installs prebuilt Linux, macOS, and Windows binaries where
32
+ `jscpd-rs@0.1.2+` installs prebuilt Linux, macOS, and Windows binaries where
33
33
  available and falls back to building from source with Cargo for unsupported
34
34
  platforms. The original `0.1.0` npm package was source-build only. See the
35
35
  [prebuilt binary distribution plan](prebuilt-binaries.md).
@@ -15,7 +15,7 @@
15
15
  "cpu": "arm64",
16
16
  "libc": "glibc",
17
17
  "rustTarget": "aarch64-unknown-linux-gnu",
18
- "runner": "ubuntu-24.04-arm"
18
+ "runner": "ubuntu-22.04-arm"
19
19
  },
20
20
  "darwin-x64": {
21
21
  "packageName": "jscpd-rs-darwin-x64",
@@ -34,8 +34,8 @@
34
34
  "runner": "macos-15"
35
35
  },
36
36
  "win32-x64-msvc": {
37
- "packageName": "jscpd-rs-win32-x64-msvc",
38
- "description": "Prebuilt Windows x64 MSVC binaries for jscpd-rs",
37
+ "packageName": "jscpd-rs-win",
38
+ "description": "Prebuilt Windows x64 binaries for jscpd-rs",
39
39
  "os": "win32",
40
40
  "cpu": "x64",
41
41
  "rustTarget": "x86_64-pc-windows-msvc",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jscpd-rs",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "50x+ faster duplicate-code detector for CI/CD; jscpd-compatible CLI, SARIF, JSON, HTML reports",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,11 +28,11 @@
28
28
  "cli"
29
29
  ],
30
30
  "optionalDependencies": {
31
- "jscpd-rs-darwin-arm64": "0.1.1",
32
- "jscpd-rs-darwin-x64": "0.1.1",
33
- "jscpd-rs-linux-arm64-gnu": "0.1.1",
34
- "jscpd-rs-linux-x64-gnu": "0.1.1",
35
- "jscpd-rs-win32-x64-msvc": "0.1.1"
31
+ "jscpd-rs-darwin-arm64": "0.1.2",
32
+ "jscpd-rs-darwin-x64": "0.1.2",
33
+ "jscpd-rs-linux-arm64-gnu": "0.1.2",
34
+ "jscpd-rs-linux-x64-gnu": "0.1.2",
35
+ "jscpd-rs-win": "0.1.2"
36
36
  },
37
37
  "bin": {
38
38
  "jscpd-rs": "npm/bin/jscpd-rs.js",
package/src/lib.rs CHANGED
@@ -1,4 +1,4 @@
1
- #![doc(html_root_url = "https://docs.rs/jscpd-rs/0.1.1")]
1
+ #![doc(html_root_url = "https://docs.rs/jscpd-rs/0.1.2")]
2
2
 
3
3
  //! Native Rust API for `jscpd-rs`, a 50x+ faster duplicate-code detector for
4
4
  //! local development and CI/CD.