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
- refactor(api): switch to oRPC and unified contract routing by @BurnedChris in #213
- feat(sdk): introduce Node.js client with OpenAPI support by @BurnedChris in #214
- fix(styles): remove Tailwind layer to avoid collision by @KayleeWilliams in #217
- refactor(translations): consolidate into common + remove widget keys by @KayleeWilliams in #219
- fix(schema): improve
setConsent
validation by @KayleeWilliams - Version Packages by @github-actions in #220
Published via commit f82e56a by @github-actions
Full Changelog: c15t@1.2.0...c15t@1.2.1