apex-code-coverage-transformer 3.1.10 → 3.1.12

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
@@ -5,6 +5,23 @@
5
5
 
6
6
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
7
7
 
8
+ ## [3.1.12](https://github.com/mcarvin8/apex-code-coverage-transformer/compare/v3.1.11...v3.1.12) (2026-10-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** bump fast-uri from 3.1.8 to 3.1.9 ([#423](https://github.com/mcarvin8/apex-code-coverage-transformer/issues/423)) ([dd33d19](https://github.com/mcarvin8/apex-code-coverage-transformer/commit/dd33d19875f5965a261f1275d5b29525e2b0ad60))
14
+ * **deps:** bump qs from 6.15.3 to 6.17.0 ([#420](https://github.com/mcarvin8/apex-code-coverage-transformer/issues/420)) ([9d5eaee](https://github.com/mcarvin8/apex-code-coverage-transformer/commit/9d5eaee4b2de35048074d73198bd71a0f736609d))
15
+ * **deps:** bump undici ([#421](https://github.com/mcarvin8/apex-code-coverage-transformer/issues/421)) ([1d78985](https://github.com/mcarvin8/apex-code-coverage-transformer/commit/1d789851876821f9f595e24dd2ed3c143f7f4889))
16
+ * **deps:** bump zod from 4.4.3 to 4.6.7 ([#424](https://github.com/mcarvin8/apex-code-coverage-transformer/issues/424)) ([649c403](https://github.com/mcarvin8/apex-code-coverage-transformer/commit/649c4039795b4551e7445a42c06e8d34f9dccae7))
17
+
18
+ ## [3.1.11](https://github.com/mcarvin8/apex-code-coverage-transformer/compare/v3.1.10...v3.1.11) (2026-10-12)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **deps:** bump fast-copy from 3.0.2 to 3.1.0 ([#413](https://github.com/mcarvin8/apex-code-coverage-transformer/issues/413)) ([58e12e9](https://github.com/mcarvin8/apex-code-coverage-transformer/commit/58e12e90b69cdbb7e63e53bacf92c06e3d842aaa))
24
+
8
25
  ## [3.1.10](https://github.com/mcarvin8/apex-code-coverage-transformer/compare/v3.1.9...v3.1.10) (2026-10-12)
9
26
 
10
27
 
package/README.md CHANGED
@@ -9,6 +9,9 @@
9
9
 
10
10
  Transforms (and optionally merges) Apex code coverage JSON from Salesforce deployments or test runs into formats used by SonarQube, Codecov, GitHub, GitLab, Azure DevOps, Bitbucket, and other tools, keeping coverage visible across pull requests, CI/CD pipelines, and code quality platforms. Available as a **Salesforce CLI plugin** for any provider, and as a **native GitHub Action** for GitHub Actions users who want to skip installing the CLI.
11
11
 
12
+ > [!WARNING]
13
+ > **Note:** Salesforce deploy command coverage reports contain a known bug where covered lines can be reported beyond the end of a file. This plugin automatically re-numbers those lines to keep deploy coverage accurate. Salesforce API v68.0 is expected to resolve the bug; the fix is kept in place for API v67.0 and earlier. Test-command coverage is unaffected. See [Troubleshooting](#troubleshooting) for details.
14
+
12
15
  <details>
13
16
  <summary>Table of Contents</summary>
14
17
 
@@ -63,19 +66,18 @@ It still needs the checkout to contain `sfdx-project.json` (same as the CLI's [P
63
66
 
64
67
  ```bash
65
68
  sf apex run test --code-coverage --output-dir "coverage"
69
+ # Creates code coverage file here: coverage/test-result-codecoverage.json
66
70
  ```
67
71
 
68
72
  From deploy/validate:
69
73
 
70
74
  ```bash
71
75
  sf project deploy start --coverage-formatters json --results-dir "coverage"
72
- # or: sf project deploy validate --coverage-formatters json --results-dir "coverage"
76
+ # Creates code coverage file here: coverage/coverage/coverage.json
73
77
  ```
74
78
 
75
79
  2. **Transform to your target format**
76
80
 
77
- Test output → `coverage/test-result-codecoverage.json`. Deploy output → `coverage/coverage/coverage.json`.
78
-
79
81
  ```bash
80
82
  # SonarQube
81
83
  sf acc-transformer transform -j "coverage/test-result-codecoverage.json" -r "coverage.xml" -f "sonar"
@@ -192,7 +194,7 @@ EXAMPLES
192
194
  `sf acc-transformer transform -j "coverage1.json" -j "coverage2.json" -r "coverage.xml" -f "sonar"`
193
195
  ```
194
196
 
195
- _See code: [src/commands/acc-transformer/transform.ts](https://github.com/mcarvin8/apex-code-coverage-transformer/blob/v3.1.10/src/commands/acc-transformer/transform.ts)_
197
+ _See code: [src/commands/acc-transformer/transform.ts](https://github.com/mcarvin8/apex-code-coverage-transformer/blob/v3.1.12/src/commands/acc-transformer/transform.ts)_
196
198
  <!-- commandsstop -->
197
199
 
198
200
  ## Coverage Report Formats
@@ -587,7 +589,9 @@ Error (1): sfdx-project.json not found in any parent directory.
587
589
  Error (1): ENOENT: no such file or directory: {packageDir}
588
590
  ```
589
591
 
590
- **Deploy coverage line numbers** — The Salesforce CLI deploy coverage JSON contains known out-of-range line numbers. This plugin corrects them automatically by re-numbering covered lines; uncovered lines are unaffected. Test-command coverage is unaffected. See [forcedotcom/salesforcedx-vscode#5511](https://github.com/forcedotcom/salesforcedx-vscode/issues/5511) and [forcedotcom/cli#1568](https://github.com/forcedotcom/cli/issues/1568).
592
+ **Deploy coverage line numbers** — Salesforce deploy command coverage reports contain known out-of-range line numbers, regardless of the coverage format requested from the Salesforce CLI. This plugin corrects them automatically by re-numbering covered lines; uncovered lines are unaffected. Test-command coverage is unaffected. See [forcedotcom/salesforcedx-vscode#5511](https://github.com/forcedotcom/salesforcedx-vscode/issues/5511) and [forcedotcom/cli#1568](https://github.com/forcedotcom/cli/issues/1568).
593
+
594
+ Salesforce API v68.0 is expected to resolve the out-of-range line numbers in deploy coverage. The re-numbering logic is kept intact for compatibility with API v67.0 and earlier. It only acts on covered lines beyond the end of a file, so when deploy coverage contains no out-of-range lines, it makes no changes.
591
595
 
592
596
  To see each remapping, set `SF_LOG_LEVEL=debug` before running the command - each remapped line prints directly to the terminal:
593
597
 
@@ -131,5 +131,5 @@
131
131
  ]
132
132
  }
133
133
  },
134
- "version": "3.1.10"
134
+ "version": "3.1.12"
135
135
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apex-code-coverage-transformer",
3
3
  "description": "Transform Salesforce Apex code coverage JSON for SonarQube, SonarCloud, GitHub, GitLab, Azure, and Bitbucket",
4
- "version": "3.1.10",
4
+ "version": "3.1.12",
5
5
  "dependencies": {
6
6
  "@oclif/core": "5.1.2",
7
7
  "@salesforce/core": "9.2.0",