@aeptus/aexeo-emdash 0.8.0 → 0.8.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/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@ and the project follows [Semantic Versioning](https://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.8.1] - 2026-05-03
10
+
11
+ Fix for the entity-presence diagnostic shipped in 0.8.0.
12
+
13
+ ### Fixed
14
+
15
+ - `EntityPresence` admin component's fetch to `/presence` was
16
+ missing the `X-EmDash-Request: 1` header that emdash's catch-all
17
+ plugin-route handler requires for state-changing methods on
18
+ private routes. Without it the host returns 403 CSRF_REJECTED
19
+ before the plugin handler runs, and the host's plugin-registry
20
+ bundle then crashes on the rejected response shape with a
21
+ `Cannot read properties of undefined (reading 'trim')` error
22
+ during admin-page render. With the header added, both the 403
23
+ and the downstream trim crash clear.
24
+
25
+ The `/data`, `/refresh`, and `/facts` routes were already sending
26
+ the header — `/presence` was the new addition and the omission
27
+ shipped in 0.8.0.
28
+
9
29
  ## [0.8.0] - 2026-05-03
10
30
 
11
31
  Layer-4 entity-presence diagnostic. The `/entity-legitimacy`
@@ -499,7 +519,8 @@ First public release.
499
519
  `astro.config.mjs` for the WASM import to resolve to a
500
520
  precompiled `WebAssembly.Module`. Not optional.
501
521
 
502
- [Unreleased]: https://github.com/schiste/Aexeo/compare/aexeo-emdash-v0.8.0...HEAD
522
+ [Unreleased]: https://github.com/schiste/Aexeo/compare/aexeo-emdash-v0.8.1...HEAD
523
+ [0.8.1]: https://github.com/schiste/Aexeo/compare/aexeo-emdash-v0.8.0...aexeo-emdash-v0.8.1
503
524
  [0.8.0]: https://github.com/schiste/Aexeo/compare/aexeo-emdash-v0.7.0...aexeo-emdash-v0.8.0
504
525
  [0.7.0]: https://github.com/schiste/Aexeo/compare/aexeo-emdash-v0.6.0...aexeo-emdash-v0.7.0
505
526
  [0.6.0]: https://github.com/schiste/Aexeo/compare/aexeo-emdash-v0.5.0...aexeo-emdash-v0.6.0
package/dist/admin.js CHANGED
@@ -476,7 +476,15 @@ function formatAge(minutes) {
476
476
  async function callPresenceRoute(kind) {
477
477
  const res = await fetch(`${API_BASE2}/plugins/${PLUGIN_ID2}/presence`, {
478
478
  method: "POST",
479
- headers: { "Content-Type": "application/json" },
479
+ headers: {
480
+ "Content-Type": "application/json",
481
+ // Required by emdash's catch-all plugin-route handler for any
482
+ // POST/PUT/PATCH/DELETE on a private (default) plugin route.
483
+ // Without it the host returns 403 CSRF_REJECTED before the
484
+ // plugin handler even runs. Same convention as the /facts and
485
+ // /data routes the other admin components use.
486
+ "X-EmDash-Request": "1"
487
+ },
480
488
  body: JSON.stringify({ kind })
481
489
  });
482
490
  if (!res.ok) throw new Error(`HTTP ${res.status}`);
@@ -1191,7 +1191,7 @@ function globToMatcher(pattern) {
1191
1191
  }
1192
1192
 
1193
1193
  // src/version.ts
1194
- var PACKAGE_VERSION = "0.8.0";
1194
+ var PACKAGE_VERSION = "0.8.1";
1195
1195
 
1196
1196
  // src/configured.ts
1197
1197
  import { definePlugin } from "emdash";
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ function buildAllowedHosts(evaluatorHost) {
23
23
  }
24
24
 
25
25
  // src/version.ts
26
- var PACKAGE_VERSION = "0.8.0";
26
+ var PACKAGE_VERSION = "0.8.1";
27
27
 
28
28
  // src/sandbox.ts
29
29
  function aexeoPluginSandboxed(options = {}) {
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const PACKAGE_VERSION = "0.8.0";
1
+ export declare const PACKAGE_VERSION = "0.8.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeptus/aexeo-emdash",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Aexeo SEO/GEO content evaluator as an emdash plugin",
5
5
  "license": "MIT",
6
6
  "author": "Aeptus",
Binary file