diff --git a/CHANGELOG.md b/CHANGELOG.md index 3be94c0..855d7ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project are documented in this file. +## [1.1.3] - 2026-06-20 + +### Fixed + +- TypeScript declaration for `defaultConfig` (`export const`, not `export function`) + ## [1.1.0] - 2026-06-20 ### Added diff --git a/package.json b/package.json index 32b727a..1d99245 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pdntechnology/cookie-consent", - "version": "1.1.2", + "version": "1.1.3", "description": "Lightweight Google Consent Mode v2 CMP for React and Next.js", "type": "module", "main": "./src/index.js", diff --git a/src/index.d.ts b/src/index.d.ts index 81e58d5..6cf0926 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -44,7 +44,7 @@ export const GOOGLE_CONSENT_SIGNALS: readonly string[]; export function configureConsent(config?: ConsentConfig): ConsentConfig; export function getConsentConfig(): ConsentConfig; -export function defaultConfig: ConsentConfig; +export const defaultConfig: ConsentConfig; export function getConsent(): UserConsent | null; export function setConsent(preferences: Partial): PersistResult;