@emplugins/emprivacy 3.2.0 → 3.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.
package/README.md CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  ## Requirements
29
29
 
30
- - **EmDash** `^1.0.1` (**tested with `1.0.1`**). EmDash 0.x is not supported.
30
+ - **EmDash** `^1.0.1` (**CI-tested with `1.0.1` and `1.4.0`**). EmDash 0.x is not supported.
31
31
  - **Node.js** `>= 22.16` (matches EmDash’s engine requirement).
32
32
  - Register as a **native** plugin in **`astro.config`** via `plugins: []` (not `sandboxed: []`). EmPrivacy uses `page:fragments` for the public banner and `componentsEntry` for embed placeholders. See [Page fragments](https://docs.emdashcms.com/plugins/creating-native-plugins/page-fragments/) and [Plugin overview](https://docs.emdashcms.com/plugins/overview/).
33
33
 
package/dist/index.mjs CHANGED
@@ -1927,7 +1927,7 @@ function buildVendorList(cfg) {
1927
1927
  }
1928
1928
  //#endregion
1929
1929
  //#region src/version.ts
1930
- const VERSION = "3.2.0";
1930
+ const VERSION = "3.2.1";
1931
1931
  //#endregion
1932
1932
  //#region src/runtime.ts
1933
1933
  /** Soft cap for anonymous consent POSTs per trusted client address per UTC hour. */
@@ -2267,7 +2267,7 @@ function createPlugin() {
2267
2267
  }
2268
2268
  async function buildSettingsPage(ctx) {
2269
2269
  const [cfg, latestPublished] = await Promise.all([loadConfig(ctx), fetchLatestPublishedVersion({ fetch: ctx.http?.fetch ?? globalThis.fetch })]);
2270
- const installedVersion = ctx.plugin?.version ?? "3.2.0";
2270
+ const installedVersion = ctx.plugin?.version ?? "3.2.1";
2271
2271
  const analyticsText = cfg.analyticsScriptUrls.map((src) => {
2272
2272
  const i = cfg.scriptIntegrity[src];
2273
2273
  return i ? `${src} ${i}` : src;
@@ -21,11 +21,11 @@ pnpm run build
21
21
 
22
22
  ## `pnpm audit` and the Kysely override
23
23
 
24
- `pnpm run audit` runs **`pnpm audit --prod`**, so it reflects **published runtime** dependencies only (currently `zod` 4.6.5).
24
+ `pnpm run audit` runs **`pnpm audit --prod`**, so it reflects **published runtime** dependencies only (currently `zod` 4.6.7).
25
25
 
26
26
  The full install (including the `emdash` **dev** tree) can report transitive advisories from EmDash’s tooling stack. Those are owned by the site’s EmDash upgrade path, not by EmPrivacy’s published tarball.
27
27
 
28
- **This repository pins Kysely** via `pnpm.overrides` in `package.json` (currently `0.29.6`, aligned with EmDash 1.0.1). Regenerate the lockfile with `pnpm install` after changing overrides.
28
+ **This repository pins Kysely** via `pnpm.overrides` in `package.json` (currently `0.29.6`). EmDash 1.x declares Kysely as `^0.29.0`. Regenerate the lockfile with `pnpm install` after changing overrides.
29
29
 
30
30
  ## Deprecation warnings you may still see
31
31
 
package/docs/RELEASES.md CHANGED
@@ -55,7 +55,7 @@ In Cursor, ask to publish a minor (or patch) release. The agent follows [`.curso
55
55
  3. Merge the **Version Packages** PR as soon as it opens. Its own CI often sits at `action_required` (the Release workflow opened it with `GITHUB_TOKEN`). `pnpm release:publish` on `main` is the publish-time test gate.
56
56
  4. Treat `+ @emplugins/emprivacy@<version>` in the Release log as a successful publish. The npm registry can 404 that version for several minutes while it scans the tarball. Poll `https://registry.npmjs.org/@emplugins/emprivacy/<version>` for up to 15 minutes. Do not publish again during that window.
57
57
 
58
- Requires **`NPM_TOKEN`** secret on the repo (publish rights for `@emplugins/emprivacy` on the [emplugins](https://www.npmjs.com/org/emplugins) org). Details: [maintainer-release.md](./maintainer-release.md).
58
+ Release publishes with npm trusted publishing from `release.yml`. Details: [maintainer-release.md](./maintainer-release.md).
59
59
 
60
60
  ### Local (fallback)
61
61
 
@@ -6,6 +6,15 @@
6
6
 
7
7
  No unreleased changes.
8
8
 
9
+ # emprivacy v3.2.1
10
+
11
+ ## Changes
12
+
13
+ - **EmDash 1.4.0** — CI-tested with EmDash `1.0.1` and `1.4.0`. Peer dependency stays `emdash@^1.0.1`. No plugin API change.
14
+ - **zod 4.6.7** — Runtime dependency updated from 4.6.5 so production audit clears GHSA-mrhx-c7xc-m3w5 (oversized constrained collections).
15
+ - **Policy links on EmDash 1.2+** — Root-relative privacy and cookie policy paths resolve with `ctx.url()`, which follows the configured site origin (site URL setting, then the address the site was set up on). A site that moves domain sees the new origin in those links after the server restarts.
16
+ - **Install hook** — EmDash 1.2+ runs `plugin:install` once for a plugin registered in `plugins: []`. EmPrivacy seeds default settings only when none are stored.
17
+
9
18
  # emprivacy v3.2.0
10
19
 
11
20
  ## Changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "//": "SPDX-License-Identifier: MIT",
3
3
  "name": "@emplugins/emprivacy",
4
- "version": "3.2.0",
4
+ "version": "3.2.1",
5
5
  "description": "Cookie consent, gated embeds, and privacy notices for EmDash (GDPR, CCPA/CIPA-oriented configuration)",
6
6
  "type": "module",
7
7
  "main": "dist/index.mjs",
@@ -42,11 +42,11 @@
42
42
  "emdash": "^1.0.1"
43
43
  },
44
44
  "dependencies": {
45
- "zod": "4.6.5"
45
+ "zod": "4.6.7"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@changesets/cli": "^3.0.3",
49
- "emdash": "^1.0.1",
49
+ "emdash": "^1.4.0",
50
50
  "tsdown": "^0.23.0",
51
51
  "typescript": "^5.9.3",
52
52
  "vitest": "^5.0.1"
@@ -66,7 +66,7 @@
66
66
  "pnpm": {
67
67
  "overrides": {
68
68
  "kysely": "0.29.6",
69
- "zod": "4.6.5"
69
+ "zod": "4.6.7"
70
70
  }
71
71
  },
72
72
  "scripts": {