@emplugins/emprivacy 2.1.0 → 3.0.0

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** `^0.38.0` (**tested with `0.38.0`**; re-test on your deployed minor when upgrading).
30
+ - **EmDash** `^1.0.1` (**tested with `1.0.1`**). 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
 
@@ -41,7 +41,7 @@ npm install @emplugins/emprivacy
41
41
 
42
42
  Published under the [emplugins](https://www.npmjs.com/org/emplugins) npm org. Source: [github.com/EmPlugins/EmPrivacy](https://github.com/EmPlugins/EmPrivacy). See [EMDASH_COMPAT.md](./EMDASH_COMPAT.md) for EmDash version mapping.
43
43
 
44
- Use a **semver range** if you want controlled upgrades, for example `@emplugins/emprivacy@^1.0.0`. Versioning: [docs/RELEASES.md](docs/RELEASES.md). Org publish: [docs/NPM_ORG_PUBLISH.md](docs/NPM_ORG_PUBLISH.md).
44
+ Use a **semver range** if you want controlled upgrades, for example `@emplugins/emprivacy@^3.0.0`. Versioning: [docs/RELEASES.md](docs/RELEASES.md). Org publish: [docs/NPM_ORG_PUBLISH.md](docs/NPM_ORG_PUBLISH.md).
45
45
 
46
46
  The legacy unscoped package `emprivacy` is deprecated; migrate imports to `@emplugins/emprivacy`.
47
47
 
package/dist/index.mjs CHANGED
@@ -1463,7 +1463,7 @@ function buildVendorList(cfg) {
1463
1463
  }
1464
1464
  //#endregion
1465
1465
  //#region src/version.ts
1466
- const VERSION = "2.1.0";
1466
+ const VERSION = "3.0.0";
1467
1467
  //#endregion
1468
1468
  //#region src/runtime.ts
1469
1469
  /** Soft cap for anonymous consent POSTs per client fingerprint per UTC hour. */
@@ -1770,7 +1770,7 @@ function createPlugin() {
1770
1770
  }
1771
1771
  async function buildSettingsPage(ctx) {
1772
1772
  const [cfg, latestPublished] = await Promise.all([loadConfig(ctx), fetchLatestPublishedVersion({ fetch: ctx.http?.fetch ?? globalThis.fetch })]);
1773
- const installedVersion = ctx.plugin?.version ?? "2.1.0";
1773
+ const installedVersion = ctx.plugin?.version ?? "3.0.0";
1774
1774
  const analyticsText = cfg.analyticsScriptUrls.map((src) => {
1775
1775
  const i = cfg.scriptIntegrity[src];
1776
1776
  return i ? `${src} ${i}` : src;
@@ -25,7 +25,7 @@ pnpm run build
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 0.38). Regenerate the lockfile with `pnpm install` after changing overrides.
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.
29
29
 
30
30
  ## Deprecation warnings you may still see
31
31
 
@@ -21,7 +21,7 @@ This guide is for **EmDash site managers** who want cookie consent on a live sit
21
21
 
22
22
  ## Before you begin
23
23
 
24
- 1. An EmDash site on **`emdash@^0.38.0`** with the EmDash Astro integration in `astro.config`.
24
+ 1. An EmDash site on **`emdash@^1.0.1`** with the EmDash Astro integration in `astro.config`. EmDash 0.x is not supported.
25
25
  2. Ability to edit **`astro.config`** and redeploy (or run locally).
26
26
  3. Register EmPrivacy as a **native** plugin (`plugins: []`, not `sandboxed: []`).
27
27
 
@@ -35,7 +35,7 @@ pnpm add @emplugins/emprivacy
35
35
  npm install @emplugins/emprivacy
36
36
  ```
37
37
 
38
- Pin a line with a range such as `@emplugins/emprivacy@^1.0.0`. See [RELEASES.md](./RELEASES.md).
38
+ Pin a line with a range such as `@emplugins/emprivacy@^3.0.0`. See [RELEASES.md](./RELEASES.md).
39
39
 
40
40
  ---
41
41
 
package/docs/RELEASES.md CHANGED
@@ -25,7 +25,7 @@ These guards keep published tarballs consistent with `package.json` and avoid sh
25
25
  - **`dist/` is not committed** — It is listed in `.gitignore`. Build artifacts are produced locally, in CI, and **immediately before publish** via `prepublishOnly`.
26
26
  - **`prepublishOnly`** — Runs `sync:version` (keeps `src/version.ts` aligned with `package.json`), `typecheck`, `build`, `test`, **`verify:exports`**, and `pnpm audit`.
27
27
  - **`kysely` override** — The dev-dependency `emdash` can resolve an older `kysely`; `pnpm.overrides` in `package.json` pins a **patched** Kysely so `pnpm audit` stays clean. See [docs/DEVELOPMENT.md](DEVELOPMENT.md).
28
- - **Install range** — Pin consumers with semver as needed, e.g. `@emplugins/emprivacy@^1.0.0`.
28
+ - **Install range** — Pin consumers with semver as needed, e.g. `@emplugins/emprivacy@^3.0.0`. Requires EmDash `^1.0.1`.
29
29
 
30
30
  Before publishing locally (usually unnecessary once CI is configured):
31
31
 
@@ -77,5 +77,5 @@ See [EMDASH_COMPAT.md](../EMDASH_COMPAT.md) for tested upstream versions and upg
77
77
  Pin with a range that matches your risk tolerance, for example:
78
78
 
79
79
  ```bash
80
- pnpm add @emplugins/emprivacy@^1.0.0
80
+ pnpm add @emplugins/emprivacy@^3.0.0
81
81
  ```
@@ -6,6 +6,13 @@
6
6
 
7
7
  _(none)_
8
8
 
9
+ # emprivacy v3.0.0
10
+
11
+ ## Changes
12
+
13
+ - **EmDash 1.0 baseline** — Requires **`emdash@^1.0.1`** (tested with **`1.0.1`**). EmDash 0.x is not supported. Sites still on EmDash 0.38 should stay on `@emplugins/emprivacy@2`.
14
+ - Remains a **native** plugin: `format: "native"`, named `createPlugin()`, `page:fragments`, and Portable Text embed placeholders. Register `emprivacyPlugin()` in `plugins: []`. The official plugin registry only accepts sandboxed plugins, so this package stays on npm.
15
+
9
16
  # emprivacy v2.1.0
10
17
 
11
18
  ## Changes
package/docs/TESTING.md CHANGED
@@ -16,7 +16,7 @@ These scripts do **not** start EmDash or drive a browser.
16
16
 
17
17
  ## Manual integration QA (required before production)
18
18
 
19
- Use a **staging** EmDash Astro app on **`emdash@^0.38.0`** with `emprivacyPlugin()` in **`plugins: []`**, layout wires (`EmDashHead` / body components with page context), and the same EmDash version you plan to ship.
19
+ Use a **staging** EmDash Astro app on **`emdash@^1.0.1`** with `emprivacyPlugin()` in **`plugins: []`**, layout wires (`EmDashHead` / body components with page context), and the same EmDash version you plan to ship. EmDash 0.x is not supported.
20
20
 
21
21
  ### Core flows
22
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "//": "SPDX-License-Identifier: MIT",
3
3
  "name": "@emplugins/emprivacy",
4
- "version": "2.1.0",
4
+ "version": "3.0.0",
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",
@@ -39,14 +39,14 @@
39
39
  "license": "MIT",
40
40
  "packageManager": "pnpm@9.15.4",
41
41
  "peerDependencies": {
42
- "emdash": "^0.38.0"
42
+ "emdash": "^1.0.1"
43
43
  },
44
44
  "dependencies": {
45
45
  "zod": "4.6.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@changesets/cli": "^3.0.3",
49
- "emdash": "0.38.0",
49
+ "emdash": "^1.0.1",
50
50
  "tsdown": "^0.23.0",
51
51
  "typescript": "^5.9.3",
52
52
  "vitest": "^5.0.1"