-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from zazuko/next
Trifid v5
- Loading branch information
Showing
199 changed files
with
13,941 additions
and
16,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-core": minor | ||
--- | ||
|
||
Expose a `query` function that can be used in all plugins to perform a SPARQL query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"trifid-plugin-graph-explorer": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. | ||
|
||
Assets are served under `/graph-explorer/assets/` and `/graph-explorer/static/` instead of `/graph-explorer-assets/` and `/graph-explorer-static/`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-core": patch | ||
--- | ||
|
||
Add support for JSON-encoded and URL-encoded bodies by default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@zazuko/trifid-markdown-content": patch | ||
"trifid-handler-fetch": patch | ||
"@zazuko/trifid-plugin-ckan": patch | ||
"trifid-core": patch | ||
--- | ||
|
||
Improve included TypeScript types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-plugin-ckan": minor | ||
--- | ||
|
||
The SPARQL query that is made to get all datasets is now querying all graphs by default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid": major | ||
--- | ||
|
||
Remove the `trifid-handler-sparql` package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-plugin-sparql-proxy": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-entity-renderer": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-core": major | ||
--- | ||
|
||
Health check is now exposed at `/healthz` instead of `/health` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-markdown-content": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-entity-renderer": minor | ||
--- | ||
|
||
Remove the use of hijackresponse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"@zazuko/trifid-markdown-content": major | ||
"@zazuko/trifid-entity-renderer": major | ||
"trifid-plugin-graph-explorer": major | ||
"trifid-handler-fetch": major | ||
"@zazuko/trifid-plugin-sparql-proxy": major | ||
"trifid": major | ||
"trifid-plugin-yasgui": major | ||
"@zazuko/trifid-plugin-ckan": major | ||
"trifid-core": major | ||
"trifid-plugin-i18n": major | ||
"@zazuko/trifid-plugin-iiif": major | ||
"trifid-plugin-spex": major | ||
--- | ||
|
||
Use 'plugins' instead of 'middlewares' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid": minor | ||
--- | ||
|
||
Allow to start Trifid using the CLI without requiring a path to a configuration file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
"trifid-core": major | ||
--- | ||
|
||
Trifid Plugins should return an object: | ||
|
||
```js | ||
/** @type {import('trifid-core/types/index.js').TrifidPlugin} */ | ||
const factory = async (trifid) => { | ||
return { | ||
defaultConfiguration: async () => { | ||
return { | ||
methods: ["GET"], | ||
paths: ["/hello"], | ||
// ... | ||
}; | ||
}, | ||
routeHandler: async () => { | ||
/** | ||
* Route handler. | ||
* @param {import('fastify').FastifyRequest} _request Request. | ||
* @param {import('fastify').FastifyReply} reply Reply. | ||
*/ | ||
const handler = async (_request, reply) => { | ||
reply.send("Hello, world!"); | ||
}; | ||
return handler; | ||
}, | ||
}; | ||
}; | ||
|
||
export default factory; | ||
``` | ||
|
||
The factory should also be a promise. | ||
|
||
Previously, the factory was a function that returned an Express middleware. | ||
Since the move to Fastify, we are now returning an object with two methods: `defaultConfiguration` and `routeHandler`. | ||
The `routeHandler` method should return a route handler function. | ||
The `defaultConfiguration` method should return the default configuration for the plugin. | ||
This allows the user to use the plugin with the default configuration or to override it. | ||
This can be useful to simplify the Trifid configuration files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-core": major | ||
--- | ||
|
||
Remove the `rewrite` middleware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-plugin-ckan": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"trifid-handler-fetch": major | ||
--- | ||
|
||
Completely change the way it is working. | ||
|
||
Instead of being an handler that is made to be called only when dereferencing, it is now a Trifid plugin that is exposing a new endpoint `/query` (for example) that can be used to perform SPARQL queries against the dataset. | ||
|
||
This means that it is now possible to perform SPARQL queries against a dataset that is loaded from a URL, which was not possible before. | ||
This also means that it is possible to use all other Trifid plugins that were only working with a SPARQL endpoint and not with a dataset coming from a simple file. | ||
|
||
Please take a look on how to use it in the documentation here: https://github.com/zazuko/trifid/tree/main/packages/handler-fetch#readme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-plugin-i18n": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-plugin-spex": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-plugin-yasgui": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-entity-renderer": minor | ||
--- | ||
|
||
Add support for redirects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-entity-renderer": minor | ||
--- | ||
|
||
Support for multiple serializations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid": major | ||
--- | ||
|
||
Remove morgan logger. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-handler-fetch": patch | ||
--- | ||
|
||
Support `unionDefaultGraph` configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-plugin-sparql-proxy": major | ||
--- | ||
|
||
The plugin was completely restructured to remove extra complexity. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-core": minor | ||
--- | ||
|
||
Allow listening on a random port by using port `0`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-plugin-sparql-proxy": patch | ||
--- | ||
|
||
Upgrade proxy-agent to 6.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"trifid-handler-fetch": major | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@zazuko/trifid-plugin-iiif": minor | ||
--- | ||
|
||
The plugin is now using the new Trifid factory, which is a breaking change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ node_modules | |
npm-debug.log | ||
.git | ||
Dockerfile | ||
.changeset | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.