chore: version packages - #53
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@consenti/api@0.4.0
Minor Changes
ed19d6b: compliance.complianceMap config merge + implementation, userId identity (getUserId/setUserId/consenti:listener:identify), Intl.Locale-based auto text direction, and full ThemeConfig CSS variable parity (breaking rename)
ed19d6b: Removed the
auditLogPurgeAfterDaysretention option (DataRetentionConfig) and the correspondingpurgeExpiredAuditLogsmethod from theStorageAdapterinterface and all seven storage adapters.audit_logsis now unconditionally append-only — never deleted by Consenti under any configuration.Breaking changes
Any config setting
compliance.dataRetention.auditLogPurgeAfterDaysis now a no-op (the field no longer exists on the type) and any customStorageAdapterimplementation that relied onpurgeExpiredAuditLogsbeing called will no longer see it invoked. Operators who need shorter audit-log retention must do so manually against their own database — this is intentionally outside Consenti's supported paths.compliance.dataRetention.purgeAfterDays(consent records) is unaffected.ed19d6b: Compliance-gap batch: salted/masked
hashIp()(compliance.dataSigningHash), TCF v2.3, configurablecore.cookieName,buildSyncGpcSnippet()for pre-mount GPC freezing, per-regionrequiresSensitiveOptIncarve-out (Colorado), equal accept/reject button prominence on the default opt-in profile, and supporting docs (TCF disclaimer, HMAC spoofability warning, PIPL/FZ-152 residency note).ed19d6b: Setup-wizard hardening (
/setup/completerequires/setup/seed-profilesto have run first), TCFcmpId/cmpVersionregistration governance (hash-based confirmation against IAB's CMP List, fails closed when unconfirmed), and new GPP (US National section) support with the same fail-closed governance shape, self-attestation only.ed19d6b: Added an optional
complianceGroupfield to a customcompliance.geoDataProvider's return value, on both the server (GeoResult,@consenti/api) and the widget (WidgetCountryResolverFn,@consenti/ui). When a provider returnscomplianceGroup, it's used directly — skipping the country/region jurisdiction-map lookup entirely — for providers that already carry legal-grade jurisdiction data and need to route a visitor into an operator-defined custom group. Omitting the field preserves existing country/region-map resolution exactly as before.Also wired up
apps/ui's standalone-modecompliance.geoDataProviderconfig for the first time — the type existed but was never actually consumed by the profile resolver, so a configured custom provider was silently ignored. It now runs (incompliance.type: 'auto', standalone/no-API mode), resolving a compliance group from its returnedcountry/regionagainst the same embedded/override compliance map the built-in timezone/language heuristic uses (including region-leveloverriddenRegionscarve-outs), withcomplianceGroupas the direct-override escape hatch described above.@consenti/ui@0.4.0
Minor Changes
ed19d6b: compliance.complianceMap config merge + implementation, userId identity (getUserId/setUserId/consenti:listener:identify), Intl.Locale-based auto text direction, and full ThemeConfig CSS variable parity (breaking rename)
ed19d6b: Added
getVisitor()to the widget API — a snapshot of the current visitor's identity: the stable per-browservisitorId(nulluntil a consent decision has actually happened; it's never minted just to answer this call), whether they're'authenticated'or'anonymous', and the appuserId(same value asgetUserId()). Wired into the React/Vue/Angular integrations alongside the existinggetUserId/setUserId.Also documented
getUserId()/setUserId()/getVisitor()on the/docs/ui/methodspage — they were implemented but missing from the docs.ed19d6b:
getConsent('category')now returns real per-category consent — keyed by your authoredpreferenceModal.categoriesIDs, using the standard'granted' | 'denied' | 'objected'values ('granted' only when every parameter in the category is granted) — instead of the fixed purpose taxonomy it silently returned before. AddedgetConsent('purpose')for the old purpose-keyed output (necessary/functional/preferences/analytics/marketing).Breaking changes
getConsent('category')'s output shape changed. Callers relying on the old purpose-keyed output must switch togetConsent('purpose').ed19d6b: Compliance-gap batch: salted/masked
hashIp()(compliance.dataSigningHash), TCF v2.3, configurablecore.cookieName,buildSyncGpcSnippet()for pre-mount GPC freezing, per-regionrequiresSensitiveOptIncarve-out (Colorado), equal accept/reject button prominence on the default opt-in profile, and supporting docs (TCF disclaimer, HMAC spoofability warning, PIPL/FZ-152 residency note).ed19d6b: Setup-wizard hardening (
/setup/completerequires/setup/seed-profilesto have run first), TCFcmpId/cmpVersionregistration governance (hash-based confirmation against IAB's CMP List, fails closed when unconfirmed), and new GPP (US National section) support with the same fail-closed governance shape, self-attestation only.ed19d6b: Added an optional
complianceGroupfield to a customcompliance.geoDataProvider's return value, on both the server (GeoResult,@consenti/api) and the widget (WidgetCountryResolverFn,@consenti/ui). When a provider returnscomplianceGroup, it's used directly — skipping the country/region jurisdiction-map lookup entirely — for providers that already carry legal-grade jurisdiction data and need to route a visitor into an operator-defined custom group. Omitting the field preserves existing country/region-map resolution exactly as before.Also wired up
apps/ui's standalone-modecompliance.geoDataProviderconfig for the first time — the type existed but was never actually consumed by the profile resolver, so a configured custom provider was silently ignored. It now runs (incompliance.type: 'auto', standalone/no-API mode), resolving a compliance group from its returnedcountry/regionagainst the same embedded/override compliance map the built-in timezone/language heuristic uses (including region-leveloverriddenRegionscarve-outs), withcomplianceGroupas the direct-override escape hatch described above.@consenti/types@0.4.0
Minor Changes
ed19d6b: compliance.complianceMap config merge + implementation, userId identity (getUserId/setUserId/consenti:listener:identify), Intl.Locale-based auto text direction, and full ThemeConfig CSS variable parity (breaking rename)
ed19d6b: Removed the
auditLogPurgeAfterDaysretention option (DataRetentionConfig) and the correspondingpurgeExpiredAuditLogsmethod from theStorageAdapterinterface and all seven storage adapters.audit_logsis now unconditionally append-only — never deleted by Consenti under any configuration.Breaking changes
Any config setting
compliance.dataRetention.auditLogPurgeAfterDaysis now a no-op (the field no longer exists on the type) and any customStorageAdapterimplementation that relied onpurgeExpiredAuditLogsbeing called will no longer see it invoked. Operators who need shorter audit-log retention must do so manually against their own database — this is intentionally outside Consenti's supported paths.compliance.dataRetention.purgeAfterDays(consent records) is unaffected.ed19d6b: Added
getVisitor()to the widget API — a snapshot of the current visitor's identity: the stable per-browservisitorId(nulluntil a consent decision has actually happened; it's never minted just to answer this call), whether they're'authenticated'or'anonymous', and the appuserId(same value asgetUserId()). Wired into the React/Vue/Angular integrations alongside the existinggetUserId/setUserId.Also documented
getUserId()/setUserId()/getVisitor()on the/docs/ui/methodspage — they were implemented but missing from the docs.ed19d6b:
getConsent('category')now returns real per-category consent — keyed by your authoredpreferenceModal.categoriesIDs, using the standard'granted' | 'denied' | 'objected'values ('granted' only when every parameter in the category is granted) — instead of the fixed purpose taxonomy it silently returned before. AddedgetConsent('purpose')for the old purpose-keyed output (necessary/functional/preferences/analytics/marketing).Breaking changes
getConsent('category')'s output shape changed. Callers relying on the old purpose-keyed output must switch togetConsent('purpose').ed19d6b: Compliance-gap batch: salted/masked
hashIp()(compliance.dataSigningHash), TCF v2.3, configurablecore.cookieName,buildSyncGpcSnippet()for pre-mount GPC freezing, per-regionrequiresSensitiveOptIncarve-out (Colorado), equal accept/reject button prominence on the default opt-in profile, and supporting docs (TCF disclaimer, HMAC spoofability warning, PIPL/FZ-152 residency note).ed19d6b: Setup-wizard hardening (
/setup/completerequires/setup/seed-profilesto have run first), TCFcmpId/cmpVersionregistration governance (hash-based confirmation against IAB's CMP List, fails closed when unconfirmed), and new GPP (US National section) support with the same fail-closed governance shape, self-attestation only.ed19d6b: Added an optional
complianceGroupfield to a customcompliance.geoDataProvider's return value, on both the server (GeoResult,@consenti/api) and the widget (WidgetCountryResolverFn,@consenti/ui). When a provider returnscomplianceGroup, it's used directly — skipping the country/region jurisdiction-map lookup entirely — for providers that already carry legal-grade jurisdiction data and need to route a visitor into an operator-defined custom group. Omitting the field preserves existing country/region-map resolution exactly as before.Also wired up
apps/ui's standalone-modecompliance.geoDataProviderconfig for the first time — the type existed but was never actually consumed by the profile resolver, so a configured custom provider was silently ignored. It now runs (incompliance.type: 'auto', standalone/no-API mode), resolving a compliance group from its returnedcountry/regionagainst the same embedded/override compliance map the built-in timezone/language heuristic uses (including region-leveloverriddenRegionscarve-outs), withcomplianceGroupas the direct-override escape hatch described above.@consenti/utils@0.4.0
Minor Changes
hashIp()(compliance.dataSigningHash), TCF v2.3, configurablecore.cookieName,buildSyncGpcSnippet()for pre-mount GPC freezing, per-regionrequiresSensitiveOptIncarve-out (Colorado), equal accept/reject button prominence on the default opt-in profile, and supporting docs (TCF disclaimer, HMAC spoofability warning, PIPL/FZ-152 residency note)./setup/completerequires/setup/seed-profilesto have run first), TCFcmpId/cmpVersionregistration governance (hash-based confirmation against IAB's CMP List, fails closed when unconfirmed), and new GPP (US National section) support with the same fail-closed governance shape, self-attestation only.@consenti/browser-engine@0.1.1
Patch Changes
launchSession(): if anything afterchromium.launch()failed (mostcommonly
page.goto()timing out or hitting a DNS/connection error — the normal case for acrawler visiting arbitrary URLs), the already-launched browser process was never closed and ran
until the OS reaped it. Now the browser is closed on any failure before the error is re-thrown.