@equinor/fusion-framework-module-analytics 0.1.1 → 0.2.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/dist/esm/version.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +6 -6
- package/src/index.ts +1 -1
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @equinor/fusion-framework-module-analytics
|
|
2
2
|
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#3849](https://github.com/equinor/fusion-framework/pull/3849) [`7caca57`](https://github.com/equinor/fusion-framework/commit/7caca573584ae4daedfb17e287d0329c2633771a) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - `trackFeature` now has an extra optional argument for passing additional analytics
|
|
8
|
+
data.
|
|
9
|
+
|
|
10
|
+
Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
const trackFeature = useTrackFeature();
|
|
14
|
+
|
|
15
|
+
// Without extra data
|
|
16
|
+
trackFeature("SomeComponent:loaded");
|
|
17
|
+
|
|
18
|
+
// Send additional data
|
|
19
|
+
trackFeature("some:feature:happened", {
|
|
20
|
+
extra: "data",
|
|
21
|
+
foo: "bar",
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
3
25
|
## 0.1.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/esm/version.js
CHANGED