X (Twitter)

Discord

GitHub1.1k
1.6 min read

v1.4.0 — Ignore Geo, Provider DX, Store Config, A11y, CLI Fixes

Posted By

Christopher Burns
Consent Team
Christopher Burns

Minor Changes

  • feat(core, react): added ignoreGeoLocation to provider and store to allow showing the cookie banner during development regardless of geo. Also improved provider props with a new consentCategories option (DX-friendly alias for store.initialGDPRTypes). (c7b4ad5)
  • feat(core): added config prop on the store for better debugging and inspection. (6eb9a8d)

Patch Changes

  • fix(react): add aria-label to the cookie banner component to improve accessibility. (ed5092e)
  • fix(cli): remove unnecessary env import during onboarding for Next.js config generation. (6eb9a8d)
  • fix(cli): resolved duplicate package manager prompt during setup. (37ef4c5)
  • chore(core/react): small cleanup and provider/store prop alignment. (e30ffaf)
  • chore: additional housekeeping and consistency updates. (169de72)

Updated Dependencies

  • Updated dependencies [6eb9a8d]
    • @c15t/react@1.4.0

Usage Notes

  • To force the cookie banner to appear during local development outside of regulated regions, enable ignoreGeoLocation.
  • Prefer consentCategories over store.initialGDPRTypes for a clearer provider-level configuration.
<ConsentManagerProvider
  options={{
    mode: 'c15t',
    backendURL: process.env.NEXT_PUBLIC_C15T_URL,
    ignoreGeoLocation: true,
    consentCategories: ['necessary', 'analytics', 'marketing'],
  }}
/>
  • Use the store config prop to inspect or log runtime settings for debugging.
createConsentManagerStore({
  config: { verbose: true },
});

✨ What's Changed

  • feat(core, react): added ignoreGeoLocation / provider props improvements — c7b4ad5
  • fix(cli): remove env import — 6eb9a8d
  • fix(react): add aria label to cookie banner — ed5092e
  • fix(cli): asks for pkg manager twice — 37ef4c5
  • chore(core/react): provider/store cleanup — e30ffaf
  • misc: housekeeping — 169de72

Published via commit e0026b4 by @github-actions

Full Changelog: c15t@1.3.3...c15t@1.4.0

Thank you to our contributors

c15t.com