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.
Files changed (55) hide show
  1. package/CHANGELOG.md +61 -1
  2. package/README.md +3 -3
  3. package/dist/index.cjs +649 -134
  4. package/dist/index.js +615 -127
  5. package/dist-types/client/client-factory.d.ts +1 -1
  6. package/dist-types/client/client-interface.d.ts +26 -3
  7. package/dist-types/client/hosted/utils.d.ts +6 -0
  8. package/dist-types/client/offline/init.d.ts +1 -1
  9. package/dist-types/client/shared/init-fallback.d.ts +1 -1
  10. package/dist-types/index.d.ts +10 -9
  11. package/dist-types/libs/init-consent-manager/types.d.ts +6 -2
  12. package/dist-types/libs/jurisdiction.d.ts +1 -1
  13. package/dist-types/libs/policy-actions.d.ts +35 -0
  14. package/dist-types/libs/policy.d.ts +11 -2
  15. package/dist-types/libs/prefetch/index.d.ts +2 -2
  16. package/dist-types/libs/prefetch/prefetch.d.ts +6 -22
  17. package/dist-types/libs/request-context.d.ts +24 -0
  18. package/dist-types/libs/save-consents.d.ts +4 -3
  19. package/dist-types/libs/script-loader/debug.d.ts +3 -0
  20. package/dist-types/libs/script-loader/index.d.ts +2 -1
  21. package/dist-types/libs/script-loader/types.d.ts +21 -0
  22. package/dist-types/runtime/index.d.ts +1 -1
  23. package/dist-types/store/type.d.ts +108 -7
  24. package/dist-types/translations/index.d.ts +1 -1
  25. package/dist-types/types/callbacks.d.ts +24 -2
  26. package/dist-types/types/compliance.d.ts +1 -1
  27. package/dist-types/types/iab-tcf.d.ts +2 -2
  28. package/dist-types/types/index.d.ts +2 -2
  29. package/dist-types/types/legal-links.d.ts +1 -1
  30. package/dist-types/version.d.ts +1 -1
  31. package/docs/api/overview.md +26 -4
  32. package/docs/api/setting-consent.md +5 -1
  33. package/docs/building-ui.md +21 -9
  34. package/docs/callbacks.md +71 -11
  35. package/docs/concepts/client-modes.md +17 -5
  36. package/docs/concepts/initialization-flow.md +9 -2
  37. package/docs/concepts/policy-packs.md +3 -3
  38. package/docs/iab/overview.md +11 -10
  39. package/docs/integrations/building-integrations.md +405 -0
  40. package/docs/integrations/databuddy.md +22 -5
  41. package/docs/integrations/google-tag-manager.md +2 -2
  42. package/docs/integrations/google-tag.md +2 -29
  43. package/docs/integrations/linkedin-insights.md +1 -1
  44. package/docs/integrations/meta-pixel.md +1 -1
  45. package/docs/integrations/microsoft-uet.md +1 -1
  46. package/docs/integrations/overview.md +18 -2
  47. package/docs/integrations/posthog.md +39 -17
  48. package/docs/integrations/tiktok-pixel.md +1 -1
  49. package/docs/integrations/x-pixel.md +1 -1
  50. package/docs/internationalization.md +1 -1
  51. package/docs/optimization.md +2 -6
  52. package/docs/policy-packs.md +3 -3
  53. package/docs/quickstart.md +18 -5
  54. package/docs/script-loader.md +22 -1
  55. 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://v2.c15t.com/changelog/2026-02-12-v2.0.0-rc.0
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
  [![GitHub stars](https://img.shields.io/github/stars/c15t/c15t?style=flat-square)](https://github.com/c15t/c15t)
13
13
  [![CI](https://img.shields.io/github/actions/workflow/status/c15t/c15t/ci.yml?style=flat-square)](https://github.com/c15t/c15t/actions/workflows/ci.yml)
14
- [![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)](https://github.com/c15t/c15t/blob/main/LICENSE.md)
14
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=flat-square)](https://github.com/c15t/c15t/blob/main/LICENSE.md)
15
15
  [![Discord](https://img.shields.io/discord/1312171102268690493?style=flat-square)](https://c15t.link/discord)
16
16
  [![npm version](https://img.shields.io/npm/v/c15t?style=flat-square)](https://www.npmjs.com/package/c15t)
17
17
  [![Top Language](https://img.shields.io/github/languages/top/c15t/c15t?style=flat-square)](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
- [GNU General Public License v3.0](https://github.com/c15t/c15t/blob/main/LICENSE.md)
119
+ [Apache License 2.0](https://github.com/c15t/c15t/blob/main/LICENSE.md)
120
120
 
121
121
  ---
122
122
 
123
- **Built with ❤️ by the [consent.io](https://www.consent.io?utm_source=github&utm_medium=repopage_c15t) team**
123
+ **Built by [Inth](https://inth.com?utm_source=github&utm_medium=repopage_c15t)**