@cookiemunch/react 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/package.json +3 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,25 @@
1
+ # Changelog: @cookiemunch/react
2
+
3
+ Every published release, newest first. Dates are the day the version was cut.
4
+
5
+ ## 0.2.1 (2026-10-22)
6
+
7
+ - The package now ships this changelog and a README.
8
+
9
+ ## 0.2.0 (2026-10-19)
10
+
11
+ - Added: `<CookieDeclaration>`, the live cookie declaration for a privacy page (the embed draws it; React does not own its children).
12
+ - Added: `<RightsLink>`, "your privacy rights" for a signed-in person: mints a single-use account link on click.
13
+
14
+ ## 0.1.2 (2026-10-15)
15
+
16
+ - Changed: the package builds standalone from its public repository and is published with npm provenance.
17
+
18
+ ## 0.1.1 (2026-10-15)
19
+
20
+ - Fixed: ships `"use client"` so App Router Server Components can import the package.
21
+ - Fixed: client and server-safe modules are split, so `isGranted` works in Server Components.
22
+
23
+ ## 0.1.0 (2026-10-14)
24
+
25
+ - First release under `@cookiemunch/react`: `<ConsentProvider>`, `useConsent`, `<ConsentGate>`, plus `useConsentValue` and `consentCookie` / `useConsentCookie`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cookiemunch/react",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "React/Next wrapper for Cookie Munch",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -14,7 +14,8 @@
14
14
  },
15
15
  "files": [
16
16
  "dist",
17
- "README.md"
17
+ "README.md",
18
+ "CHANGELOG.md"
18
19
  ],
19
20
  "scripts": {
20
21
  "build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsup",