ep_hide_referrer 0.0.67 → 0.0.69

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.
@@ -29,7 +29,7 @@ jobs:
29
29
  - uses: actions/setup-node@v6
30
30
  name: Install Node.js
31
31
  with:
32
- node-version: 22
32
+ node-version: 25
33
33
  - uses: pnpm/action-setup@v6
34
34
  name: Install pnpm
35
35
  with:
@@ -19,7 +19,7 @@ jobs:
19
19
  - uses: actions/setup-node@v6
20
20
  name: Install Node.js
21
21
  with:
22
- node-version: 22
22
+ node-version: 25
23
23
  - uses: pnpm/action-setup@v6
24
24
  name: Install pnpm
25
25
  with:
@@ -23,7 +23,7 @@ jobs:
23
23
  # OIDC trusted publishing needs npm >= 11.5.1, which requires
24
24
  # Node >= 20.17.0. setup-node's `20` resolves to the latest
25
25
  # 20.x, which satisfies that.
26
- node-version: 20
26
+ node-version: 25
27
27
  registry-url: https://registry.npmjs.org/
28
28
  - name: Upgrade npm to >=11.5.1 (required for trusted publishing)
29
29
  run: npm install -g npm@latest
package/AGENTS.md ADDED
@@ -0,0 +1,62 @@
1
+ # Agent Guide — ep_hide_referrer
2
+
3
+ Don't pass the referring URL to third parties. This handles the security/privacy issue where you don't want the third party service to know your pad URL. Improves Privacy.
4
+
5
+ ## Tech stack
6
+
7
+ * Etherpad plugin framework (hooks declared in `ep.json`)
8
+ * EJS templates rendered server-side via `eejsBlock_*` hooks
9
+
10
+ ## Project structure
11
+
12
+ ```
13
+ ep_hide_referrer/
14
+ ├── AGENTS.md
15
+ ├── CONTRIBUTING.md
16
+ ├── ep.json
17
+ ├── index.js
18
+ ├── package.json
19
+ ├── static/
20
+ │ ├── js/
21
+ │ ├── tests/
22
+ ├── templates/
23
+ │ ├── redirect.html
24
+ ```
25
+
26
+ ## Helpers used
27
+
28
+ _None — `ep_plugin_helpers` is not a dependency. Adoption is part of the helpers-adoption sweep (Phase 4)._
29
+
30
+
31
+ ## Helpers NOT used
32
+
33
+ _To be audited in the helpers-adoption sweep (Phase 4)._
34
+
35
+
36
+ ## Running tests locally
37
+
38
+ `ep_hide_referrer` runs inside Etherpad's test harness. From an etherpad checkout that has installed this plugin via `pnpm run plugins i --path ../ep_hide_referrer`:
39
+
40
+ ```bash
41
+ # Backend (Mocha) — harness boots its own server
42
+ pnpm --filter ep_etherpad-lite run test
43
+
44
+ # Playwright — needs `pnpm run dev` in a second terminal
45
+ pnpm --filter ep_etherpad-lite run test-ui
46
+ ```
47
+
48
+ ## Standing rules for agent edits
49
+
50
+ * PRs target `main`. Linear commits, no merge commits.
51
+ * Every bug fix includes a regression test in the same commit.
52
+ * All user-facing strings in `locales/`. No hardcoded English in templates.
53
+ * No hardcoded `aria-label` on icon-only controls — etherpad's html10n auto-populates `aria-label` from the localized string when (a) the element has a `data-l10n-id` and (b) no author-supplied `aria-label` is present. Adding a hardcoded English `aria-label` blocks that and leaves it untranslated. (See `etherpad-lite/src/static/js/vendors/html10n.ts:665-678`.)
54
+ * No nested interactive elements (no `<button>` inside `<a>`).
55
+ * LLM/Agent contributions are explicitly welcomed by maintainers.
56
+
57
+ ## Quick reference: hooks declared in `ep.json`
58
+
59
+ * Server: `expressCreateServer`
60
+ * Client: `postAceInit`, `postTimesliderInit`
61
+
62
+ When adding a hook, register it in both `ep.json` *and* the matching `exports.<hook> = ...` in the JS file.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_hide_referrer",
3
3
  "description": "Don't pass the referring URL to third parties. This handles the security/privacy issue where you don't want the third party service to know your pad URL. Improves Privacy.",
4
- "version": "0.0.67",
4
+ "version": "0.0.69",
5
5
  "author": "johnyma22 (John McLear) <john@mclear.co.uk>",
6
6
  "contributors": [],
7
7
  "repository": {