Compare commits
No commits in common. "2fa105ac1a31c099e9a013fba8c71fbac134bb1e" and "1fe78d39e16c538b689ebd4d32f972465eaee396" have entirely different histories.
2fa105ac1a
...
1fe78d39e1
|
|
@ -2,12 +2,6 @@
|
|||
|
||||
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
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@pdntechnology/cookie-consent",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@pdntechnology/cookie-consent",
|
||||
"version": "1.1.2",
|
||||
"version": "1.1.0",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"vitest": "^3.2.4"
|
||||
|
|
|
|||
27
package.json
27
package.json
|
|
@ -1,14 +1,12 @@
|
|||
{
|
||||
"name": "@pdntechnology/cookie-consent",
|
||||
"version": "1.1.3",
|
||||
"version": "1.1.1",
|
||||
"description": "Lightweight Google Consent Mode v2 CMP for React and Next.js",
|
||||
"type": "module",
|
||||
"main": "./src/index.js",
|
||||
"module": "./src/index.js",
|
||||
"types": "./src/index.d.ts",
|
||||
"sideEffects": [
|
||||
"./src/styles.css"
|
||||
],
|
||||
"sideEffects": ["./src/styles.css"],
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.d.ts",
|
||||
|
|
@ -22,14 +20,7 @@
|
|||
},
|
||||
"./styles.css": "./src/styles.css"
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"README.md",
|
||||
"README.tr.md",
|
||||
"LICENSE",
|
||||
"CHANGELOG.md",
|
||||
"CONTRIBUTING.md"
|
||||
],
|
||||
"files": ["src", "README.md", "README.tr.md", "LICENSE", "CHANGELOG.md", "CONTRIBUTING.md"],
|
||||
"scripts": {
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
|
|
@ -41,15 +32,9 @@
|
|||
"react-dom": ">=18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"next": {
|
||||
"optional": true
|
||||
},
|
||||
"react": {
|
||||
"optional": true
|
||||
},
|
||||
"react-dom": {
|
||||
"optional": true
|
||||
}
|
||||
"next": { "optional": true },
|
||||
"react": { "optional": true },
|
||||
"react-dom": { "optional": true }
|
||||
},
|
||||
"devDependencies": {
|
||||
"vitest": "^3.2.4"
|
||||
|
|
|
|||
2
src/index.d.ts
vendored
2
src/index.d.ts
vendored
|
|
@ -44,7 +44,7 @@ export const GOOGLE_CONSENT_SIGNALS: readonly string[];
|
|||
|
||||
export function configureConsent(config?: ConsentConfig): ConsentConfig;
|
||||
export function getConsentConfig(): ConsentConfig;
|
||||
export const defaultConfig: ConsentConfig;
|
||||
export function defaultConfig: ConsentConfig;
|
||||
|
||||
export function getConsent(): UserConsent | null;
|
||||
export function setConsent(preferences: Partial<UserConsent>): PersistResult;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user