@yuno-payments/dashboard-api-mfe 2.7.1 → 2.7.3
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/build/cjs/index.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/queries/feature-flags/index.test.d.ts +7 -8
- package/build/cjs/types/utils/feature-flags-provider.d.ts +14 -14
- package/build/cjs/types/yuno-dashboard-api-mfe.d.ts +1 -0
- package/build/esm/index.js +5 -5
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/queries/feature-flags/index.test.d.ts +7 -8
- package/build/esm/types/utils/feature-flags-provider.d.ts +14 -14
- package/build/esm/types/yuno-dashboard-api-mfe.d.ts +1 -0
- package/build/index.d.ts +15 -14
- package/package.json +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Tests for the
|
|
2
|
+
* Tests for the feature-flags/index.ts routing.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* a
|
|
10
|
-
* the isolated scope and break the test contract.
|
|
4
|
+
* As of v2.7.2 the switch is hardcoded to datadog (see
|
|
5
|
+
* `src/utils/feature-flags-provider.ts`). The legacy hooks file is kept
|
|
6
|
+
* around for a one-revert rollback path but is no longer reachable from
|
|
7
|
+
* the public hooks. These tests cover both: the public entry always
|
|
8
|
+
* exposes the datadog impls, and both modules still share the same
|
|
9
|
+
* function shape so a future env-var-driven rollback would Just Work.
|
|
11
10
|
*/
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Feature-flag provider switch (
|
|
2
|
+
* Feature-flag provider switch (DAS-15798 migration).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Hardcoded to 'datadog' as of v2.7.2. The env-var-based switch
|
|
5
|
+
* (`FEATURE_FLAGS_PROVIDER`) is gone: api-mfe queries always route to
|
|
6
|
+
* `./datadog-hooks`, and `dashboard-container-mfe`'s bootstrap effect
|
|
7
|
+
* (which checks this function) always proceeds to set up the
|
|
8
|
+
* OpenFeature Datadog provider.
|
|
8
9
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* The function and type are kept around (instead of inlining the
|
|
11
|
+
* constant) so:
|
|
12
|
+
* 1. Consumers like container-mfe don't need a code change.
|
|
13
|
+
* 2. Rollback to the legacy hooks (revert this file + republish) stays
|
|
14
|
+
* a single-file change.
|
|
14
15
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* Delete this file (and the legacy hooks branch) after Phase 4 soak.
|
|
16
|
+
* Once we're confident no rollback is needed, delete `./legacy-hooks`,
|
|
17
|
+
* delete this file, and inline the datadog branch in
|
|
18
|
+
* `queries/feature-flags/index.ts` (Phase 5 cleanup).
|
|
19
19
|
*/
|
|
20
20
|
export type FeatureFlagsProvider = 'datadog' | 'legacy';
|
|
21
21
|
export declare function getFeatureFlagsProvider(): FeatureFlagsProvider;
|
|
@@ -9,3 +9,4 @@ export * from './websockets';
|
|
|
9
9
|
export * from './utils';
|
|
10
10
|
export { getFeatureFlagsProvider, type FeatureFlagsProvider, } from './utils/feature-flags-provider';
|
|
11
11
|
export { emitExpired, resetExpiredGuard, SESSION_EXPIRED_MESSAGE_TYPE, } from './lib/session-expired';
|
|
12
|
+
export { OpenFeature } from '@openfeature/web-sdk';
|