@joryio/web-sdk 1.4.0-beta.1 → 1.4.0-beta.2
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 +1 -1
- package/dist/joryio-sw.js +1 -1
- package/dist/joryio.cjs.js +1 -1
- package/dist/joryio.min.js +1 -1
- package/dist/joryio.min.js.map +1 -1
- package/dist/joryio.mjs +1 -1
- package/dist/joryio.umd.js +1 -1
- package/package.json +1 -1
- package/src/core/network.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Added: recognise people who click your messages (Joryio BACKLOG D407). A tracked link from a Joryio message lands with `jr_t`, an opaque token Joryio signs and encrypts (no personal data in it, 7 days; added only to links to the workspace's own websites). On load the SDK removes `jr_t` from the address bar with `history.replaceState` - before the landing page is recorded, so the token is never bookmarked, shared or stored; `jr_cid` / `jr_jid` / utm_* stay - and, only while tracking is allowed (consent granted, not opted out, Do Not Track respected; held in memory while consent is `pending`, dropped on a denial or opt-out), sends it once to `POST /v1/identify-link` as `{ token, anonymousId }`. The server uses it only to attribute this visitor's events (Session Start, page views, conversions) to the recipient - it never identifies the browser as the contact. Not sent when a user is identified on the browser or a storefront identity token is held for this visitor - a link never overrides a stronger identity. New method `identifyFromLink(url)` for single-page apps and routers (also stubbed by the snippet). The same name and wire on all five SDKs.
|
|
6
6
|
|
|
7
|
-
Added: `resetTo(anonymousId)` - everything `reset()` does, then the anonymous id you pass instead of a random one, for an app that keeps its own visitor id (BACKLOG D366). The id must be 8 to 255 letters, digits, `.`, `_`, `:` or `-`, must not have the shape of a Joryio profile id (24 lowercase hex) and must not be the user id the SDK holds; a refused id is logged and the call is a plain `reset()` (a random id), so a logout is never skipped. The same name and rule on all five SDKs. No wire changes: the server sees an ordinary anonymous id. Also stubbed by the snippet.
|
|
7
|
+
Added: `resetTo(anonymousId)` - everything `reset()` does, then the anonymous id you pass instead of a random one, for an app that keeps its own visitor id (BACKLOG D366). The id must be 8 to 255 letters, digits, `.`, `_`, `:` or `-`, must not have the shape of a Joryio profile id (24 lowercase hex) and must not be the user id the SDK holds; a refused id is logged and the call is a plain `reset()` (a random id), so a logout is never skipped. The same name and rule on all five SDKs. No wire changes: the server sees an ordinary anonymous id. Like `reset()`, `resetTo` drops a click-link token the SDK has not sent yet (one held while consent is pending), so the link is never attributed to the next visitor on the browser. Also stubbed by the snippet.
|
|
8
8
|
|
|
9
9
|
Changed (BACKLOG D366, before any release of resetTo): it also refuses the anonymous id the SDK holds while a user is signed in - that id is tied to the signed-in person's profile, and adopting it would hand their in-app messages, events, form attribution and push subscription to the next person on a shared device (a random id is used instead). `resetTo` now resolves `true` (adopted) or `false` (refused, or the SDK is not initialized). The same on all five SDKs.
|
|
10
10
|
|
package/dist/joryio-sw.js
CHANGED
package/dist/joryio.cjs.js
CHANGED
package/dist/joryio.min.js
CHANGED