@equinor/fusion-framework-module-analytics 3.1.0-next.0 → 3.1.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 CHANGED
@@ -1,65 +1,70 @@
1
1
  # @equinor/fusion-framework-module-analytics
2
2
 
3
- ## 3.1.0-next.0
3
+ ## 3.1.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - 2836e0b: Add `MockAnalyticsAdapter` and `./mock` subpath for asserting on tracked analytics events in tests.
8
-
7
+ - f663b46: Add `MockAnalyticsAdapter` and `./mock` subpath for asserting on tracked analytics events in tests.
8
+
9
9
  ```ts
10
- import { enableAnalytics } from "@equinor/fusion-framework-module-analytics";
11
- import { MockAnalyticsAdapter } from "@equinor/fusion-framework-module-analytics/mock";
12
-
10
+ import { enableAnalytics } from '@equinor/fusion-framework-module-analytics';
11
+ import { MockAnalyticsAdapter } from '@equinor/fusion-framework-module-analytics/mock';
12
+
13
13
  const recorder = new MockAnalyticsAdapter();
14
-
14
+
15
15
  enableAnalytics(configurator, (builder) => {
16
- builder.setAdapter("mock", async () => recorder);
16
+ builder.setAdapter('mock', async () => recorder);
17
17
  });
18
-
18
+
19
19
  // ... exercise the app under test, then assert:
20
- const event = await recorder.waitForAnalytic("button-click");
21
- expect(event.attributes?.section).toBe("header");
20
+ const event = await recorder.waitForAnalytic('button-click');
21
+ expect(event.attributes?.section).toBe('header');
22
22
  ```
23
-
23
+
24
24
  ### `getAnalytics(matcher?)`
25
-
25
+
26
26
  Returns recorded events synchronously, filtered by an event name, an array of names, or a predicate. Omit the matcher to get every recorded event.
27
-
27
+
28
28
  ### `waitForAnalytic(matcher, options?)`
29
-
29
+
30
30
  Resolves with the first matching event, resolving immediately if one was already recorded, or waiting for a future one. Supports an optional `timeout` (ms) and `AbortSignal` so a test cannot hang indefinitely, and rejects if the adapter is disposed before a match occurs.
31
31
 
32
32
  ### Patch Changes
33
33
 
34
- - e8aae1f: Internal: publish every package on the `next` pre-release tag so the whole framework can be installed as a coherent set.
34
+ - Updated dependencies [f663b46]
35
+ - Updated dependencies [f663b46]
36
+ - Updated dependencies [f663b46]
37
+ - Updated dependencies [f663b46]
38
+ - Updated dependencies [f663b46]
39
+ - Updated dependencies [f663b46]
40
+ - Updated dependencies [f663b46]
41
+ - Updated dependencies [f663b46]
42
+ - Updated dependencies [f663b46]
43
+ - Updated dependencies [f663b46]
44
+ - Updated dependencies [f663b46]
45
+ - Updated dependencies [f663b46]
46
+ - Updated dependencies [f663b46]
47
+ - Updated dependencies [f663b46]
48
+ - @equinor/fusion-observable@9.2.1
49
+ - @equinor/fusion-framework-module-app@8.1.0
50
+ - @equinor/fusion-framework-module-context@9.0.0
51
+ - @equinor/fusion-framework-module-event@6.1.0
52
+ - @equinor/fusion-framework-module-http@8.1.0
53
+ - @equinor/fusion-framework-module@6.1.3
54
+
55
+ ## 3.0.8
35
56
 
36
- Packages without their own changes are bumped only to receive a `-next.N` version and the `next` dist-tag on npm. Install with:
57
+ ### Patch Changes
37
58
 
38
- ```bash
39
- pnpm add @equinor/fusion-framework-react-app@next
40
- ```
59
+ - Updated dependencies [6b449ae]
60
+ - @equinor/fusion-observable@9.2.0
61
+
62
+ ## 3.0.7
63
+
64
+ ### Patch Changes
41
65
 
42
- - Updated dependencies [e8aae1f]
43
- - Updated dependencies [2836e0b]
44
- - Updated dependencies [2836e0b]
45
- - Updated dependencies [2836e0b]
46
- - Updated dependencies [2836e0b]
47
- - Updated dependencies [2836e0b]
48
- - Updated dependencies [2836e0b]
49
- - Updated dependencies [2836e0b]
50
- - Updated dependencies [2836e0b]
51
- - Updated dependencies [2836e0b]
52
- - Updated dependencies [2836e0b]
53
- - Updated dependencies [2836e0b]
54
- - Updated dependencies [2836e0b]
55
- - Updated dependencies [2836e0b]
56
- - Updated dependencies [2836e0b]
57
- - @equinor/fusion-framework-module@6.1.3-next.0
58
- - @equinor/fusion-framework-module-app@8.1.0-next.0
59
- - @equinor/fusion-framework-module-context@9.0.0-next.0
60
- - @equinor/fusion-framework-module-event@6.1.0-next.0
61
- - @equinor/fusion-framework-module-http@8.1.0-next.0
62
- - @equinor/fusion-observable@9.1.2-next.0
66
+ - Updated dependencies [4a00a7a]
67
+ - @equinor/fusion-framework-module-app@8.0.5
63
68
 
64
69
  ## 3.0.6
65
70
 
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '3.1.0-next.0';
2
+ export const version = '3.1.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}