@alwaysmeticulous/sdk-bundles-api 2.350.0 → 3.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/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { InProgressTestRun } from "./replay-orchestrator/bundle-to-sdk/execute-s
|
|
|
10
10
|
export { InProgressTestRunChunk, ExecuteTestRunChunkResult, TestRunChunkExecution, } from "./replay-orchestrator/bundle-to-sdk/execute-scheduled-test-run-chunk";
|
|
11
11
|
export { ReplayAndStoreResultsResult, ReplayExecution, BeforeUserEventResult, IndexedReplayableEvent, } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
|
|
12
12
|
export { ScreenshotDiffData } from "./replay-orchestrator/bundle-to-sdk/execute-replay";
|
|
13
|
-
export { MeticulousPublicApi, MeticulousPublicAgentSwarmReplayApi, FeatureFlagOverride, MeticulousPressureObserver, MeticulousPressureObserverConstructor, MeticulousPressureRecord, MeticulousPressureSource, MeticulousPressureState, RecordCustomSnapshotOptions, OnBeforeScreenshotListener, OnBeforeScreenshotListenerOptions, OnReplayCompletionListener, OnReplayCompletionListenerOptions, } from "./window-api/public-window-api";
|
|
13
|
+
export { MeticulousPublicApi, MeticulousPublicAgentSwarmReplayApi, FeatureFlagOverride, RecordFeatureFlagOptions, MeticulousPressureObserver, MeticulousPressureObserverConstructor, MeticulousPressureRecord, MeticulousPressureSource, MeticulousPressureState, RecordCustomSnapshotOptions, OnBeforeScreenshotListener, OnBeforeScreenshotListenerOptions, OnReplayCompletionListener, OnReplayCompletionListenerOptions, } from "./window-api/public-window-api";
|
|
14
14
|
export { MeticulousPrivateApi } from "./window-api/private-window-api";
|
|
15
15
|
export { CrawlExplorationMode, RunCrawlOptions, RunCrawlResult, } from "./crawler/sdk-to-bundle/run-crawl";
|
|
16
16
|
export { BackendRecorderConfig, BackendRecorderSpanRedactionHook, } from "./backend-recorder/sdk-to-bundle/init-backend-recorder";
|
|
@@ -433,15 +433,33 @@ export type FeatureFlagOverride = {
|
|
|
433
433
|
overridden: true;
|
|
434
434
|
value: string | boolean;
|
|
435
435
|
};
|
|
436
|
+
export interface RecordFeatureFlagOptions {
|
|
437
|
+
/**
|
|
438
|
+
* Human-readable name to show for this flag in the Meticulous UI, e.g. `"New checkout flow"`
|
|
439
|
+
* for the key `"checkout-v3"`. Defaults to the flag's key. Meticulous still identifies the flag
|
|
440
|
+
* by its key everywhere else, including {@link MeticulousPublicContextApi.getFlagOverride}.
|
|
441
|
+
*
|
|
442
|
+
* Must be a non-empty string of at most 1000 characters. Otherwise the call records nothing and
|
|
443
|
+
* returns `{ success: false }`.
|
|
444
|
+
*/
|
|
445
|
+
label?: string;
|
|
446
|
+
}
|
|
436
447
|
export interface MeticulousPublicContextApi {
|
|
437
448
|
/**
|
|
438
449
|
* Record the value of a feature flag that your application actually used. If this
|
|
439
|
-
* method is called multiple times with the same
|
|
450
|
+
* method is called multiple times with the same key, the value (and label, if given) will be
|
|
451
|
+
* overwritten.
|
|
440
452
|
*
|
|
441
453
|
* If you also call {@link getFlagOverride} in the same resolver, record the value you
|
|
442
454
|
* returned after applying the override — not a later snapshot from your flag SDK.
|
|
455
|
+
*
|
|
456
|
+
* ```js
|
|
457
|
+
* window.Meticulous?.context?.recordFeatureFlag?.("checkout-v3", true, {
|
|
458
|
+
* label: "New checkout flow",
|
|
459
|
+
* });
|
|
460
|
+
* ```
|
|
443
461
|
*/
|
|
444
|
-
recordFeatureFlag(
|
|
462
|
+
recordFeatureFlag(key: string, value: string | boolean, options?: RecordFeatureFlagOptions): {
|
|
445
463
|
success: boolean;
|
|
446
464
|
};
|
|
447
465
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/sdk-bundles-api",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Meticulous common types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@alwaysmeticulous/api": "
|
|
12
|
+
"@alwaysmeticulous/api": "3.0.0"
|
|
13
13
|
},
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "The Meticulous Team",
|