@fedify/vocab-runtime 2.3.3 → 2.3.4

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.3.3",
3
+ "version": "2.3.4",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts",
package/dist/mod.cjs CHANGED
@@ -4341,12 +4341,29 @@ const preloadedContexts = {
4341
4341
  "@id": "toot:attributionDomains",
4342
4342
  "@type": "@id"
4343
4343
  }
4344
+ } },
4345
+ "https://purl.archive.org/miscellany": { "@context": {
4346
+ "as": "https://www.w3.org/ns/activitystreams#",
4347
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
4348
+ "Hashtag": "as:Hashtag",
4349
+ "manuallyApprovesFollowers": {
4350
+ "@id": "as:manuallyApprovesFollowers",
4351
+ "@type": "xsd:boolean"
4352
+ },
4353
+ "movedTo": {
4354
+ "@id": "as:movedTo",
4355
+ "@type": "@id"
4356
+ },
4357
+ "sensitive": {
4358
+ "@id": "as:sensitive",
4359
+ "@type": "xsd:boolean"
4360
+ }
4344
4361
  } }
4345
4362
  };
4346
4363
  //#endregion
4347
4364
  //#region deno.json
4348
4365
  var name = "@fedify/vocab-runtime";
4349
- var version = "2.3.3";
4366
+ var version = "2.3.4";
4350
4367
  //#endregion
4351
4368
  //#region src/link.ts
4352
4369
  const parametersNeedLowerCase = ["rel", "type"];
package/dist/mod.js CHANGED
@@ -4337,12 +4337,29 @@ const preloadedContexts = {
4337
4337
  "@id": "toot:attributionDomains",
4338
4338
  "@type": "@id"
4339
4339
  }
4340
+ } },
4341
+ "https://purl.archive.org/miscellany": { "@context": {
4342
+ "as": "https://www.w3.org/ns/activitystreams#",
4343
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
4344
+ "Hashtag": "as:Hashtag",
4345
+ "manuallyApprovesFollowers": {
4346
+ "@id": "as:manuallyApprovesFollowers",
4347
+ "@type": "xsd:boolean"
4348
+ },
4349
+ "movedTo": {
4350
+ "@id": "as:movedTo",
4351
+ "@type": "@id"
4352
+ },
4353
+ "sensitive": {
4354
+ "@id": "as:sensitive",
4355
+ "@type": "xsd:boolean"
4356
+ }
4340
4357
  } }
4341
4358
  };
4342
4359
  //#endregion
4343
4360
  //#region deno.json
4344
4361
  var name = "@fedify/vocab-runtime";
4345
- var version = "2.3.3";
4362
+ var version = "2.3.4";
4346
4363
  //#endregion
4347
4364
  //#region src/link.ts
4348
4365
  const parametersNeedLowerCase = ["rel", "type"];
@@ -1,5 +1,5 @@
1
1
  require("./chunk-C2EiDwsr.cjs");
2
- require("./docloader-DWIisNvg.cjs");
2
+ require("./docloader-BFM7h1Xa.cjs");
3
3
  require("./url-BF_Nb_Cu.cjs");
4
4
  require("./key-pMmqUKuo.cjs");
5
5
  require("./multibase-Bz_UUDtL.cjs");
@@ -1,4 +1,4 @@
1
- import "./docloader-DtqV7PF2.mjs";
1
+ import "./docloader-BGlBKr7D.mjs";
2
2
  import "./url-o0e-aXQY.mjs";
3
3
  import "./key-CrrK9mYh.mjs";
4
4
  import "./multibase-B4bvakyA.mjs";
@@ -1,5 +1,5 @@
1
1
  require("./chunk-C2EiDwsr.cjs");
2
- const require_request = require("./request-Bvqy-9Kl.cjs");
2
+ const require_request = require("./request-BOB5ItB9.cjs");
3
3
  const require_link = require("./link-FguCydMA.cjs");
4
4
  const require_url = require("./url-BF_Nb_Cu.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
@@ -4331,6 +4331,23 @@ const preloadedContexts = {
4331
4331
  "@id": "toot:attributionDomains",
4332
4332
  "@type": "@id"
4333
4333
  }
4334
+ } },
4335
+ "https://purl.archive.org/miscellany": { "@context": {
4336
+ "as": "https://www.w3.org/ns/activitystreams#",
4337
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
4338
+ "Hashtag": "as:Hashtag",
4339
+ "manuallyApprovesFollowers": {
4340
+ "@id": "as:manuallyApprovesFollowers",
4341
+ "@type": "xsd:boolean"
4342
+ },
4343
+ "movedTo": {
4344
+ "@id": "as:movedTo",
4345
+ "@type": "@id"
4346
+ },
4347
+ "sensitive": {
4348
+ "@id": "as:sensitive",
4349
+ "@type": "xsd:boolean"
4350
+ }
4334
4351
  } }
4335
4352
  };
4336
4353
  //#endregion
@@ -1,4 +1,4 @@
1
- import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-DIjLcXKG.mjs";
1
+ import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-BaUm0-cs.mjs";
2
2
  import { t as HttpHeaderLink } from "./link-NUUWCdnK.mjs";
3
3
  import { o as validatePublicUrl, t as UrlError } from "./url-o0e-aXQY.mjs";
4
4
  import { getLogger } from "@logtape/logtape";
@@ -4330,6 +4330,23 @@ const preloadedContexts = {
4330
4330
  "@id": "toot:attributionDomains",
4331
4331
  "@type": "@id"
4332
4332
  }
4333
+ } },
4334
+ "https://purl.archive.org/miscellany": { "@context": {
4335
+ "as": "https://www.w3.org/ns/activitystreams#",
4336
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
4337
+ "Hashtag": "as:Hashtag",
4338
+ "manuallyApprovesFollowers": {
4339
+ "@id": "as:manuallyApprovesFollowers",
4340
+ "@type": "xsd:boolean"
4341
+ },
4342
+ "movedTo": {
4343
+ "@id": "as:movedTo",
4344
+ "@type": "@id"
4345
+ },
4346
+ "sensitive": {
4347
+ "@id": "as:sensitive",
4348
+ "@type": "xsd:boolean"
4349
+ }
4333
4350
  } }
4334
4351
  };
4335
4352
  //#endregion
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require("./chunk-C2EiDwsr.cjs");
2
- const require_docloader = require("./docloader-DWIisNvg.cjs");
3
- const require_request = require("./request-Bvqy-9Kl.cjs");
2
+ const require_docloader = require("./docloader-BFM7h1Xa.cjs");
3
+ const require_request = require("./request-BOB5ItB9.cjs");
4
4
  const require_url = require("./url-BF_Nb_Cu.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 preloadedContexts, t as getDocumentLoader } from "./docloader-DtqV7PF2.mjs";
2
- import { t as FetchError } from "./request-DIjLcXKG.mjs";
1
+ import { n as preloadedContexts, t as getDocumentLoader } from "./docloader-BGlBKr7D.mjs";
2
+ import { t as FetchError } from "./request-BaUm0-cs.mjs";
3
3
  import { t as UrlError } from "./url-o0e-aXQY.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_chunk.__toESM(node_process, 1);
4
4
  //#region deno.json
5
5
  var name = "@fedify/vocab-runtime";
6
- var version = "2.3.3";
6
+ var version = "2.3.4";
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.3.3";
4
+ var version = "2.3.4";
5
5
  //#endregion
6
6
  //#region src/request.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-C2EiDwsr.cjs");
2
- const require_request = require("./request-Bvqy-9Kl.cjs");
2
+ const require_request = require("./request-BOB5ItB9.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-DIjLcXKG.mjs";
1
+ import { o as version, r as getUserAgent } from "./request-BaUm0-cs.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.3.3",
3
+ "version": "2.3.4",
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
@@ -11,6 +11,7 @@ import gotosocial from "./contexts/gotosocial.json" with { type: "json" };
11
11
  import identityV1 from "./contexts/identity-v1.json" with { type: "json" };
12
12
  import joinLemmyContext from "./contexts/join-lemmy.json" with { type: "json" };
13
13
  import joinmastodon from "./contexts/joinmastodon.json" with { type: "json" };
14
+ import miscellany from "./contexts/miscellany.json" with { type: "json" };
14
15
  import schemaorg from "./contexts/schemaorg.json" with { type: "json" };
15
16
  import securityDataIntegrityV1 from "./contexts/security-data-integrity-v1.json" with {
16
17
  type: "json",
@@ -55,6 +56,18 @@ const preloadedContexts: Record<string, unknown> = {
55
56
  // See: https://github.com/mastodon/joinmastodon/issues/148
56
57
  // https://github.com/fedify-dev/fedify/issues/630
57
58
  "http://joinmastodon.org/ns": joinmastodon,
59
+
60
+ // The SWICG "ActivityPub Miscellaneous Terms" context. Bridgy Fed (via
61
+ // granary) references this URL in the @context of every activity it sends,
62
+ // and other implementations use it as the recommended home for widely
63
+ // deployed extension terms like as:Hashtag and as:sensitive. It is served
64
+ // through purl.archive.org (Internet Archive's PURL service), which suffers
65
+ // recurring outages; while it is unreachable, every activity referencing
66
+ // this URL fails JSON-LD expansion before application handlers run. The
67
+ // document is a deliberately stable, versioned SWICG deliverable, so we
68
+ // ship a built-in copy.
69
+ // See: https://swicg.github.io/miscellany/
70
+ "https://purl.archive.org/miscellany": miscellany,
58
71
  };
59
72
 
60
73
  export default preloadedContexts;