@codecademy/tracking 0.25.1-alpha.f1d7dd.0 → 0.26.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/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[35m@codecademy/tracking:build: [0mcache hit, replaying output [
|
|
1
|
+
[35m@codecademy/tracking:build: [0mcache hit, replaying output [2m69502ae40927292b[0m
|
|
2
2
|
[35m@codecademy/tracking:build: [0m$ yarn build:clean && yarn build:compile && yarn build:types
|
|
3
3
|
[35m@codecademy/tracking:build: [0m$ rm -rf dist
|
|
4
4
|
[35m@codecademy/tracking:build: [0m$ babel ./src --out-dir ./dist --copy-files --extensions ".ts,.tsx"
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
[35m@codecademy/tracking:build: [0m
|
|
8
8
|
[35m@codecademy/tracking:build: [0mWhy you should do it regularly:
|
|
9
9
|
[35m@codecademy/tracking:build: [0mhttps://github.com/browserslist/browserslist#browsers-data-updating
|
|
10
|
-
[35m@codecademy/tracking:build: [0mSuccessfully compiled 20 files with Babel (
|
|
10
|
+
[35m@codecademy/tracking:build: [0mSuccessfully compiled 20 files with Babel (2158ms).
|
|
11
11
|
[35m@codecademy/tracking:build: [0m$ 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
|
-
|
|
6
|
+
## [0.26.0](https://github.com/Codecademy/client-modules/compare/@codecademy/tracking@0.25.0...@codecademy/tracking@0.26.0) (2022-10-27)
|
|
7
7
|
|
|
8
|
-
**Note:** Version bump only for package @codecademy/tracking
|
|
9
8
|
|
|
9
|
+
### Features
|
|
10
10
|
|
|
11
|
+
* check user opt-out when blocking trackers ([64e4be8](https://github.com/Codecademy/client-modules/commit/64e4be8bf5d7f17e4d32affa6246c94fbb08eee6))
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
package/dist/events/types.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ export declare type BaseEventData = {
|
|
|
76
76
|
referrer?: string | null;
|
|
77
77
|
id?: null;
|
|
78
78
|
};
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
80
|
* Generic type to use for event data not typed yet
|
|
81
81
|
*/
|
|
82
82
|
export declare type BaseEventAnyData = BaseEventData & {
|
|
@@ -21,7 +21,7 @@ describe('getConsentDecision', function () {
|
|
|
21
21
|
expect(result).toEqual(FULL_CONSENT);
|
|
22
22
|
});
|
|
23
23
|
describe('optedOutExternalTracking', function () {
|
|
24
|
-
it('
|
|
24
|
+
it('reduces the consent decision to necessary and functional for opted out users', function () {
|
|
25
25
|
var result = getConsentDecision({
|
|
26
26
|
scope: {
|
|
27
27
|
OnetrustActiveGroups: FULL_CONSENT
|
|
@@ -30,7 +30,7 @@ describe('getConsentDecision', function () {
|
|
|
30
30
|
});
|
|
31
31
|
expect(result).toEqual([Consent.StrictlyNecessary, Consent.Functional]);
|
|
32
32
|
});
|
|
33
|
-
it('
|
|
33
|
+
it('does not add Functional tracking if the user has opted out of it', function () {
|
|
34
34
|
var result = getConsentDecision({
|
|
35
35
|
scope: {
|
|
36
36
|
OnetrustActiveGroups: MINIMUM_CONSENT
|
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.
|
|
4
|
+
"version": "0.26.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": "
|
|
38
|
+
"gitHead": "50a39793c30bbf0939c333b63bc1944889b92efe"
|
|
39
39
|
}
|