c15t 2.0.0-rc.6 → 2.0.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 +61 -1
- package/README.md +3 -3
- package/dist/index.cjs +649 -134
- package/dist/index.js +615 -127
- package/dist-types/client/client-factory.d.ts +1 -1
- package/dist-types/client/client-interface.d.ts +26 -3
- package/dist-types/client/hosted/utils.d.ts +6 -0
- package/dist-types/client/offline/init.d.ts +1 -1
- package/dist-types/client/shared/init-fallback.d.ts +1 -1
- package/dist-types/index.d.ts +10 -9
- package/dist-types/libs/init-consent-manager/types.d.ts +6 -2
- package/dist-types/libs/jurisdiction.d.ts +1 -1
- package/dist-types/libs/policy-actions.d.ts +35 -0
- package/dist-types/libs/policy.d.ts +11 -2
- package/dist-types/libs/prefetch/index.d.ts +2 -2
- package/dist-types/libs/prefetch/prefetch.d.ts +6 -22
- package/dist-types/libs/request-context.d.ts +24 -0
- package/dist-types/libs/save-consents.d.ts +4 -3
- package/dist-types/libs/script-loader/debug.d.ts +3 -0
- package/dist-types/libs/script-loader/index.d.ts +2 -1
- package/dist-types/libs/script-loader/types.d.ts +21 -0
- package/dist-types/runtime/index.d.ts +1 -1
- package/dist-types/store/type.d.ts +108 -7
- package/dist-types/translations/index.d.ts +1 -1
- package/dist-types/types/callbacks.d.ts +24 -2
- package/dist-types/types/compliance.d.ts +1 -1
- package/dist-types/types/iab-tcf.d.ts +2 -2
- package/dist-types/types/index.d.ts +2 -2
- package/dist-types/types/legal-links.d.ts +1 -1
- package/dist-types/version.d.ts +1 -1
- package/docs/api/overview.md +26 -4
- package/docs/api/setting-consent.md +5 -1
- package/docs/building-ui.md +21 -9
- package/docs/callbacks.md +71 -11
- package/docs/concepts/client-modes.md +17 -5
- package/docs/concepts/initialization-flow.md +9 -2
- package/docs/concepts/policy-packs.md +3 -3
- package/docs/iab/overview.md +11 -10
- package/docs/integrations/building-integrations.md +405 -0
- package/docs/integrations/databuddy.md +22 -5
- package/docs/integrations/google-tag-manager.md +2 -2
- package/docs/integrations/google-tag.md +2 -29
- package/docs/integrations/linkedin-insights.md +1 -1
- package/docs/integrations/meta-pixel.md +1 -1
- package/docs/integrations/microsoft-uet.md +1 -1
- package/docs/integrations/overview.md +18 -2
- package/docs/integrations/posthog.md +39 -17
- package/docs/integrations/tiktok-pixel.md +1 -1
- package/docs/integrations/x-pixel.md +1 -1
- package/docs/internationalization.md +1 -1
- package/docs/optimization.md +2 -6
- package/docs/policy-packs.md +3 -3
- package/docs/quickstart.md +18 -5
- package/docs/script-loader.md +22 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# c15t
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 32617c9: Changelog available at https://c15t.com/changelog/2026-04-14-v2.0.0
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [32617c9]
|
|
12
|
+
- Updated dependencies [32617c9]
|
|
13
|
+
- @c15t/schema@2.0.0
|
|
14
|
+
- @c15t/translations@2.0.0
|
|
15
|
+
|
|
16
|
+
## 2.0.0-rc.10
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 9579b62: Add token-first legal-document consent groundwork for `2.0`.
|
|
21
|
+
|
|
22
|
+
- `c15t`: expand the unstable policy-consent input types so legal-document writes can prefer `documentSnapshotToken`, fall back to `policyHash`, and keep `policyId` only as a compatibility path.
|
|
23
|
+
- `@c15t/backend`: update legal-document consent writes to resolve append-only consent against a verified document snapshot token when configured, or against a provided document hash when only lighter-weight release proof is available.
|
|
24
|
+
- `@c15t/schema`: extend the subject consent schema and error shapes for legal-document snapshot tokens and hash-based legal-document resolution.
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [9579b62]
|
|
27
|
+
- @c15t/schema@2.0.0-rc.6
|
|
28
|
+
|
|
29
|
+
## 2.0.0-rc.8
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- 3d4c107: feat(consent): add change-only consent callbacks
|
|
34
|
+
|
|
35
|
+
- add `onConsentChanged` as a dedicated callback for explicit consent saves that change an existing persisted consent state
|
|
36
|
+
- include both previous and current consent categories in the callback payload so analytics and integrations can diff grant/revoke transitions directly
|
|
37
|
+
- keep `onConsentSet` focused on broad consent-state updates, including initialization and auto-grant flows
|
|
38
|
+
- update the React provider to keep callback registrations in sync when callback props change after mount
|
|
39
|
+
|
|
40
|
+
- c944e35: feat(core): move policy action resolution from @c15t/react to c15t core
|
|
41
|
+
|
|
42
|
+
Policy-driven action resolution utilities (`resolvePolicyAllowedActions`, `resolvePolicyActionGroups`, `resolvePolicyPrimaryActions`, etc.) are now exported from `c15t` core for shared consent surface runtimes.
|
|
43
|
+
|
|
44
|
+
feat(scripts): move bundled integrations to declarative, schema-versioned `VendorManifest` definitions compiled through `resolveManifest()`. The manifest runtime now supports structured startup and consent phases, complex consent conditions, compile caching, and Google Consent Mode v2 signaling without helper-authored lifecycle overrides.
|
|
45
|
+
|
|
46
|
+
feat(dev-tools): add script lifecycle and manifest runtime telemetry to the events and scripts panels, including grouped activity traces for `onBeforeLoad`, `onLoad`, and `onConsentChange`.
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- 43f1b68: - fix `identifyUser()` to consistently use the consent `subjectId` for `PATCH /subjects/:id`, keep the legacy `id` alias backward compatible, and tighten request typing plus retry handling for malformed pending identify submissions.
|
|
51
|
+
- 5956531: Simplify the 2.0 static prefetch flow so static routes only need to start `/init` early and matching prefetched data is consumed automatically during first store initialization.
|
|
52
|
+
|
|
53
|
+
- `c15t`: add canonical request-context metadata for SSR and browser-prefetch payloads, auto-consume matching prefetched data on first runtime/store initialization, and replace blanket SSR skip-on-overrides behavior with exact request-context matching.
|
|
54
|
+
- `@c15t/react`: preserve the dynamic SSR `fetchInitialData()` flow while exposing the new `context_mismatch` SSR status behavior for matching overrides, backend URLs, credentials, and ambient GPC.
|
|
55
|
+
- `@c15t/nextjs`: remove the RC-era public static-prefetch consumer APIs from the package surface and document `C15tPrefetch` as the only static-route setup step.
|
|
56
|
+
- `@c15t/cli`: update generated static-route templates to rely on automatic prefetch consumption instead of wiring manual prefetch lookups.
|
|
57
|
+
|
|
58
|
+
- Updated dependencies [3d5b0fd]
|
|
59
|
+
- Updated dependencies [fee82fd]
|
|
60
|
+
- @c15t/schema@2.0.0-rc.5
|
|
61
|
+
- @c15t/translations@2.0.0-rc.8
|
|
62
|
+
|
|
3
63
|
## 2.0.0-rc.6
|
|
4
64
|
|
|
5
65
|
### Minor Changes
|
|
@@ -137,7 +197,7 @@
|
|
|
137
197
|
|
|
138
198
|
### Major Changes
|
|
139
199
|
|
|
140
|
-
- 126a78b: https://
|
|
200
|
+
- 126a78b: https://c15t.com/changelog/2026-02-12-v2.0.0-rc.0
|
|
141
201
|
|
|
142
202
|
### Patch Changes
|
|
143
203
|
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
[](https://github.com/c15t/c15t)
|
|
13
13
|
[](https://github.com/c15t/c15t/actions/workflows/ci.yml)
|
|
14
|
-
[](https://github.com/c15t/c15t/blob/main/LICENSE.md)
|
|
15
15
|
[](https://c15t.link/discord)
|
|
16
16
|
[](https://www.npmjs.com/package/c15t)
|
|
17
17
|
[](https://github.com/c15t/c15t)
|
|
@@ -116,8 +116,8 @@ Our preference is that you make use of GitHub's private vulnerability reporting
|
|
|
116
116
|
|
|
117
117
|
## License
|
|
118
118
|
|
|
119
|
-
[
|
|
119
|
+
[Apache License 2.0](https://github.com/c15t/c15t/blob/main/LICENSE.md)
|
|
120
120
|
|
|
121
121
|
---
|
|
122
122
|
|
|
123
|
-
**Built
|
|
123
|
+
**Built by [Inth](https://inth.com?utm_source=github&utm_medium=repopage_c15t)**
|