@fedify/vocab-runtime 2.2.8 → 2.2.9

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.2.8",
3
+ "version": "2.2.9",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts",
package/dist/mod.cjs CHANGED
@@ -782,6 +782,25 @@ var joinmastodon_default = { "@context": {
782
782
  }
783
783
  } };
784
784
  //#endregion
785
+ //#region src/contexts/miscellany.json
786
+ var miscellany_default = { "@context": {
787
+ "as": "https://www.w3.org/ns/activitystreams#",
788
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
789
+ "Hashtag": "as:Hashtag",
790
+ "manuallyApprovesFollowers": {
791
+ "@id": "as:manuallyApprovesFollowers",
792
+ "@type": "xsd:boolean"
793
+ },
794
+ "movedTo": {
795
+ "@id": "as:movedTo",
796
+ "@type": "@id"
797
+ },
798
+ "sensitive": {
799
+ "@id": "as:sensitive",
800
+ "@type": "xsd:boolean"
801
+ }
802
+ } };
803
+ //#endregion
785
804
  //#region src/contexts/schemaorg.json
786
805
  var schemaorg_default = { "@context": {
787
806
  "type": "@type",
@@ -4379,12 +4398,13 @@ const preloadedContexts = {
4379
4398
  "https://gotosocial.org/ns": gotosocial_default,
4380
4399
  "https://w3id.org/fep/5711": fep_5711_default,
4381
4400
  "https://join-lemmy.org/context.json": join_lemmy_default,
4382
- "http://joinmastodon.org/ns": joinmastodon_default
4401
+ "http://joinmastodon.org/ns": joinmastodon_default,
4402
+ "https://purl.archive.org/miscellany": miscellany_default
4383
4403
  };
4384
4404
  //#endregion
4385
4405
  //#region deno.json
4386
4406
  var name = "@fedify/vocab-runtime";
4387
- var version = "2.2.8";
4407
+ var version = "2.2.9";
4388
4408
  //#endregion
4389
4409
  //#region src/link.ts
4390
4410
  const parametersNeedLowerCase = ["rel", "type"];
package/dist/mod.js CHANGED
@@ -778,6 +778,25 @@ var joinmastodon_default = { "@context": {
778
778
  }
779
779
  } };
780
780
  //#endregion
781
+ //#region src/contexts/miscellany.json
782
+ var miscellany_default = { "@context": {
783
+ "as": "https://www.w3.org/ns/activitystreams#",
784
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
785
+ "Hashtag": "as:Hashtag",
786
+ "manuallyApprovesFollowers": {
787
+ "@id": "as:manuallyApprovesFollowers",
788
+ "@type": "xsd:boolean"
789
+ },
790
+ "movedTo": {
791
+ "@id": "as:movedTo",
792
+ "@type": "@id"
793
+ },
794
+ "sensitive": {
795
+ "@id": "as:sensitive",
796
+ "@type": "xsd:boolean"
797
+ }
798
+ } };
799
+ //#endregion
781
800
  //#region src/contexts/schemaorg.json
782
801
  var schemaorg_default = { "@context": {
783
802
  "type": "@type",
@@ -4375,12 +4394,13 @@ const preloadedContexts = {
4375
4394
  "https://gotosocial.org/ns": gotosocial_default,
4376
4395
  "https://w3id.org/fep/5711": fep_5711_default,
4377
4396
  "https://join-lemmy.org/context.json": join_lemmy_default,
4378
- "http://joinmastodon.org/ns": joinmastodon_default
4397
+ "http://joinmastodon.org/ns": joinmastodon_default,
4398
+ "https://purl.archive.org/miscellany": miscellany_default
4379
4399
  };
4380
4400
  //#endregion
4381
4401
  //#region deno.json
4382
4402
  var name = "@fedify/vocab-runtime";
4383
- var version = "2.2.8";
4403
+ var version = "2.2.9";
4384
4404
  //#endregion
4385
4405
  //#region src/link.ts
4386
4406
  const parametersNeedLowerCase = ["rel", "type"];
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Do9eywBl.cjs");
2
- require("./docloader-yj9VGANT.cjs");
2
+ require("./docloader-DF-6vC_M.cjs");
3
3
  require("./url-CWU5HT3Y.cjs");
4
4
  require("./key-DTTIntwb.cjs");
5
5
  require("./multibase-F7LtMMsK.cjs");
@@ -1,4 +1,4 @@
1
- import "./docloader-CX1mRgBh.mjs";
1
+ import "./docloader-C0Vsye4I.mjs";
2
2
  import "./url-o0e-aXQY.mjs";
3
3
  import "./key-BeTHFQJK.mjs";
4
4
  import "./multibase-BgU9XRf7.mjs";
@@ -1,4 +1,4 @@
1
- import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-CoxDPWoc.mjs";
1
+ import { a as name, i as logRequest, n as createActivityPubRequest, o as version, t as FetchError } from "./request-7S_qG7xc.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";
@@ -771,6 +771,25 @@ var joinmastodon_default = { "@context": {
771
771
  }
772
772
  } };
773
773
  //#endregion
774
+ //#region src/contexts/miscellany.json
775
+ var miscellany_default = { "@context": {
776
+ "as": "https://www.w3.org/ns/activitystreams#",
777
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
778
+ "Hashtag": "as:Hashtag",
779
+ "manuallyApprovesFollowers": {
780
+ "@id": "as:manuallyApprovesFollowers",
781
+ "@type": "xsd:boolean"
782
+ },
783
+ "movedTo": {
784
+ "@id": "as:movedTo",
785
+ "@type": "@id"
786
+ },
787
+ "sensitive": {
788
+ "@id": "as:sensitive",
789
+ "@type": "xsd:boolean"
790
+ }
791
+ } };
792
+ //#endregion
774
793
  //#region src/contexts/schemaorg.json
775
794
  var schemaorg_default = { "@context": {
776
795
  "type": "@type",
@@ -4368,7 +4387,8 @@ const preloadedContexts = {
4368
4387
  "https://gotosocial.org/ns": gotosocial_default,
4369
4388
  "https://w3id.org/fep/5711": fep_5711_default,
4370
4389
  "https://join-lemmy.org/context.json": join_lemmy_default,
4371
- "http://joinmastodon.org/ns": joinmastodon_default
4390
+ "http://joinmastodon.org/ns": joinmastodon_default,
4391
+ "https://purl.archive.org/miscellany": miscellany_default
4372
4392
  };
4373
4393
  //#endregion
4374
4394
  //#region src/docloader.ts
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Do9eywBl.cjs");
2
- const require_request = require("./request-BOX7nq1q.cjs");
2
+ const require_request = require("./request-MsnNlEal.cjs");
3
3
  const require_link = require("./link-FguCydMA.cjs");
4
4
  const require_url = require("./url-CWU5HT3Y.cjs");
5
5
  let _logtape_logtape = require("@logtape/logtape");
@@ -772,6 +772,25 @@ var joinmastodon_default = { "@context": {
772
772
  }
773
773
  } };
774
774
  //#endregion
775
+ //#region src/contexts/miscellany.json
776
+ var miscellany_default = { "@context": {
777
+ "as": "https://www.w3.org/ns/activitystreams#",
778
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
779
+ "Hashtag": "as:Hashtag",
780
+ "manuallyApprovesFollowers": {
781
+ "@id": "as:manuallyApprovesFollowers",
782
+ "@type": "xsd:boolean"
783
+ },
784
+ "movedTo": {
785
+ "@id": "as:movedTo",
786
+ "@type": "@id"
787
+ },
788
+ "sensitive": {
789
+ "@id": "as:sensitive",
790
+ "@type": "xsd:boolean"
791
+ }
792
+ } };
793
+ //#endregion
775
794
  //#region src/contexts/schemaorg.json
776
795
  var schemaorg_default = { "@context": {
777
796
  "type": "@type",
@@ -4369,7 +4388,8 @@ const preloadedContexts = {
4369
4388
  "https://gotosocial.org/ns": gotosocial_default,
4370
4389
  "https://w3id.org/fep/5711": fep_5711_default,
4371
4390
  "https://join-lemmy.org/context.json": join_lemmy_default,
4372
- "http://joinmastodon.org/ns": joinmastodon_default
4391
+ "http://joinmastodon.org/ns": joinmastodon_default,
4392
+ "https://purl.archive.org/miscellany": miscellany_default
4373
4393
  };
4374
4394
  //#endregion
4375
4395
  //#region src/docloader.ts
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require("./chunk-Do9eywBl.cjs");
2
- const require_docloader = require("./docloader-yj9VGANT.cjs");
3
- const require_request = require("./request-BOX7nq1q.cjs");
2
+ const require_docloader = require("./docloader-DF-6vC_M.cjs");
3
+ const require_request = require("./request-MsnNlEal.cjs");
4
4
  const require_url = require("./url-CWU5HT3Y.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-CX1mRgBh.mjs";
2
- import { t as FetchError } from "./request-CoxDPWoc.mjs";
1
+ import { n as preloadedContexts, t as getDocumentLoader } from "./docloader-C0Vsye4I.mjs";
2
+ import { t as FetchError } from "./request-7S_qG7xc.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";
@@ -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.2.8";
4
+ var version = "2.2.9";
5
5
  //#endregion
6
6
  //#region src/request.ts
7
7
  /**
@@ -3,7 +3,7 @@ let node_process = require("node:process");
3
3
  node_process = require_chunk.__toESM(node_process);
4
4
  //#region deno.json
5
5
  var name = "@fedify/vocab-runtime";
6
- var version = "2.2.8";
6
+ var version = "2.2.9";
7
7
  //#endregion
8
8
  //#region src/request.ts
9
9
  /**
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-Do9eywBl.cjs");
2
- const require_request = require("./request-BOX7nq1q.cjs");
2
+ const require_request = require("./request-MsnNlEal.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-CoxDPWoc.mjs";
1
+ import { o as version, r as getUserAgent } from "./request-7S_qG7xc.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.2.8",
3
+ "version": "2.2.9",
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;