@reportforge/playwright-pdf 0.2.2 → 0.3.1
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 +24 -0
- package/README.md +3 -0
- package/dist/demo/cli.js +11558 -0
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +60 -53
- package/dist/index.mjs +60 -53
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
5
5
|
|
|
6
|
+
## [0.3.1] — 2026-06-09
|
|
7
|
+
|
|
8
|
+
### Security
|
|
9
|
+
|
|
10
|
+
- **License gate hardened in `PdfGenerator`** — JWT verification is now enforced at the PDF generator boundary, not only in the reporter entry point. Real licenses require a valid Ed25519-signed JWT (verified against the bundled public key) with a non-expired `exp` claim checked directly from the JWT payload.
|
|
11
|
+
- **`DEMO_LICENSE_INFO` no longer exported** — the demo fixture constant is now module-private; not accessible via deep import from the published package.
|
|
12
|
+
- **Compile-time demo flag** — the demo CLI bypass (`reportforge-demo`) is gated on a tsup `define` constant (`__RF_IS_DEMO__`) baked into `dist/demo/cli.js` at build time. The main library (`dist/pdf/PdfGenerator.js`) has the flag set to `false` and cannot be bypassed by constructing a `LicenseInfo` with `source: 'demo'` at runtime.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## [0.3.0] — 2026-06-08
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- **`reportforge-demo` instant demo report** — run `npx @reportforge/playwright-pdf reportforge-demo` to generate a realistic sample PDF in under 60 seconds with no license key required. Supports `--template=minimal|detailed|executive` and `--output=<path>`. Lets evaluators see the exact report ReportForge produces before subscribing.
|
|
21
|
+
- **`reportforge-demo` bin wired in `package.json`** — available immediately after `npm install`; no global install required via `npx`.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- `src/collector/stats-utils.ts` (new) — `statsFromTests` and `aggregateStats` extracted from `SuiteWalker` and `ShardMerger` to a shared utility; eliminates 3-way duplication.
|
|
26
|
+
- GitHub Actions pinned to commit SHAs (supply-chain hardening).
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
6
30
|
## [0.0.1] — 2026-05-26
|
|
7
31
|
|
|
8
32
|
### Changed
|
package/README.md
CHANGED
|
@@ -51,6 +51,7 @@ Three templates, one reporter. Every PDF is fully offline — fonts, charts, and
|
|
|
51
51
|
- **Self-contained PDFs** — screenshots, fonts, logos all embedded; share or archive with confidence
|
|
52
52
|
- **Custom branding** — logo, primary/accent colours, watermark, PDF password encryption
|
|
53
53
|
- **Dynamic filenames** — `{date}`, `{branch}`, `{status}` tokens in the output path
|
|
54
|
+
- **Instant demo report** — `npx @reportforge/playwright-pdf reportforge-demo` generates a realistic sample PDF before subscribing — no license key required
|
|
54
55
|
- **CI/CD snippets** — GitHub Actions, GitLab CI, Bitbucket Pipelines, Jenkins, Azure DevOps
|
|
55
56
|
- **Shard merging** — combine N Playwright JSON shard reports into one PDF via `shardResults`; accepts glob patterns or explicit paths
|
|
56
57
|
- **Notifications** — post pass/fail summaries to Slack, Teams, Discord, or email after each run; configurable trigger (`always` / `failure` / `success`) per channel; email supports optional PDF attachment via `attachPdf`
|
|
@@ -88,6 +89,8 @@ npx playwright test
|
|
|
88
89
|
# → reports/2026-05-01-main-failed.pdf
|
|
89
90
|
```
|
|
90
91
|
|
|
92
|
+
> **See it first.** Run `npx @reportforge/playwright-pdf reportforge-demo` to generate a realistic sample PDF in under 60 seconds — no license key required. Supports `--template=minimal|detailed|executive` and `--output=<path>`.
|
|
93
|
+
|
|
91
94
|
> **License required.** Start a **[7-day free trial at reportforge.org/pricing](https://reportforge.org/pricing)** — card required, no charge until day 8. Paste the resulting `RFSU-…` key into `RF_LICENSE_KEY`. Without a valid license the reporter logs a warning and skips PDF generation; your Playwright tests still run normally.
|
|
92
95
|
|
|
93
96
|
---
|