Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to release #284

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Merge to release #284

merged 1 commit into from
Mar 6, 2024

Conversation

the-zazukoian[bot]
Copy link

@the-zazukoian the-zazukoian bot commented Mar 6, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@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.

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:

    /** @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.

@zazuko/trifid-entity-renderer@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

trifid-plugin-graph-explorer@2.0.0

Major Changes

  • 6583c86: 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/.

  • 4b515f8: Use 'plugins' instead of 'middlewares'

trifid-handler-fetch@3.0.0

Major Changes

  • 4b515f8: Use 'plugins' instead of 'middlewares'

  • 0eaf2b7: 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

  • 293d7e6: The plugin is now using the new Trifid factory, which is a breaking change.

Patch Changes

  • 69d6ad0: Improve included TypeScript types.
  • e65e519: Support unionDefaultGraph configuration

trifid-plugin-i18n@3.0.0

Major Changes

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

@zazuko/trifid-plugin-iiif@1.0.0

Major Changes

  • 4b515f8: Use 'plugins' instead of 'middlewares'

Minor Changes

  • ed78cc9: The plugin is now using the new Trifid factory, which is a breaking change.

@zazuko/trifid-markdown-content@2.0.0

Major Changes

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

Patch Changes

  • 69d6ad0: Improve included TypeScript types.

@zazuko/trifid-plugin-sparql-proxy@2.0.0

Major Changes

  • b38cbc5: The plugin is now using the new Trifid factory, which is a breaking change.
  • 4b515f8: Use 'plugins' instead of 'middlewares'
  • b38cbc5: The plugin was completely restructured to remove extra complexity.

Patch Changes

trifid-plugin-spex@2.0.0

Major Changes

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

trifid@5.0.0

Major Changes

  • c5999e9: Remove the trifid-handler-sparql package
  • 4b515f8: Use 'plugins' instead of 'middlewares'
  • 00cecaa: Remove morgan logger.

Minor Changes

  • 1f2e258: Allow to start Trifid using the CLI without requiring a path to a configuration file.

Patch Changes

  • Updated dependencies [a454dbb]
  • Updated dependencies [6583c86]
  • Updated dependencies [3ab5eb3]
  • Updated dependencies [69d6ad0]
  • Updated dependencies [b38cbc5]
  • Updated dependencies [81c27c0]
  • Updated dependencies [849fa3d]
  • Updated dependencies [757621f]
  • Updated dependencies [4b515f8]
  • Updated dependencies [849fa3d]
  • Updated dependencies [d9963cd]
  • Updated dependencies [0eaf2b7]
  • Updated dependencies [0f21191]
  • Updated dependencies [e069220]
  • Updated dependencies [b635ae9]
  • Updated dependencies [deef1a8]
  • Updated dependencies [8337a36]
  • Updated dependencies [e65e519]
  • Updated dependencies [b38cbc5]
  • Updated dependencies [1dd9ae7]
  • Updated dependencies [538a959]
  • Updated dependencies [293d7e6]
    • trifid-core@3.0.0
    • trifid-plugin-graph-explorer@2.0.0
    • trifid-handler-fetch@3.0.0
    • @zazuko/trifid-plugin-sparql-proxy@2.0.0
    • @zazuko/trifid-entity-renderer@1.0.0
    • trifid-plugin-yasgui@3.0.0
    • trifid-plugin-i18n@3.0.0
    • trifid-plugin-spex@2.0.0

trifid-plugin-yasgui@3.0.0

Major Changes

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

@the-zazukoian the-zazukoian bot requested a review from ludovicm67 as a code owner March 6, 2024 12:43
@ludovicm67 ludovicm67 merged commit 8bb943e into main Mar 6, 2024
4 checks passed
@ludovicm67 ludovicm67 deleted the changeset-release/main branch March 6, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant