@lde/fastify-rdf 0.4.2 → 0.4.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAQ7E,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,YAAY,CAAC;AAyIpB;;;;;;;;;GASG;AACH,iBAAe,gBAAgB,CAC7B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAqFf;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,yBAGrB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAgC,MAAM,SAAS,CAAC;AAQ7E,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,YAAY,CAAC;AAyIpB;;;;;;;;;GASG;AACH,iBAAe,gBAAgB,CAC7B,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAyFf;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,yBAGrB,CAAC"}
package/dist/plugin.js CHANGED
@@ -122,7 +122,9 @@ async function registerRdfParsers(server, parseAll) {
122
122
  */
123
123
  async function fastifyRdfPlugin(server, options) {
124
124
  const defaultContentType = options.defaultContentType ?? DEFAULT_CONTENT_TYPE;
125
- const supportedContentTypes = await rdfSerializer.getContentTypes();
125
+ // Exclude SHACLC types: they require a base IRI that we can't provide generically,
126
+ // and they cause "Base expected" errors during serialization.
127
+ const supportedContentTypes = (await rdfSerializer.getContentTypes()).filter((type) => !type.startsWith('text/shaclc'));
126
128
  await server.register(fastifyAccepts);
127
129
  if (options.overrideSend) {
128
130
  // Serialize all responses as RDF via hooks
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@lde/fastify-rdf",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Fastify plugin for serving RDF data with content negotiation",
5
5
  "repository": {
6
- "url": "git+https://github.com/ldengine/lde.git",
6
+ "url": "git+https://github.com/ldelements/lde.git",
7
7
  "directory": "packages/fastify-rdf"
8
8
  },
9
9
  "type": "module",
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@rdfjs/types": "^2.0.0",
36
- "fastify": "^5.7.4"
36
+ "fastify": "^5.8.1"
37
37
  },
38
38
  "peerDependencies": {
39
- "fastify": "^5.7.4"
39
+ "fastify": "^5.8.1"
40
40
  }
41
41
  }