@veroxm/react-sdk 1.0.0 → 1.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,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0
4
+
5
+ - `VeroxmTrackerLike.identifyAccount?()`: optional, satisfied by `@veroxm/sdk` 1.1's tracker.
6
+
3
7
  ## 1.0.0
4
8
 
5
9
  - Stable: from 1.0, breaking changes come only in a major version, after a deprecation period. What that covers
@@ -8,6 +8,12 @@ export interface VeroxmTrackerLike {
8
8
  track(name: string, properties?: Record<string, unknown>): void;
9
9
  page(properties?: Record<string, unknown>): void;
10
10
  identify(userId: string, traits?: Record<string, unknown>): Promise<void>;
11
+ /**
12
+ * Links the visitor to a signed-in end user's account with their access token (@veroxm/sdk 1.1). Optional so
13
+ * older trackers still type-check.
14
+ * @since 1.1.0
15
+ */
16
+ identifyAccount?(accessToken: string, traits?: Record<string, unknown>): Promise<void>;
11
17
  consent(choices: {
12
18
  analytics?: boolean;
13
19
  personalization?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veroxm/react-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "React and Next.js SDK for VeroXM: content hooks, visual slots with A/B tests, the on-page editor, llms.txt and structured data.",
5
5
  "keywords": [
6
6
  "veroxm",