@flakiness/sdk 0.155.0 → 1.0.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/README.md +6 -10
- package/lib/browser.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ The Flakiness SDK provides a comprehensive set of tools for creating and managin
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm i @flakiness/sdk
|
|
8
|
+
npm i @flakiness/sdk @flakiness/flakiness-report
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
@@ -13,11 +13,11 @@ npm i @flakiness/sdk
|
|
|
13
13
|
Here's a minimal example of creating a Flakiness JSON Report:
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
GitWorktree,
|
|
19
|
-
ReportUtils,
|
|
20
|
-
writeReport,
|
|
16
|
+
import { FlakinessReport } from '@flakiness/flakiness-report';
|
|
17
|
+
import {
|
|
18
|
+
GitWorktree,
|
|
19
|
+
ReportUtils,
|
|
20
|
+
writeReport,
|
|
21
21
|
uploadReport,
|
|
22
22
|
CIUtils
|
|
23
23
|
} from '@flakiness/sdk';
|
|
@@ -71,16 +71,12 @@ The main entry point for Node.js environments. Provides full access to all SDK f
|
|
|
71
71
|
### `@flakiness/sdk/browser`
|
|
72
72
|
|
|
73
73
|
A browser-compatible entry point with a subset of utilities that work in browser environments. Exports:
|
|
74
|
-
- `FlakinessReport` - Type definitions for the report format
|
|
75
74
|
- `ReportUtils` - Browser-safe utilities (normalizeReport, stripAnsi, visitTests)
|
|
76
75
|
|
|
77
76
|
Use this entry point when you need to process or manipulate reports in browser-based tools or web applications.
|
|
78
77
|
|
|
79
78
|
## Top-Level Exports
|
|
80
79
|
|
|
81
|
-
### Report Type & Validation
|
|
82
|
-
- **`FlakinessReport`** - Type definitions and validation for the [Flakiness JSON Report](https://github.com/flakiness/flakiness-report) format
|
|
83
|
-
|
|
84
80
|
### Building Reports
|
|
85
81
|
- **`CIUtils`** - Utilities to extract CI/CD information (run URLs, environment detection)
|
|
86
82
|
- **`GitWorktree`** - Git repository utilities for path conversion and commit information
|
package/lib/browser.js
CHANGED
|
@@ -4,7 +4,7 @@ var __export = (target, all) => {
|
|
|
4
4
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
// node_modules/@flakiness/flakiness-report/lib/flakinessReport.js
|
|
7
|
+
// node_modules/.pnpm/@flakiness+flakiness-report@0.22.0/node_modules/@flakiness/flakiness-report/lib/flakinessReport.js
|
|
8
8
|
var FlakinessReport;
|
|
9
9
|
((FlakinessReport22) => {
|
|
10
10
|
FlakinessReport22.CATEGORY_PLAYWRIGHT = "playwright";
|
|
@@ -12,7 +12,7 @@ var FlakinessReport;
|
|
|
12
12
|
FlakinessReport22.CATEGORY_JUNIT = "junit";
|
|
13
13
|
})(FlakinessReport || (FlakinessReport = {}));
|
|
14
14
|
|
|
15
|
-
// node_modules/@flakiness/flakiness-report/lib/schema.js
|
|
15
|
+
// node_modules/.pnpm/@flakiness+flakiness-report@0.22.0/node_modules/@flakiness/flakiness-report/lib/schema.js
|
|
16
16
|
import z from "zod/v4";
|
|
17
17
|
var Schema;
|
|
18
18
|
((Schema2) => {
|
package/lib/index.js
CHANGED
|
@@ -775,7 +775,7 @@ function computeTestId(test, suiteId) {
|
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
777
|
|
|
778
|
-
// node_modules/@flakiness/flakiness-report/lib/flakinessReport.js
|
|
778
|
+
// node_modules/.pnpm/@flakiness+flakiness-report@0.22.0/node_modules/@flakiness/flakiness-report/lib/flakinessReport.js
|
|
779
779
|
var FlakinessReport;
|
|
780
780
|
((FlakinessReport22) => {
|
|
781
781
|
FlakinessReport22.CATEGORY_PLAYWRIGHT = "playwright";
|
|
@@ -783,7 +783,7 @@ var FlakinessReport;
|
|
|
783
783
|
FlakinessReport22.CATEGORY_JUNIT = "junit";
|
|
784
784
|
})(FlakinessReport || (FlakinessReport = {}));
|
|
785
785
|
|
|
786
|
-
// node_modules/@flakiness/flakiness-report/lib/schema.js
|
|
786
|
+
// node_modules/.pnpm/@flakiness+flakiness-report@0.22.0/node_modules/@flakiness/flakiness-report/lib/schema.js
|
|
787
787
|
import z from "zod/v4";
|
|
788
788
|
var Schema;
|
|
789
789
|
((Schema2) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flakiness/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,10 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"description": "Comprehensive SDK for creating and managing Flakiness JSON Reports in Node.js",
|
|
23
23
|
"types": "./types/index.d.ts",
|
|
24
|
-
"scripts": {
|
|
25
|
-
"minor": "./version.mjs minor",
|
|
26
|
-
"patch": "./version.mjs patch"
|
|
27
|
-
},
|
|
28
24
|
"keywords": [],
|
|
29
25
|
"author": "Degu Labs, Inc",
|
|
30
26
|
"license": "MIT",
|
|
@@ -46,5 +42,9 @@
|
|
|
46
42
|
"open": "^10.2.0",
|
|
47
43
|
"stable-hash": "^0.0.6",
|
|
48
44
|
"zod": "^4.3.5"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"minor": "./version.mjs minor",
|
|
48
|
+
"patch": "./version.mjs patch"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|