@equinor/fusion-framework-module-analytics 3.1.0-next.1 → 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,72 +1,70 @@
1
1
  # @equinor/fusion-framework-module-analytics
2
2
 
3
- ## 3.1.0-next.1
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [6639e6e]
8
- - @equinor/fusion-observable@9.1.2-next.1
9
-
10
- ## 3.1.0-next.0
3
+ ## 3.1.0
11
4
 
12
5
  ### Minor Changes
13
6
 
14
- - 2836e0b: Add `MockAnalyticsAdapter` and `./mock` subpath for asserting on tracked analytics events in tests.
15
-
7
+ - f663b46: Add `MockAnalyticsAdapter` and `./mock` subpath for asserting on tracked analytics events in tests.
8
+
16
9
  ```ts
17
- import { enableAnalytics } from "@equinor/fusion-framework-module-analytics";
18
- import { MockAnalyticsAdapter } from "@equinor/fusion-framework-module-analytics/mock";
19
-
10
+ import { enableAnalytics } from '@equinor/fusion-framework-module-analytics';
11
+ import { MockAnalyticsAdapter } from '@equinor/fusion-framework-module-analytics/mock';
12
+
20
13
  const recorder = new MockAnalyticsAdapter();
21
-
14
+
22
15
  enableAnalytics(configurator, (builder) => {
23
- builder.setAdapter("mock", async () => recorder);
16
+ builder.setAdapter('mock', async () => recorder);
24
17
  });
25
-
18
+
26
19
  // ... exercise the app under test, then assert:
27
- const event = await recorder.waitForAnalytic("button-click");
28
- expect(event.attributes?.section).toBe("header");
20
+ const event = await recorder.waitForAnalytic('button-click');
21
+ expect(event.attributes?.section).toBe('header');
29
22
  ```
30
-
23
+
31
24
  ### `getAnalytics(matcher?)`
32
-
25
+
33
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.
34
-
27
+
35
28
  ### `waitForAnalytic(matcher, options?)`
36
-
29
+
37
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.
38
31
 
39
32
  ### Patch Changes
40
33
 
41
- - 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
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [6b449ae]
60
+ - @equinor/fusion-observable@9.2.0
42
61
 
43
- Packages without their own changes are bumped only to receive a `-next.N` version and the `next` dist-tag on npm. Install with:
62
+ ## 3.0.7
44
63
 
45
- ```bash
46
- pnpm add @equinor/fusion-framework-react-app@next
47
- ```
64
+ ### Patch Changes
48
65
 
49
- - Updated dependencies [e8aae1f]
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
- - Updated dependencies [2836e0b]
58
- - Updated dependencies [2836e0b]
59
- - Updated dependencies [2836e0b]
60
- - Updated dependencies [2836e0b]
61
- - Updated dependencies [2836e0b]
62
- - Updated dependencies [2836e0b]
63
- - Updated dependencies [2836e0b]
64
- - @equinor/fusion-framework-module@6.1.3-next.0
65
- - @equinor/fusion-framework-module-app@8.1.0-next.0
66
- - @equinor/fusion-framework-module-context@9.0.0-next.0
67
- - @equinor/fusion-framework-module-event@6.1.0-next.0
68
- - @equinor/fusion-framework-module-http@8.1.0-next.0
69
- - @equinor/fusion-observable@9.1.2-next.0
66
+ - Updated dependencies [4a00a7a]
67
+ - @equinor/fusion-framework-module-app@8.0.5
70
68
 
71
69
  ## 3.0.6
72
70
 
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '3.1.0-next.1';
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"}