@fedify/vocab-runtime 2.4.0-dev.1727 → 2.4.0-dev.1740

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab-runtime",
3
- "version": "2.4.0-dev.1727+1eadcb04",
3
+ "version": "2.4.0-dev.1740+32e9952c",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts",
package/dist/mod.cjs CHANGED
@@ -4366,12 +4366,29 @@ const preloadedContexts = {
4366
4366
  "@id": "toot:attributionDomains",
4367
4367
  "@type": "@id"
4368
4368
  }
4369
+ } },
4370
+ "https://purl.archive.org/miscellany": { "@context": {
4371
+ "as": "https://www.w3.org/ns/activitystreams#",
4372
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
4373
+ "Hashtag": "as:Hashtag",
4374
+ "manuallyApprovesFollowers": {
4375
+ "@id": "as:manuallyApprovesFollowers",
4376
+ "@type": "xsd:boolean"
4377
+ },
4378
+ "movedTo": {
4379
+ "@id": "as:movedTo",
4380
+ "@type": "@id"
4381
+ },
4382
+ "sensitive": {
4383
+ "@id": "as:sensitive",
4384
+ "@type": "xsd:boolean"
4385
+ }
4369
4386
  } }
4370
4387
  };
4371
4388
  //#endregion
4372
4389
  //#region deno.json
4373
4390
  var name = "@fedify/vocab-runtime";
4374
- var version = "2.4.0-dev.1727+1eadcb04";
4391
+ var version = "2.4.0-dev.1740+32e9952c";
4375
4392
  //#endregion
4376
4393
  //#region src/link.ts
4377
4394
  const parametersNeedLowerCase = ["rel", "type"];
package/dist/mod.js CHANGED
@@ -4362,12 +4362,29 @@ const preloadedContexts = {
4362
4362
  "@id": "toot:attributionDomains",
4363
4363
  "@type": "@id"
4364
4364
  }
4365
+ } },
4366
+ "https://purl.archive.org/miscellany": { "@context": {
4367
+ "as": "https://www.w3.org/ns/activitystreams#",
4368
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
4369
+ "Hashtag": "as:Hashtag",
4370
+ "manuallyApprovesFollowers": {
4371
+ "@id": "as:manuallyApprovesFollowers",
4372
+ "@type": "xsd:boolean"
4373
+ },
4374
+ "movedTo": {
4375
+ "@id": "as:movedTo",
4376
+ "@type": "@id"
4377
+ },
4378
+ "sensitive": {
4379
+ "@id": "as:sensitive",
4380
+ "@type": "xsd:boolean"
4381
+ }
4365
4382
  } }
4366
4383
  };
4367
4384
  //#endregion
4368
4385
  //#region deno.json
4369
4386
  var name = "@fedify/vocab-runtime";
4370
- var version = "2.4.0-dev.1727+1eadcb04";
4387
+ var version = "2.4.0-dev.1740+32e9952c";
4371
4388
  //#endregion
4372
4389
  //#region src/link.ts
4373
4390
  const parametersNeedLowerCase = ["rel", "type"];
@@ -1,4 +1,4 @@
1
- require("./docloader-DFqMzdME.cjs");
1
+ require("./docloader-CS1O52ch.cjs");
2
2
  require("./url-CPfMatUL.cjs");
3
3
  require("./key-8Qg2SbZi.cjs");
4
4
  require("./multibase-B5Mea7Ip.cjs");
@@ -1,4 +1,4 @@
1
- import "./docloader-BD58nJdO.mjs";
1
+ import "./docloader-BWBddOkN.mjs";
2
2
  import "./url-Basm1L_c.mjs";
3
3
  import "./key-C7MNhlkO.mjs";
4
4
  import "./multibase-BPnF_L4e.mjs";
@@ -1,4 +1,4 @@
1
- import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-9_Y1N3iF.mjs";
1
+ import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-DpcxnLEa.mjs";
2
2
  import { t as HttpHeaderLink } from "./link-Cevmc87v.mjs";
3
3
  import { g as validatePublicUrl, t as UrlError } from "./url-Basm1L_c.mjs";
4
4
  import { getLogger } from "@logtape/logtape";
@@ -4356,6 +4356,23 @@ const preloadedContexts = {
4356
4356
  "@id": "toot:attributionDomains",
4357
4357
  "@type": "@id"
4358
4358
  }
4359
+ } },
4360
+ "https://purl.archive.org/miscellany": { "@context": {
4361
+ "as": "https://www.w3.org/ns/activitystreams#",
4362
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
4363
+ "Hashtag": "as:Hashtag",
4364
+ "manuallyApprovesFollowers": {
4365
+ "@id": "as:manuallyApprovesFollowers",
4366
+ "@type": "xsd:boolean"
4367
+ },
4368
+ "movedTo": {
4369
+ "@id": "as:movedTo",
4370
+ "@type": "@id"
4371
+ },
4372
+ "sensitive": {
4373
+ "@id": "as:sensitive",
4374
+ "@type": "xsd:boolean"
4375
+ }
4359
4376
  } }
4360
4377
  };
4361
4378
  //#endregion
@@ -1,4 +1,4 @@
1
- const require_request = require("./request-kH0uXibB.cjs");
1
+ const require_request = require("./request-D1rLeiIi.cjs");
2
2
  const require_link = require("./link-DlKm8bEr.cjs");
3
3
  const require_url = require("./url-CPfMatUL.cjs");
4
4
  let _logtape_logtape = require("@logtape/logtape");
@@ -4356,6 +4356,23 @@ const preloadedContexts = {
4356
4356
  "@id": "toot:attributionDomains",
4357
4357
  "@type": "@id"
4358
4358
  }
4359
+ } },
4360
+ "https://purl.archive.org/miscellany": { "@context": {
4361
+ "as": "https://www.w3.org/ns/activitystreams#",
4362
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
4363
+ "Hashtag": "as:Hashtag",
4364
+ "manuallyApprovesFollowers": {
4365
+ "@id": "as:manuallyApprovesFollowers",
4366
+ "@type": "xsd:boolean"
4367
+ },
4368
+ "movedTo": {
4369
+ "@id": "as:movedTo",
4370
+ "@type": "@id"
4371
+ },
4372
+ "sensitive": {
4373
+ "@id": "as:sensitive",
4374
+ "@type": "xsd:boolean"
4375
+ }
4359
4376
  } }
4360
4377
  };
4361
4378
  //#endregion
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.cjs");
2
- const require_docloader = require("./docloader-DFqMzdME.cjs");
3
- const require_request = require("./request-kH0uXibB.cjs");
2
+ const require_docloader = require("./docloader-CS1O52ch.cjs");
3
+ const require_request = require("./request-D1rLeiIi.cjs");
4
4
  const require_url = require("./url-CPfMatUL.cjs");
5
5
  let node_assert = require("node:assert");
6
6
  let node_test = require("node:test");
@@ -1,5 +1,5 @@
1
- import { n as getRemoteDocument, r as preloadedContexts, t as getDocumentLoader } from "./docloader-BD58nJdO.mjs";
2
- import { t as FetchError } from "./request-9_Y1N3iF.mjs";
1
+ import { n as getRemoteDocument, r as preloadedContexts, t as getDocumentLoader } from "./docloader-BWBddOkN.mjs";
2
+ import { t as FetchError } from "./request-DpcxnLEa.mjs";
3
3
  import { t as UrlError } from "./url-Basm1L_c.mjs";
4
4
  import { deepStrictEqual, ok, rejects } from "node:assert";
5
5
  import { test } from "node:test";
@@ -3,7 +3,7 @@ let node_process = require("node:process");
3
3
  node_process = require_rolldown_runtime.__toESM(node_process, 1);
4
4
  //#region deno.json
5
5
  var name = "@fedify/vocab-runtime";
6
- var version = "2.4.0-dev.1727+1eadcb04";
6
+ var version = "2.4.0-dev.1740+32e9952c";
7
7
  //#endregion
8
8
  //#region src/request.ts
9
9
  /**
@@ -1,7 +1,7 @@
1
1
  import process from "node:process";
2
2
  //#region deno.json
3
3
  var name = "@fedify/vocab-runtime";
4
- var version = "2.4.0-dev.1727+1eadcb04";
4
+ var version = "2.4.0-dev.1740+32e9952c";
5
5
  //#endregion
6
6
  //#region src/request.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-emK7D4bc.cjs");
2
- const require_request = require("./request-kH0uXibB.cjs");
2
+ const require_request = require("./request-D1rLeiIi.cjs");
3
3
  let node_assert = require("node:assert");
4
4
  let node_test = require("node:test");
5
5
  let node_process = require("node:process");
@@ -1,4 +1,4 @@
1
- import { o as version, r as getUserAgent } from "./request-9_Y1N3iF.mjs";
1
+ import { o as version, r as getUserAgent } from "./request-DpcxnLEa.mjs";
2
2
  import { deepStrictEqual } from "node:assert";
3
3
  import { test } from "node:test";
4
4
  import process from "node:process";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/vocab-runtime",
3
- "version": "2.4.0-dev.1727+1eadcb04",
3
+ "version": "2.4.0-dev.1740+32e9952c",
4
4
  "homepage": "https://fedify.dev/",
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,19 @@
1
+ {
2
+ "@context": {
3
+ "as": "https://www.w3.org/ns/activitystreams#",
4
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
5
+ "Hashtag": "as:Hashtag",
6
+ "manuallyApprovesFollowers": {
7
+ "@id": "as:manuallyApprovesFollowers",
8
+ "@type": "xsd:boolean"
9
+ },
10
+ "movedTo": {
11
+ "@id": "as:movedTo",
12
+ "@type": "@id"
13
+ },
14
+ "sensitive": {
15
+ "@id": "as:sensitive",
16
+ "@type": "xsd:boolean"
17
+ }
18
+ }
19
+ }
package/src/contexts.ts CHANGED
@@ -13,6 +13,7 @@ import gotosocial from "./contexts/gotosocial.json" with { type: "json" };
13
13
  import identityV1 from "./contexts/identity-v1.json" with { type: "json" };
14
14
  import joinLemmyContext from "./contexts/join-lemmy.json" with { type: "json" };
15
15
  import joinmastodon from "./contexts/joinmastodon.json" with { type: "json" };
16
+ import miscellany from "./contexts/miscellany.json" with { type: "json" };
16
17
  import schemaorg from "./contexts/schemaorg.json" with { type: "json" };
17
18
  import securityDataIntegrityV1 from "./contexts/security-data-integrity-v1.json" with {
18
19
  type: "json",
@@ -59,6 +60,18 @@ const preloadedContexts: Record<string, unknown> = {
59
60
  // See: https://github.com/mastodon/joinmastodon/issues/148
60
61
  // https://github.com/fedify-dev/fedify/issues/630
61
62
  "http://joinmastodon.org/ns": joinmastodon,
63
+
64
+ // The SWICG "ActivityPub Miscellaneous Terms" context. Bridgy Fed (via
65
+ // granary) references this URL in the @context of every activity it sends,
66
+ // and other implementations use it as the recommended home for widely
67
+ // deployed extension terms like as:Hashtag and as:sensitive. It is served
68
+ // through purl.archive.org (Internet Archive's PURL service), which suffers
69
+ // recurring outages; while it is unreachable, every activity referencing
70
+ // this URL fails JSON-LD expansion before application handlers run. The
71
+ // document is a deliberately stable, versioned SWICG deliverable, so we
72
+ // ship a built-in copy.
73
+ // See: https://swicg.github.io/miscellany/
74
+ "https://purl.archive.org/miscellany": miscellany,
62
75
  };
63
76
 
64
77
  export default preloadedContexts;