apex-code-coverage-transformer 4.2.0 → 4.3.0
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 +7 -0
- package/README.md +8 -3
- package/oclif.manifest.json +1 -1
- package/package.json +23 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
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
|
+
## [4.3.0](https://github.com/mcarvin8/apex-code-coverage-transformer/compare/v4.2.0...v4.3.0) (2026-11-09)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* publish dependency-free apex-code-coverage-transformer-core package ([#441](https://github.com/mcarvin8/apex-code-coverage-transformer/issues/441)) ([76d7f65](https://github.com/mcarvin8/apex-code-coverage-transformer/commit/76d7f650234bac780b22ffeb22728530e3b78375))
|
|
14
|
+
|
|
8
15
|
## [4.2.0](https://github.com/mcarvin8/apex-code-coverage-transformer/compare/v4.1.0...v4.2.0) (2026-11-09)
|
|
9
16
|
|
|
10
17
|
|
package/README.md
CHANGED
|
@@ -196,7 +196,7 @@ EXAMPLES
|
|
|
196
196
|
`sf acc-transformer transform -j "coverage1.json" -j "coverage2.json" -r "coverage.xml" -f "sonar"`
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
-
_See code: [src/commands/acc-transformer/transform.ts](https://github.com/mcarvin8/apex-code-coverage-transformer/blob/v4.
|
|
199
|
+
_See code: [src/commands/acc-transformer/transform.ts](https://github.com/mcarvin8/apex-code-coverage-transformer/blob/v4.3.0/src/commands/acc-transformer/transform.ts)_
|
|
200
200
|
<!-- commandsstop -->
|
|
201
201
|
|
|
202
202
|
## Coverage Report Formats
|
|
@@ -547,12 +547,17 @@ Sample configs: [Salesforce CLI](https://raw.githubusercontent.com/mcarvin8/apex
|
|
|
547
547
|
|
|
548
548
|
## Programmatic Usage
|
|
549
549
|
|
|
550
|
-
Other Node.js tools (CLI plugins, scripts, CI wrappers) can call the transformer directly instead of shelling out to `sf acc-transformer transform`. The
|
|
550
|
+
Other Node.js tools (CLI plugins, scripts, CI wrappers) can call the transformer directly instead of shelling out to `sf acc-transformer transform`. The API is ESM-only and ships in two npm packages, built from the same source and released with the same version:
|
|
551
|
+
|
|
552
|
+
- **`apex-code-coverage-transformer-core`** (recommended for libraries): the API only, with **no runtime dependencies**.
|
|
553
|
+
- **`apex-code-coverage-transformer`**: the Salesforce CLI plugin package, which also exports the API but installs the plugin's dependencies (`@salesforce/core`, `@oclif/core` and others).
|
|
551
554
|
|
|
552
555
|
```bash
|
|
553
|
-
npm install apex-code-coverage-transformer
|
|
556
|
+
npm install apex-code-coverage-transformer-core
|
|
554
557
|
```
|
|
555
558
|
|
|
559
|
+
The examples below import from `apex-code-coverage-transformer`; with the core package, import from `apex-code-coverage-transformer-core` instead. Everything else is identical.
|
|
560
|
+
|
|
556
561
|
```ts
|
|
557
562
|
import { transformCoverage, CoverageError } from 'apex-code-coverage-transformer';
|
|
558
563
|
|
package/oclif.manifest.json
CHANGED
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": "4.
|
|
4
|
+
"version": "4.3.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@oclif/core": "5.1.11",
|
|
7
7
|
"@salesforce/core": "9.4.4",
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
"scripts": {
|
|
89
89
|
"build": "wireit",
|
|
90
90
|
"build:action": "wireit",
|
|
91
|
+
"build:core": "wireit",
|
|
91
92
|
"clean": "wireit",
|
|
92
93
|
"clean:build": "wireit",
|
|
93
94
|
"clean:package-manager": "wireit",
|
|
@@ -145,7 +146,8 @@
|
|
|
145
146
|
"dependencies": [
|
|
146
147
|
"compile",
|
|
147
148
|
"lint",
|
|
148
|
-
"build:action"
|
|
149
|
+
"build:action",
|
|
150
|
+
"build:core"
|
|
149
151
|
]
|
|
150
152
|
},
|
|
151
153
|
"build:action": {
|
|
@@ -162,6 +164,25 @@
|
|
|
162
164
|
],
|
|
163
165
|
"clean": false
|
|
164
166
|
},
|
|
167
|
+
"build:core": {
|
|
168
|
+
"command": "tsc -p tsconfig.core.json && shx cp LICENSE.md packages/core/LICENSE.md && node scripts/verify-core-package.mjs",
|
|
169
|
+
"files": [
|
|
170
|
+
"src/**/*.ts",
|
|
171
|
+
"!src/commands/**",
|
|
172
|
+
"!src/hooks/**",
|
|
173
|
+
"!src/action/**",
|
|
174
|
+
"tsconfig.json",
|
|
175
|
+
"tsconfig.core.json",
|
|
176
|
+
"packages/core/package.json",
|
|
177
|
+
"LICENSE.md",
|
|
178
|
+
"scripts/verify-core-package.mjs"
|
|
179
|
+
],
|
|
180
|
+
"output": [
|
|
181
|
+
"packages/core/lib/**",
|
|
182
|
+
"packages/core/LICENSE.md"
|
|
183
|
+
],
|
|
184
|
+
"clean": true
|
|
185
|
+
},
|
|
165
186
|
"compile": {
|
|
166
187
|
"command": "tsc -p . --pretty --incremental",
|
|
167
188
|
"files": [
|