Skip to content

Releases: zazuko/kopflos

@kopflos-cms/[email protected]

13 Nov 09:13
Compare
Choose a tag to compare

Minor Changes

  • 77cfe87: Reboot library agnostic of express or other host

  • 3e30f38: Handlers: Added support for code:arguments. Please refer to rdf-loader-code for more information.

    [
      a kl:Handler ;
      code:implementedBy [
        a code:EcmaScriptModule ;
        code:link <...> ;
        code:arguments ("foo" "bar") ;
      ] ;
    ] .

    Implementors must now return a factory function that returns the handler function.

    import type { Handler } from "@kopflos-cms/core";
    
    - export default function handler() {
    + export default function handler(foo, bar): Handler {
      return async function handlerFunction() {
        // ...
      };
    }

Patch Changes

  • 730ecc2: Extracted logger to a new package @kopflos-cms/core

  • 67ba100: Added CHANGELOG.md to build

  • 619d7f2: Object request would be incorrectly handled by subject handler

  • 3e30f38: Support for direct stream, using Web Streams

  • b691125: Made the resource shape query explicitly require type kl:ResourceShape

  • 1fcb2c0: Revert dependency on anylogger to stable v1 branch

  • 14705ba: More precise typing of core interfaces

  • fe2793d: Missing resources in package

  • b72086f: Allow initializing clients from one instance of StreamClient or ParsingClient

  • 673f9a2: When handling object requests, Core Representation of the object was loaded instead of subject

  • 3e30f38: Added support for templated resource shapes. Use kl:regex a pattern to match the request URL path.
    Additionally, named capturing groups can be used to extract values from the URL path. They will be
    accessible as HandlerArgs#subjectVariables and included when resolving code:EcmaScriptTemplateLiteral.

    <#WebPage>
      a kl:ResourceShape ;
      kl:api <> ;
      sh:target
        [
          a kl:PatternedTarget ;
          kl:regex "/(?<type>[^/]+).+\\.html$" ;
        ] ;
      kl:handler
        [
          a kl:Handler ;
          kl:method "GET" ;
          code:implementedBy
            [
              a code:EcmaScriptModule ;
              code:link <node:@kopflos-cms/serve-file#default> ;
              code:arguments ( "pages/${type}.html"^^code:EcmaScriptTemplateLiteral ) ;
            ] ;
        ] ;
    .
  • 2b107ef: Catch errors in kopflos handler and send as a 500 response

  • 67ba100: Plugin dir wasn't packaged

  • 13f029c: feat: add logging

  • b94672f: Body is now always present in handler argument. Use this.body.isRdf to check if it can be parsed as RDF according to the Accept header. this.body.raw now returns the IncomingMessage object to allow parsing bodies using co-body or similar.

  • 528bfd2: Implemented SPARQL-base Resource Shape lookup

  • 1b8a2bc: Added env.kopflos.variables to allow accessing and setting variables

  • 0b960fa: Fixes runtime error when executing logged queries

  • a72254b: Object of kl:handler can now be an RDF List of handler implementations which will be called in sequence

  • a11dda5: Improve logging and error handling

  • 14705ba: Adding support for accessing request body

  • 2ee7a70: Allow a multiple values of kl:method on a handler

  • fd489b3: Added plugin with onStart hook

  • 67bd393: Expose request headers to kopflos handler

  • be93e5a: Added ./env.js to package exports

  • 3e30f38: Added support for code:EcmaScriptTemplateLiteral

  • Updated dependencies [67ba100]

  • Updated dependencies [730ecc2]

[email protected]

06 Nov 14:47
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 67ba100: Added CHANGELOG.md to build

[email protected]

06 Nov 15:01
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

  • 6fb4851: Do not require bash to be installed

[email protected]

06 Nov 14:46
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release

Patch Changes

@kopflos-labs/[email protected]

06 Nov 14:46
Compare
Choose a tag to compare
Pre-release

Patch Changes

@kopflos-labs/[email protected]

06 Nov 11:36
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • 0af0958: First version - Server-Side rendering

@kopflos-labs/[email protected]

06 Nov 14:46
Compare
Choose a tag to compare
Pre-release

Patch Changes

@kopflos-labs/[email protected]

06 Nov 11:36
Compare
Choose a tag to compare
Pre-release

Minor Changes

Patch Changes

@kopflos-labs/[email protected]

06 Nov 14:46
Compare
Choose a tag to compare
Pre-release

Patch Changes

@kopflos-labs/[email protected]

06 Nov 11:36
Compare
Choose a tag to compare
Pre-release

Minor Changes

Patch Changes