X (Twitter)

Discord

GitHub1.1k
2.03 min read

v1.2.1 โ€” API Architecture Hardening, Translations Cleanup, and Tailwind v3 Fix

Posted By

Christopher Burns
Consent Team
Christopher Burns

Summary

This release delivers a major refactor and architecture upgrade across the API system, along with enhanced translation handling, styling fixes, and groundwork for future CLI and dashboard features. It introduces a type-safe Node.js SDK, centralized routing, and better configuration defaults โ€” paving the way for production-ready scaling.

๐Ÿš€ New Features

  • Introduced a Node.js SDK for type-safe client access to the C15T API
  • Added OpenAPI support for backend contracts
  • New contract-based routing for consent and meta endpoints
  • Support for common translation strings across UI components
  • Early support for dev vs prod instance logic and origin handling

๐Ÿ› Bug Fixes

  • Fixed Tailwind CSS v3 layer collision by removing unused @layer wrappers
  • Improved schema validation for setConsent
  • Fixed environment variable parsing for trusted origins
  • Improved fallback handling for translations and jurisdiction detection

๐Ÿงช Tests

  • Added test coverage for new consent contracts and schema validation
  • Extended coverage for translations, error handling, and Node.js SDK
  • Cleaned up outdated tests and fixtures

๐Ÿงน Refactor

  • Migrated backend from H3 to oRPC for improved type safety
  • Consolidated translation logic and removed widget-specific translations
  • Introduced a unified logger utility
  • Simplified consent manager configuration and routing structure

๐Ÿ”’ Closed Issues

  • #222 โ€” duplicate/overlapping translation keys between dialog and widget (resolved by consolidation to common)
  • #217 / #218 โ€” Tailwind v3 @layer base collision (fixed by removing layer wrappers)

โœจ What's Changed

Published via commit f82e56a by @github-actions

Full Changelog: c15t@1.2.0...c15t@1.2.1

Thank you to our contributors

c15t.com