@codecademy/tracking 0.20.1-alpha.c48492.0 → 0.21.0-alpha.2a4486.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.
@@ -1,4 +1,4 @@
1
- @codecademy/tracking:build: cache hit, replaying output 4748b07ffa86172e
1
+ @codecademy/tracking:build: cache hit, replaying output 665301fe1455dac7
2
2
  @codecademy/tracking:build: $ yarn build:clean && yarn build:compile && yarn build:types
3
3
  @codecademy/tracking:build: $ rm -rf dist
4
4
  @codecademy/tracking:build: $ babel ./src --out-dir ./dist --copy-files --extensions ".ts,.tsx"
@@ -7,5 +7,5 @@
7
7
  @codecademy/tracking:build: 
8
8
  @codecademy/tracking:build: Why you should do it regularly:
9
9
  @codecademy/tracking:build: https://github.com/browserslist/browserslist#browsers-data-updating
10
- @codecademy/tracking:build: Successfully compiled 18 files with Babel (1147ms).
10
+ @codecademy/tracking:build: Successfully compiled 18 files with Babel (1518ms).
11
11
  @codecademy/tracking:build: $ tsc --emitDeclarationOnly
package/CHANGELOG.md CHANGED
@@ -3,11 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ### [0.20.1-alpha.c48492.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.20.0...@codecademy/tracking@0.20.1-alpha.c48492.0) (2022-04-29)
6
+ ## [0.21.0-alpha.2a4486.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.20.0...@codecademy/tracking@0.21.0-alpha.2a4486.0) (2022-05-13)
7
7
 
8
- **Note:** Version bump only for package @codecademy/tracking
9
8
 
9
+ ### Features
10
10
 
11
+ * **tracking:** add UserSharedData to user impressions ([2a4486b](https://github.com/Codecademy/client-modules/commit/2a4486be8e75a21c64308383948ff746d1d32e61))
11
12
 
12
13
 
13
14
 
@@ -42,6 +42,9 @@ export declare type EventDataTypes = {
42
42
  exercise: {
43
43
  force_pass: BaseEventAnyData;
44
44
  };
45
+ experiment: {
46
+ contentful_experiment_assignment_event: BaseEventAnyData;
47
+ };
45
48
  payments: {
46
49
  cancel_survey: BaseEventAnyData;
47
50
  };
@@ -195,17 +198,11 @@ export declare type UserVisitData = UserSharedData & {
195
198
  unit?: string;
196
199
  lesson?: string;
197
200
  is_ugc?: boolean;
198
- experimentInfo?: Record<string, string>;
199
201
  };
200
- export declare type UserImpressionData = {
202
+ export declare type UserImpressionData = Pick<UserSharedData, "context" | "source_codebase"> & {
201
203
  page_name: string;
202
- slug?: string;
203
204
  target: string;
204
- context?: string;
205
- path_slug?: string;
206
- track_slug?: string;
207
- module_slug?: string;
208
- source_codebase?: string;
205
+ slug?: string;
209
206
  is_ugc?: boolean;
210
207
  };
211
208
  export declare type EventAnswerData = BaseEventData & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/tracking",
3
3
  "description": "Tracking library for Codecademy apps.",
4
- "version": "0.20.1-alpha.c48492.0",
4
+ "version": "0.21.0-alpha.2a4486.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "module": "./dist/index.js",
7
7
  "main": "./dist/index.js",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "2e2626bc54b1e6f16bd7c912e524357d6fb41fa3"
38
+ "gitHead": "8329d18a536e7ddcff801fdeaf2956264a63dad5"
39
39
  }