@twin.org/standards-ld-contexts 0.0.3-next.68 → 0.0.3-next.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.
@@ -7,7 +7,6 @@ import dataspaceProtocol2025 from "./ldContexts/dataspace-protocol-2025.json" wi
7
7
  import dcmitype from "./ldContexts/dublin-core-dcmitype.json" with { type: "json" };
8
8
  import dcTerms from "./ldContexts/dublin-core-terms.json" with { type: "json" };
9
9
  import foaf from "./ldContexts/foaf.json" with { type: "json" };
10
- import gaiaX2411 from "./ldContexts/gaia-x-v24.11.json" with { type: "json" };
11
10
  import gs1epcis from "./ldContexts/gs1-epcis.json" with { type: "json" };
12
11
  import gs1vocab from "./ldContexts/gs1-vocab.json" with { type: "json" };
13
12
  import odrlDataspaceProtocol from "./ldContexts/odrl-dataspace-protocol.json" with { type: "json" };
@@ -48,11 +47,6 @@ export const LD_CONTEXTS = {
48
47
  "https://schema.twindev.org/foaf/": foaf,
49
48
  "https://schema.twindev.org/foaf/types.jsonld": foaf,
50
49
  "http://xmlns.com/foaf/0.1/": foaf,
51
- // Gaia-X
52
- "https://w3id.org/gaia-x/2411": gaiaX2411,
53
- "https://w3id.org/gaia-x/2411#": gaiaX2411,
54
- "https://schema.twindev.org/gaia-x-loire/": gaiaX2411,
55
- "https://schema.twindev.org/gaia-x-loire/types.jsonld": gaiaX2411,
56
50
  // GS1 EPCIS
57
51
  "https://ref.gs1.org/epcis/": gs1epcis,
58
52
  "https://ref.gs1.org/epcis": gs1epcis,
@@ -1 +1 @@
1
- {"version":3,"file":"ldContexts.js","sourceRoot":"","sources":["../../src/ldContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,qBAAqB,MAAM,2CAA2C,CAAC,OAAO,IAA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AAC,EAAE,CAAC;QAChC,MAAM,IAAI,YAAY,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACzD,CAAC;IACD,MAAM,eAAe,CAAC,gBAAgB,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { GeneralError, Is } from \"@twin.org/core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport dataspaceProtocol2024 from \"./ldContexts/dataspace-protocol-2024.json\" with { type: \"json\" };\nimport dataspaceProtocol2025 from \"./ldContexts/dataspace-protocol-2025.json\" with { type: \"json\" };\nimport dcmitype from \"./ldContexts/dublin-core-dcmitype.json\" with { type: \"json\" };\nimport dcTerms from \"./ldContexts/dublin-core-terms.json\" with { type: \"json\" };\nimport foaf from \"./ldContexts/foaf.json\" with { type: \"json\" };\nimport gaiaX2411 from \"./ldContexts/gaia-x-v24.11.json\" with { type: \"json\" };\nimport gs1epcis from \"./ldContexts/gs1-epcis.json\" with { type: \"json\" };\nimport gs1vocab from \"./ldContexts/gs1-vocab.json\" with { type: \"json\" };\nimport odrlDataspaceProtocol from \"./ldContexts/odrl-dataspace-protocol.json\" with { type: \"json\" };\nimport schemaOrg from \"./ldContexts/schema.org.json\" with { type: \"json\" };\nimport unCefactD23B from \"./ldContexts/un-cefact-d23b.json\" with { type: \"json\" };\nimport w3cActivityStreams from \"./ldContexts/w3c-activity-streams.json\" with { type: \"json\" };\nimport w3cDataIntegrityV2 from \"./ldContexts/w3c-data-integrity-v2.json\" with { type: \"json\" };\nimport w3cDcat from \"./ldContexts/w3c-dcat.json\" with { type: \"json\" };\nimport w3cOdrl from \"./ldContexts/w3c-odrl.json\" with { type: \"json\" };\nimport w3cRdf from \"./ldContexts/w3c-rdf.json\" with { type: \"json\" };\nimport w3cVcV1 from \"./ldContexts/w3c-vc-data-model-v1.json\" with { type: \"json\" };\nimport w3cVcV2 from \"./ldContexts/w3c-vc-data-model-v2.json\" with { type: \"json\" };\nimport w3idCidV1 from \"./ldContexts/w3id-cid-v1.json\" with { type: \"json\" };\nimport w3idDidV1 from \"./ldContexts/w3id-did-v1.json\" with { type: \"json\" };\nimport w3idEd25519V1 from \"./ldContexts/w3id-ed25519-v1.json\" with { type: \"json\" };\nimport w3idJwsV1 from \"./ldContexts/w3id-jws-2020-v1.json\" with { type: \"json\" };\nimport w3idMultiKeyV1 from \"./ldContexts/w3id-multikey-v1.json\" with { type: \"json\" };\n\n/**\n * Map of all the ld contexts by their URL.\n */\nexport const LD_CONTEXTS: { [id: string]: unknown } = {\n\t// Data Space Protocol\n\t\"https://w3id.org/dspace/2024/1/\": dataspaceProtocol2024,\n\t\"https://w3id.org/dspace/2024/1/context.json\": dataspaceProtocol2024,\n\t\"https://w3id.org/dspace/2024/1/context.jsonld\": dataspaceProtocol2024,\n\t\"https://w3id.org/dspace/2025/1/\": dataspaceProtocol2025,\n\t\"https://w3id.org/dspace/2025/1/context.json\": dataspaceProtocol2025,\n\t\"https://w3id.org/dspace/2025/1/context.jsonld\": dataspaceProtocol2025,\n\t\"https://schema.twindev.org/dataspace-protocol/\": dataspaceProtocol2025,\n\t\"https://w3id.org/dspace/2025/1/odrl-profile.jsonld\": odrlDataspaceProtocol,\n\n\t// DCSA does not have JSON-LD context definitions\n\n\t// Dublin Core\n\t\"http://purl.org/dc/terms/\": dcTerms,\n\t\"http://purl.org/dc/dcmitype/\": dcmitype,\n\t\"https://schema.twindev.org/dublin-core/terms.jsonld\": dcTerms,\n\t\"https://schema.twindev.org/dublin-core/dcmitype.jsonld\": dcmitype,\n\n\t// Foaf\n\t\"https://schema.twindev.org/foaf/\": foaf,\n\t\"https://schema.twindev.org/foaf/types.jsonld\": foaf,\n\t\"http://xmlns.com/foaf/0.1/\": foaf,\n\n\t// Gaia-X\n\t\"https://w3id.org/gaia-x/2411\": gaiaX2411,\n\t\"https://w3id.org/gaia-x/2411#\": gaiaX2411,\n\t\"https://schema.twindev.org/gaia-x-loire/\": gaiaX2411,\n\t\"https://schema.twindev.org/gaia-x-loire/types.jsonld\": gaiaX2411,\n\n\t// GS1 EPCIS\n\t\"https://ref.gs1.org/epcis/\": gs1epcis,\n\t\"https://ref.gs1.org/epcis\": gs1epcis,\n\t\"https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld\": gs1epcis,\n\n\t// GS1 Vocab\n\t\"https://gs1.org/voc/\": gs1vocab,\n\t\"https://ref.gs1.org/voc/data/gs1Voc.jsonld\": gs1vocab,\n\n\t// schema.org\n\t\"https://schema.org\": schemaOrg,\n\t\"http://schema.org\": schemaOrg,\n\t\"https://schema.org/\": schemaOrg,\n\t\"http://schema.org/\": schemaOrg,\n\t\"https://schema.org/docs/jsonldcontext.jsonld\": schemaOrg,\n\n\t// UN/CEFACT\n\t\"https://vocabulary.uncefact.org\": unCefactD23B,\n\t\"https://vocabulary.uncefact.org/\": unCefactD23B,\n\t\"https://vocabulary.uncefact.org/unece-context.jsonld\": unCefactD23B,\n\t\"https://vocabulary.uncefact.org/unece-context-D23B.jsonld\": unCefactD23B,\n\n\t// W3C Activity Streams\n\t\"https://www.w3.org/ns/activitystreams#\": w3cActivityStreams,\n\t\"https://www.w3.org/ns/activitystreams\": w3cActivityStreams,\n\t\"https://www.w3.org/ns/activitystreams.jsonld\": w3cActivityStreams,\n\n\t// W3C DCAT\n\t\"http://www.w3.org/ns/dcat#\": w3cDcat,\n\t\"https://www.w3.org/ns/dcat.jsonld\": w3cDcat,\n\t\"http://www.w3.org/ns/dcat.jsonld\": w3cDcat,\n\n\t// W3C DID\n\t\"https://www.w3.org/ns/did/v1\": w3idDidV1,\n\t\"https://www.w3.org/2018/credentials/v1\": w3cVcV1,\n\t\"https://www.w3.org/ns/credentials/v2\": w3cVcV2,\n\t\"https://w3id.org/security/suites/jws-2020/v1\": w3idJwsV1,\n\t\"https://w3id.org/security/suites/ed25519-2020/v1\": w3idEd25519V1,\n\t\"https://w3id.org/security/data-integrity/v2\": w3cDataIntegrityV2,\n\t\"https://www.w3.org/ns/cid/v1\": w3idCidV1,\n\t\"https://w3id.org/security/multikey/v1\": w3idMultiKeyV1,\n\n\t// W3C ODRL\n\t\"http://www.w3.org/ns/odrl/2/\": w3cOdrl,\n\t\"http://www.w3.org/ns/odrl.jsonld\": w3cOdrl,\n\n\t// W3C RDF\n\t\"https://schema.twindev.org/w3c-rdf/\": w3cRdf,\n\t\"https://schema.twindev.org/w3c-rdf/types.jsonld\": w3cRdf,\n\t\"http://www.w3.org/2000/01/rdf-schema#\": w3cRdf\n};\n\n/**\n * Add all the contexts to the document cache.\n * @returns A promise that resolves when all contexts have been added to the cache.\n */\nexport async function addAllContextsToDocumentCache(): Promise<void> {\n\tfor (const url in LD_CONTEXTS) {\n\t\tawait JsonLdProcessor.documentCacheAdd(url, LD_CONTEXTS[url]);\n\t}\n}\n\n/**\n * Add a context to the document cache.\n * @param url The URL of the context to add to the cache.\n * @returns A promise that resolves when the context has been added to the cache.\n * @throws GeneralError if the context URL is not found in the known contexts map.\n */\nexport async function addContextToDocumentCache(url: string): Promise<void> {\n\tif (Is.empty(LD_CONTEXTS[url])) {\n\t\tthrow new GeneralError(\"ldContext\", \"missing\", { url });\n\t}\n\tawait JsonLdProcessor.documentCacheAdd(url, LD_CONTEXTS[url]);\n}\n"]}
1
+ {"version":3,"file":"ldContexts.js","sourceRoot":"","sources":["../../src/ldContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,qBAAqB,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACpG,OAAO,qBAAqB,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;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/core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport dataspaceProtocol2024 from \"./ldContexts/dataspace-protocol-2024.json\" with { type: \"json\" };\nimport dataspaceProtocol2025 from \"./ldContexts/dataspace-protocol-2025.json\" with { type: \"json\" };\nimport dcmitype from \"./ldContexts/dublin-core-dcmitype.json\" with { type: \"json\" };\nimport dcTerms from \"./ldContexts/dublin-core-terms.json\" with { type: \"json\" };\nimport foaf from \"./ldContexts/foaf.json\" with { type: \"json\" };\nimport gs1epcis from \"./ldContexts/gs1-epcis.json\" with { type: \"json\" };\nimport gs1vocab from \"./ldContexts/gs1-vocab.json\" with { type: \"json\" };\nimport odrlDataspaceProtocol from \"./ldContexts/odrl-dataspace-protocol.json\" with { type: \"json\" };\nimport schemaOrg from \"./ldContexts/schema.org.json\" with { type: \"json\" };\nimport unCefactD23B from \"./ldContexts/un-cefact-d23b.json\" with { type: \"json\" };\nimport w3cActivityStreams from \"./ldContexts/w3c-activity-streams.json\" with { type: \"json\" };\nimport w3cDataIntegrityV2 from \"./ldContexts/w3c-data-integrity-v2.json\" with { type: \"json\" };\nimport w3cDcat from \"./ldContexts/w3c-dcat.json\" with { type: \"json\" };\nimport w3cOdrl from \"./ldContexts/w3c-odrl.json\" with { type: \"json\" };\nimport w3cRdf from \"./ldContexts/w3c-rdf.json\" with { type: \"json\" };\nimport w3cVcV1 from \"./ldContexts/w3c-vc-data-model-v1.json\" with { type: \"json\" };\nimport w3cVcV2 from \"./ldContexts/w3c-vc-data-model-v2.json\" with { type: \"json\" };\nimport w3idCidV1 from \"./ldContexts/w3id-cid-v1.json\" with { type: \"json\" };\nimport w3idDidV1 from \"./ldContexts/w3id-did-v1.json\" with { type: \"json\" };\nimport w3idEd25519V1 from \"./ldContexts/w3id-ed25519-v1.json\" with { type: \"json\" };\nimport w3idJwsV1 from \"./ldContexts/w3id-jws-2020-v1.json\" with { type: \"json\" };\nimport w3idMultiKeyV1 from \"./ldContexts/w3id-multikey-v1.json\" with { type: \"json\" };\n\n/**\n * Map of all the ld contexts by their URL.\n */\nexport const LD_CONTEXTS: { [id: string]: unknown } = {\n\t// Data Space Protocol\n\t\"https://w3id.org/dspace/2024/1/\": dataspaceProtocol2024,\n\t\"https://w3id.org/dspace/2024/1/context.json\": dataspaceProtocol2024,\n\t\"https://w3id.org/dspace/2024/1/context.jsonld\": dataspaceProtocol2024,\n\t\"https://w3id.org/dspace/2025/1/\": dataspaceProtocol2025,\n\t\"https://w3id.org/dspace/2025/1/context.json\": dataspaceProtocol2025,\n\t\"https://w3id.org/dspace/2025/1/context.jsonld\": dataspaceProtocol2025,\n\t\"https://schema.twindev.org/dataspace-protocol/\": dataspaceProtocol2025,\n\t\"https://w3id.org/dspace/2025/1/odrl-profile.jsonld\": odrlDataspaceProtocol,\n\n\t// DCSA does not have JSON-LD context definitions\n\n\t// Dublin Core\n\t\"http://purl.org/dc/terms/\": dcTerms,\n\t\"http://purl.org/dc/dcmitype/\": dcmitype,\n\t\"https://schema.twindev.org/dublin-core/terms.jsonld\": dcTerms,\n\t\"https://schema.twindev.org/dublin-core/dcmitype.jsonld\": dcmitype,\n\n\t// Foaf\n\t\"https://schema.twindev.org/foaf/\": foaf,\n\t\"https://schema.twindev.org/foaf/types.jsonld\": foaf,\n\t\"http://xmlns.com/foaf/0.1/\": foaf,\n\n\t// GS1 EPCIS\n\t\"https://ref.gs1.org/epcis/\": gs1epcis,\n\t\"https://ref.gs1.org/epcis\": gs1epcis,\n\t\"https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld\": gs1epcis,\n\n\t// GS1 Vocab\n\t\"https://gs1.org/voc/\": gs1vocab,\n\t\"https://ref.gs1.org/voc/data/gs1Voc.jsonld\": gs1vocab,\n\n\t// schema.org\n\t\"https://schema.org\": schemaOrg,\n\t\"http://schema.org\": schemaOrg,\n\t\"https://schema.org/\": schemaOrg,\n\t\"http://schema.org/\": schemaOrg,\n\t\"https://schema.org/docs/jsonldcontext.jsonld\": schemaOrg,\n\n\t// UN/CEFACT\n\t\"https://vocabulary.uncefact.org\": unCefactD23B,\n\t\"https://vocabulary.uncefact.org/\": unCefactD23B,\n\t\"https://vocabulary.uncefact.org/unece-context.jsonld\": unCefactD23B,\n\t\"https://vocabulary.uncefact.org/unece-context-D23B.jsonld\": unCefactD23B,\n\n\t// W3C Activity Streams\n\t\"https://www.w3.org/ns/activitystreams#\": w3cActivityStreams,\n\t\"https://www.w3.org/ns/activitystreams\": w3cActivityStreams,\n\t\"https://www.w3.org/ns/activitystreams.jsonld\": w3cActivityStreams,\n\n\t// W3C DCAT\n\t\"http://www.w3.org/ns/dcat#\": w3cDcat,\n\t\"https://www.w3.org/ns/dcat.jsonld\": w3cDcat,\n\t\"http://www.w3.org/ns/dcat.jsonld\": w3cDcat,\n\n\t// W3C DID\n\t\"https://www.w3.org/ns/did/v1\": w3idDidV1,\n\t\"https://www.w3.org/2018/credentials/v1\": w3cVcV1,\n\t\"https://www.w3.org/ns/credentials/v2\": w3cVcV2,\n\t\"https://w3id.org/security/suites/jws-2020/v1\": w3idJwsV1,\n\t\"https://w3id.org/security/suites/ed25519-2020/v1\": w3idEd25519V1,\n\t\"https://w3id.org/security/data-integrity/v2\": w3cDataIntegrityV2,\n\t\"https://www.w3.org/ns/cid/v1\": w3idCidV1,\n\t\"https://w3id.org/security/multikey/v1\": w3idMultiKeyV1,\n\n\t// W3C ODRL\n\t\"http://www.w3.org/ns/odrl/2/\": w3cOdrl,\n\t\"http://www.w3.org/ns/odrl.jsonld\": w3cOdrl,\n\n\t// W3C RDF\n\t\"https://schema.twindev.org/w3c-rdf/\": w3cRdf,\n\t\"https://schema.twindev.org/w3c-rdf/types.jsonld\": w3cRdf,\n\t\"http://www.w3.org/2000/01/rdf-schema#\": w3cRdf\n};\n\n/**\n * Add all the contexts to the document cache.\n * @returns A promise that resolves when all contexts have been added to the cache.\n */\nexport async function addAllContextsToDocumentCache(): Promise<void> {\n\tfor (const url in LD_CONTEXTS) {\n\t\tawait JsonLdProcessor.documentCacheAdd(url, LD_CONTEXTS[url]);\n\t}\n}\n\n/**\n * Add a context to the document cache.\n * @param url The URL of the context to add to the cache.\n * @returns A promise that resolves when the context has been added to the cache.\n * @throws GeneralError if the context URL is not found in the known contexts map.\n */\nexport async function addContextToDocumentCache(url: string): Promise<void> {\n\tif (Is.empty(LD_CONTEXTS[url])) {\n\t\tthrow new GeneralError(\"ldContext\", \"missing\", { url });\n\t}\n\tawait JsonLdProcessor.documentCacheAdd(url, LD_CONTEXTS[url]);\n}\n"]}
package/docs/changelog.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.69](https://github.com/iotaledger/twin-standards/compare/standards-ld-contexts-v0.0.3-next.68...standards-ld-contexts-v0.0.3-next.69) (2026-06-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * remove gaia-x ([b8c05b7](https://github.com/iotaledger/twin-standards/commit/b8c05b78a85e9f00d9fd98749852c83377a099e1))
9
+ * remove gaia-x ([3e87ac1](https://github.com/iotaledger/twin-standards/commit/3e87ac14480758289cd43c8da7fa02dd251ed6c4))
10
+
3
11
  ## [0.0.3-next.68](https://github.com/iotaledger/twin-standards/compare/standards-ld-contexts-v0.0.3-next.67...standards-ld-contexts-v0.0.3-next.68) (2026-06-22)
4
12
 
5
13
 
@@ -271,9 +279,7 @@
271
279
 
272
280
  * add extra ld contexts associated to URLs. cache ([#21](https://github.com/iotaledger/twin-standards/issues/21)) ([05f7bba](https://github.com/iotaledger/twin-standards/commit/05f7bbafd0efbff445b878ccc2709975e50a7773))
273
281
  * federated catalogue terms ld context last version copied ([#26](https://github.com/iotaledger/twin-standards/issues/26)) ([37f4ff0](https://github.com/iotaledger/twin-standards/commit/37f4ff00664e8b5efc7d24f1e2417061fd2bda56))
274
- * gaia-x loire LD Context ([#62](https://github.com/iotaledger/twin-standards/issues/62)) ([072c4e7](https://github.com/iotaledger/twin-standards/commit/072c4e789158b3f989fa0fdd23df2532f7626dad))
275
- * gaia-x pinned LD Context ([#59](https://github.com/iotaledger/twin-standards/issues/59)) ([7572616](https://github.com/iotaledger/twin-standards/commit/7572616a2e853e8f6f6234763e675edb96e54005))
276
- * pin to 24.11 Gaia-X LD Context ([#58](https://github.com/iotaledger/twin-standards/issues/58)) ([4d3b9cc](https://github.com/iotaledger/twin-standards/commit/4d3b9cc365af276f5d4fc111a1744768746daa28))
282
+ iotaledger/twin-standards/commit/4d3b9cc365af276f5d4fc111a1744768746daa28))
277
283
  * refine local LD Contexts ([#84](https://github.com/iotaledger/twin-standards/issues/84)) ([785e359](https://github.com/iotaledger/twin-standards/commit/785e359ad6895fcb97197ca707915651fe3ae79c))
278
284
 
279
285
  ## [0.0.3-next.32](https://github.com/iotaledger/twin-standards/compare/standards-ld-contexts-v0.0.3-next.31...standards-ld-contexts-v0.0.3-next.32) (2026-02-06)
@@ -514,17 +520,13 @@
514
520
 
515
521
  * add extra ld contexts associated to URLs. cache ([#21](https://github.com/iotaledger/twin-standards/issues/21)) ([05f7bba](https://github.com/iotaledger/twin-standards/commit/05f7bbafd0efbff445b878ccc2709975e50a7773))
516
522
  * federated catalogue terms ld context last version copied ([#26](https://github.com/iotaledger/twin-standards/issues/26)) ([37f4ff0](https://github.com/iotaledger/twin-standards/commit/37f4ff00664e8b5efc7d24f1e2417061fd2bda56))
517
- * gaia-x loire LD Context ([#62](https://github.com/iotaledger/twin-standards/issues/62)) ([072c4e7](https://github.com/iotaledger/twin-standards/commit/072c4e789158b3f989fa0fdd23df2532f7626dad))
518
- * gaia-x pinned LD Context ([#59](https://github.com/iotaledger/twin-standards/issues/59)) ([7572616](https://github.com/iotaledger/twin-standards/commit/7572616a2e853e8f6f6234763e675edb96e54005))
519
- * pin to 24.11 Gaia-X LD Context ([#58](https://github.com/iotaledger/twin-standards/issues/58)) ([4d3b9cc](https://github.com/iotaledger/twin-standards/commit/4d3b9cc365af276f5d4fc111a1744768746daa28))
523
+ twin-standards/commit/7572616a2e853e8f6f6234763e675edb96e54005))
520
524
 
521
525
  ## [0.0.2-next.16](https://github.com/iotaledger/twin-standards/compare/standards-ld-contexts-v0.0.2-next.15...standards-ld-contexts-v0.0.2-next.16) (2025-10-09)
522
526
 
523
527
 
524
528
  ### Bug Fixes
525
529
 
526
- * gaia-x loire LD Context ([#62](https://github.com/iotaledger/twin-standards/issues/62)) ([072c4e7](https://github.com/iotaledger/twin-standards/commit/072c4e789158b3f989fa0fdd23df2532f7626dad))
527
-
528
530
  ## [0.0.2-next.15](https://github.com/iotaledger/twin-standards/compare/standards-ld-contexts-v0.0.2-next.14...standards-ld-contexts-v0.0.2-next.15) (2025-10-09)
529
531
 
530
532
 
@@ -537,9 +539,6 @@
537
539
 
538
540
  ### Bug Fixes
539
541
 
540
- * gaia-x pinned LD Context ([#59](https://github.com/iotaledger/twin-standards/issues/59)) ([7572616](https://github.com/iotaledger/twin-standards/commit/7572616a2e853e8f6f6234763e675edb96e54005))
541
- * pin to 24.11 Gaia-X LD Context ([#58](https://github.com/iotaledger/twin-standards/issues/58)) ([4d3b9cc](https://github.com/iotaledger/twin-standards/commit/4d3b9cc365af276f5d4fc111a1744768746daa28))
542
-
543
542
  ## [0.0.2-next.13](https://github.com/iotaledger/twin-standards/compare/standards-ld-contexts-v0.0.2-next.12...standards-ld-contexts-v0.0.2-next.13) (2025-09-22)
544
543
 
545
544
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-ld-contexts",
3
- "version": "0.0.3-next.68",
3
+ "version": "0.0.3-next.69",
4
4
  "description": "Local JSON-LD contexts for offline and controlled use.",
5
5
  "repository": {
6
6
  "type": "git",