@amedia/user 0.14.149 → 0.14.150

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/README.md CHANGED
@@ -57,15 +57,15 @@ To get user data you first need to create a `new UserDataRequest()` instance, th
57
57
 
58
58
  Attributes are data directly related to the user, with the exception of access. Supported attributes are:
59
59
 
60
- | name | type | description |
61
- | ------------------ | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
62
- | uuid | string | The users unique ID. (NOT for tracking) |
63
- | name | string | Users full name |
64
- | trackingKey | string | Unique ID of user that can be used for tracking (pseudonym) This is also known as the legacy name user_key |
65
- | access | Array<string> | Users access on current site (list of access features) |
66
- | extraData | Record<string,unknown> | Data that has been modelled about the user (gender, ad segments etc. from Nebula) |
67
- | privacyPreferences | [PrivacyPreferences](https://github.com/amedia/amedia-user-js/blob/master/src/types.ts#L16) | Privacy preferences set on Min aID. |
68
- | sessionTrackingKey | string | Tracking key for the user session |
60
+ | name | type | description |
61
+ | ------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
62
+ | uuid | string | The users unique ID. (NOT for tracking) |
63
+ | name | string | Users full name |
64
+ | trackingKey | string | Unique ID of user that can be used for tracking (pseudonym) This is also known as the legacy name user_key |
65
+ | access | Array<string> | Users access on current site (list of access features) |
66
+ | extraData | Record<string,unknown> | Data that has been modelled about the user (gender, ad segments etc. from Nebula) |
67
+ | privacyPreferences (deprecated) | [PrivacyPreferences](https://github.com/amedia/amedia-user-js/blob/master/src/types.ts#L16) | Privacy preferences set on Min aID. (Deprecated - CMP is now used) |
68
+ | sessionTrackingKey | string | Tracking key for the user session |
69
69
 
70
70
  Attributes are requested by calling `.withAttributes(attributes: Array<string>)` on a `UserDataRequest` with a list of the attributes you need.
71
71
 
package/dist/user.d.ts CHANGED
@@ -11,6 +11,7 @@ type UserAttributes = {
11
11
  [index: string]: unknown;
12
12
  };
13
13
  access: AccessFeatures;
14
+ /** @deprecated Returns false for all keys. CMP data is now used. */
14
15
  privacyPreferences: PrivacyPreferences | null;
15
16
  sessionTrackingKey: string | null;
16
17
  };
@@ -19,6 +20,9 @@ type State = {
19
20
  isCircuitBreakerTripped?: boolean;
20
21
  emergencyMode?: string[];
21
22
  };
23
+ /**
24
+ * @deprecated This is set to false as default. CMP data is now used.
25
+ */
22
26
  type PrivacyPreferences = {
23
27
  allowResearchUsage: boolean;
24
28
  personalizedContent: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amedia/user",
3
- "version": "0.14.149",
3
+ "version": "0.14.150",
4
4
  "description": "Client lib for working with aID user and associated data",
5
5
  "repository": "https://github.com/amedia/amedia-user-js",
6
6
  "author": "Amedia Utvikling (ID og data)",
@@ -58,17 +58,17 @@
58
58
  "@fastify/cors": "^11.1.0",
59
59
  "@fastify/static": "^8.2.0",
60
60
  "@types/jest": "30.0.0",
61
- "@types/node": "24.3.0",
61
+ "@types/node": "24.3.1",
62
62
  "concurrently": "9.2.1",
63
63
  "esbuild": "0.25.9",
64
64
  "fastify": "^5.5.0",
65
- "jest": "30.1.0",
66
- "jest-environment-jsdom": "30.1.0",
65
+ "jest": "30.1.3",
66
+ "jest-environment-jsdom": "30.1.2",
67
67
  "jest-extended": "6.0.0",
68
68
  "jest-fetch-mock": "3.0.3",
69
69
  "mockdate": "3.0.5",
70
70
  "npm-run-all": "4.1.5",
71
- "rollup": "4.49.0",
71
+ "rollup": "4.50.0",
72
72
  "rollup-plugin-dts": "6.2.3",
73
73
  "ts-jest": "29.4.1",
74
74
  "tslib": "2.8.1",