c15t 2.0.0-rc.6 → 2.0.0-rc.8
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 +34 -0
- package/dist/index.cjs +534 -129
- package/dist/index.js +500 -122
- 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 +1 -1
- 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 +3 -2
- 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 +52 -4
- 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 +16 -4
- package/docs/concepts/initialization-flow.md +9 -2
- package/docs/concepts/policy-packs.md +2 -2
- package/docs/iab/overview.md +2 -0
- 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/optimization.md +2 -6
- package/docs/policy-packs.md +3 -3
- package/docs/quickstart.md +14 -1
- package/docs/script-loader.md +22 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# c15t
|
|
2
2
|
|
|
3
|
+
## 2.0.0-rc.8
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3d4c107: feat(consent): add change-only consent callbacks
|
|
8
|
+
|
|
9
|
+
- add `onConsentChanged` as a dedicated callback for explicit consent saves that change an existing persisted consent state
|
|
10
|
+
- include both previous and current consent categories in the callback payload so analytics and integrations can diff grant/revoke transitions directly
|
|
11
|
+
- keep `onConsentSet` focused on broad consent-state updates, including initialization and auto-grant flows
|
|
12
|
+
- update the React provider to keep callback registrations in sync when callback props change after mount
|
|
13
|
+
|
|
14
|
+
- c944e35: feat(core): move policy action resolution from @c15t/react to c15t core
|
|
15
|
+
|
|
16
|
+
Policy-driven action resolution utilities (`resolvePolicyAllowedActions`, `resolvePolicyActionGroups`, `resolvePolicyPrimaryActions`, etc.) are now exported from `c15t` core for shared consent surface runtimes.
|
|
17
|
+
|
|
18
|
+
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.
|
|
19
|
+
|
|
20
|
+
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`.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 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.
|
|
25
|
+
- 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.
|
|
26
|
+
|
|
27
|
+
- `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.
|
|
28
|
+
- `@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.
|
|
29
|
+
- `@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.
|
|
30
|
+
- `@c15t/cli`: update generated static-route templates to rely on automatic prefetch consumption instead of wiring manual prefetch lookups.
|
|
31
|
+
|
|
32
|
+
- Updated dependencies [3d5b0fd]
|
|
33
|
+
- Updated dependencies [fee82fd]
|
|
34
|
+
- @c15t/schema@2.0.0-rc.5
|
|
35
|
+
- @c15t/translations@2.0.0-rc.8
|
|
36
|
+
|
|
3
37
|
## 2.0.0-rc.6
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|