@featurevisor/core 1.27.6 → 1.29.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 +22 -0
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/lib/builder/allocator.js.html +1 -1
- package/coverage/lcov-report/lib/builder/index.html +1 -1
- package/coverage/lcov-report/lib/builder/revision.js.html +1 -1
- package/coverage/lcov-report/lib/builder/traffic.js.html +1 -1
- package/coverage/lcov-report/lib/tester/checkIfObjectsAreEqual.js.html +1 -1
- package/coverage/lcov-report/lib/tester/index.html +1 -1
- package/coverage/lcov-report/lib/tester/matrix.js.html +1 -1
- package/coverage/lcov-report/src/builder/allocator.ts.html +1 -1
- package/coverage/lcov-report/src/builder/index.html +1 -1
- package/coverage/lcov-report/src/builder/revision.ts.html +1 -1
- package/coverage/lcov-report/src/builder/traffic.ts.html +1 -1
- package/coverage/lcov-report/src/tester/checkIfObjectsAreEqual.ts.html +1 -1
- package/coverage/lcov-report/src/tester/index.html +1 -1
- package/coverage/lcov-report/src/tester/matrix.ts.html +1 -1
- package/lib/assess-distribution/index.d.ts +2 -0
- package/lib/assess-distribution/index.js +2 -1
- package/lib/assess-distribution/index.js.map +1 -1
- package/lib/benchmark/index.d.ts +2 -0
- package/lib/benchmark/index.js +11 -1
- package/lib/benchmark/index.js.map +1 -1
- package/lib/builder/buildDatafile.d.ts +3 -0
- package/lib/builder/buildDatafile.js +79 -19
- package/lib/builder/buildDatafile.js.map +1 -1
- package/lib/builder/buildProject.d.ts +3 -0
- package/lib/builder/buildProject.js +4 -1
- package/lib/builder/buildProject.js.map +1 -1
- package/lib/cli/cli.js +12 -6
- package/lib/cli/cli.js.map +1 -1
- package/lib/config/projectConfig.js +1 -1
- package/lib/config/projectConfig.js.map +1 -1
- package/lib/datasource/adapter.d.ts +1 -0
- package/lib/datasource/adapter.js.map +1 -1
- package/lib/datasource/filesystemAdapter.js +6 -4
- package/lib/datasource/filesystemAdapter.js.map +1 -1
- package/lib/evaluate/index.d.ts +2 -0
- package/lib/evaluate/index.js +2 -1
- package/lib/evaluate/index.js.map +1 -1
- package/lib/tester/testProject.d.ts +2 -0
- package/lib/tester/testProject.js +2 -1
- package/lib/tester/testProject.js.map +1 -1
- package/package.json +5 -5
- package/src/assess-distribution/index.ts +4 -1
- package/src/benchmark/index.ts +14 -1
- package/src/builder/buildDatafile.ts +77 -2
- package/src/builder/buildProject.ts +7 -1
- package/src/cli/cli.ts +5 -0
- package/src/config/projectConfig.ts +1 -1
- package/src/datasource/adapter.ts +1 -0
- package/src/datasource/filesystemAdapter.ts +6 -6
- package/src/evaluate/index.ts +4 -1
- package/src/tester/testProject.ts +4 -1
package/src/evaluate/index.ts
CHANGED
|
@@ -56,6 +56,8 @@ export interface EvaluateOptions {
|
|
|
56
56
|
print?: boolean;
|
|
57
57
|
pretty?: boolean;
|
|
58
58
|
verbose?: boolean;
|
|
59
|
+
schemaVersion?: string;
|
|
60
|
+
inflate?: number;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
export interface Log {
|
|
@@ -72,9 +74,10 @@ export async function evaluateFeature(deps: Dependencies, options: EvaluateOptio
|
|
|
72
74
|
projectConfig,
|
|
73
75
|
datasource,
|
|
74
76
|
{
|
|
75
|
-
schemaVersion: SCHEMA_VERSION,
|
|
77
|
+
schemaVersion: options.schemaVersion || SCHEMA_VERSION,
|
|
76
78
|
revision: "include-all-features",
|
|
77
79
|
environment: options.environment,
|
|
80
|
+
inflate: options.inflate,
|
|
78
81
|
},
|
|
79
82
|
existingState,
|
|
80
83
|
);
|
|
@@ -19,6 +19,8 @@ export interface TestProjectOptions {
|
|
|
19
19
|
verbose?: boolean;
|
|
20
20
|
showDatafile?: boolean;
|
|
21
21
|
onlyFailures?: boolean;
|
|
22
|
+
schemaVersion?: string;
|
|
23
|
+
inflate?: number;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
export interface TestPatterns {
|
|
@@ -157,9 +159,10 @@ export async function testProject(
|
|
|
157
159
|
projectConfig,
|
|
158
160
|
datasource,
|
|
159
161
|
{
|
|
160
|
-
schemaVersion: SCHEMA_VERSION,
|
|
162
|
+
schemaVersion: options.schemaVersion || SCHEMA_VERSION,
|
|
161
163
|
revision: "include-all-features",
|
|
162
164
|
environment: environment,
|
|
165
|
+
inflate: options.inflate,
|
|
163
166
|
},
|
|
164
167
|
existingState,
|
|
165
168
|
);
|