Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 6, 2024
1 parent 23dcbf8 commit e30325d
Show file tree
Hide file tree
Showing 53 changed files with 272 additions and 237 deletions.
5 changes: 0 additions & 5 deletions .changeset/calm-turkeys-boil.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/funny-jobs-occur.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gorgeous-points-provide.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/happy-suns-sip.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/little-beans-train.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lucky-dingos-hear.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mean-glasses-eat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/neat-fireants-attend.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ninety-socks-kiss.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/old-houses-count.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-days-whisper.md

This file was deleted.

16 changes: 0 additions & 16 deletions .changeset/purple-deers-destroy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quick-dancers-suffer.md

This file was deleted.

42 changes: 0 additions & 42 deletions .changeset/rich-parents-suffer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaggy-papayas-walk.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-colts-drive.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/shiny-weeks-do.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-meals-mate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silver-knives-smell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/smooth-grapes-return.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spicy-needles-smash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stale-oranges-deny.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tall-coins-bow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-pugs-tan.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/three-rocks-knock.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-insects-clap.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-pens-retire.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/unlucky-bats-behave.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/weak-windows-count.md

This file was deleted.

15 changes: 15 additions & 0 deletions packages/ckan/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# @zazuko/trifid-plugin-ckan

## 4.0.0

### Major Changes

- 4b515f8: Use 'plugins' instead of 'middlewares'
- eedaa53: The plugin is now using the new Trifid factory, which is a breaking change.

### Minor Changes

- 0c53ff7: The SPARQL query that is made to get all datasets is now querying all graphs by default

### Patch Changes

- 69d6ad0: Improve included TypeScript types.

## 3.0.0

### Major Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/ckan/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zazuko/trifid-plugin-ckan",
"version": "3.0.0",
"version": "4.0.0",
"description": "Endpoint for opendata.swiss CKAN harvester",
"main": "src/index.js",
"types": "dist/ckan/src/index.d.ts",
Expand Down Expand Up @@ -45,8 +45,8 @@
"chai-subset": "^1.6.0",
"mocha": "^10.2.0",
"rimraf": "^5.0.5",
"trifid-core": "^2.7.1",
"trifid-handler-fetch": "^2.0.1",
"trifid-core": "^3.0.0",
"trifid-handler-fetch": "^3.0.0",
"typescript": "^5.3.3",
"xml2js": "^0.6.2",
"xml2js-xpath": "^0.13.0"
Expand Down
57 changes: 57 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,62 @@
# trifid-core

## 3.0.0

### Major Changes

- 849fa3d: Health check is now exposed at `/healthz` instead of `/health`
- 4b515f8: Use 'plugins' instead of 'middlewares'
- 849fa3d: 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.

- d9963cd: Remove the `rewrite` middleware

### Minor Changes

- a454dbb: Expose a `query` function that can be used in all plugins to perform a SPARQL query
- 1dd9ae7: Allow listening on a random port by using port `0`.

### Patch Changes

- 3ab5eb3: Add support for JSON-encoded and URL-encoded bodies by default
- 69d6ad0: Improve included TypeScript types.

## 2.7.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "trifid-core",
"description": "Trifid Core",
"type": "module",
"version": "2.7.1",
"version": "3.0.0",
"license": "MIT",
"homepage": "https://github.com/zazuko/trifid",
"repository": {
Expand Down
25 changes: 25 additions & 0 deletions packages/entity-renderer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @zazuko/trifid-renderer-entity

## 1.0.0

### Major Changes

- 81c27c0: The plugin is now using the new Trifid factory, which is a breaking change.
- 4b515f8: Use 'plugins' instead of 'middlewares'

### Minor Changes

- 757621f: Remove the use of hijackresponse
- deef1a8: Add support for redirects.
- 8337a36: Support for multiple serializations

### Patch Changes

- Updated dependencies [a454dbb]
- Updated dependencies [3ab5eb3]
- Updated dependencies [69d6ad0]
- Updated dependencies [849fa3d]
- Updated dependencies [4b515f8]
- Updated dependencies [849fa3d]
- Updated dependencies [d9963cd]
- Updated dependencies [1dd9ae7]
- [email protected]

## 0.6.3

### Patch Changes
Expand Down
Loading

0 comments on commit e30325d

Please sign in to comment.