@dotcms/analytics 26.8.7-1 → 26.8.10-1-next.2504

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.
Files changed (2) hide show
  1. package/README.md +28 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -2,6 +2,34 @@
2
2
 
3
3
  Content Analytics SDK for tracking content-aware events in dotCMS-powered React applications.
4
4
 
5
+ ## Which SDK Version Should I Use?
6
+
7
+ dotCMS SDKs are published in lockstep with dotCMS itself: every `@dotcms/*` package ships
8
+ at the **exact same version number** as the dotCMS release it was built for (e.g. dotCMS
9
+ `26.7.14-1` → `@dotcms/client@26.7.14-1`, `@dotcms/react@26.7.14-1`, and so on).
10
+
11
+ **Simple rule of thumb: use the SDK version that matches your dotCMS instance's version.**
12
+
13
+ You don't have to upgrade the SDK every time dotCMS releases a new version (or vice versa).
14
+ Most releases don't change anything the SDKs rely on, so an older SDK usually keeps working
15
+ fine against a newer dotCMS instance. Occasionally, though, a release does include a real
16
+ breaking change — and if your SDK is older than that point, it will stop working correctly.
17
+
18
+ You don't need to track this yourself: your dotCMS instance always knows the oldest SDK
19
+ version it still supports, and the SDK checks itself against it automatically. If you're
20
+ using an SDK that's too old, you'll see a clear warning in your console telling you to
21
+ upgrade.
22
+
23
+ **Recommendation:** pin your SDKs to the same version as your dotCMS instance, and only bump
24
+ them when you upgrade dotCMS — or when the console tells you to.
25
+
26
+ > **On an LTS release?** LTS releases don't currently get their own matching SDK version.
27
+ > Until that's addressed, use the SDK version published for the closest regular release at
28
+ > or before your LTS version.
29
+ >
30
+ > Want more background on how dotCMS releases and support windows work? See
31
+ > [Release & Support Lifecycle](https://dev.dotcms.com/docs/release-support-lifecycle).
32
+
5
33
  ## Quick Start
6
34
 
7
35
  ### 1. Install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotcms/analytics",
3
- "version": "26.08.07-01",
3
+ "version": "26.8.10-1-next.2504",
4
4
  "description": "Official JavaScript library for Content Analytics with DotCMS.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
24
24
  "@analytics/queue-utils": "^0.1.3",
25
25
  "@analytics/router-utils": "^0.1.1",
26
26
  "@analytics/storage-utils": "^0.4.0",
27
- "@dotcms/uve": "26.08.07-01",
27
+ "@dotcms/uve": "26.8.10-1-next.2504",
28
28
  "analytics": "^0.8.0"
29
29
  },
30
30
  "peerDependencies": {