Releases: zazuko/kopflos
@kopflos-cms/[email protected]
Patch Changes
- 67ba100: Added CHANGELOG.md to build
- 730ecc2: Ensure the the
outDir
setting is also used for serving files in in production mode - 87f4e96: The plugin populates a variable
VITE.basePath
which will be resolved to the correct path in development and production mode - 67ba100: Added type augmentation of plugin config interface
- 1b8a2bc: Serve the entire UI build statically. Before,
public
vite resources would not be accessible - Updated dependencies [67ba100]
- Updated dependencies [730ecc2]
- @kopflos-cms/[email protected]
@kopflos-cms/[email protected]
@kopflos-cms/[email protected]
Minor Changes
Patch Changes
@kopflos-cms/[email protected]
@kopflos-cms/[email protected]
Minor Changes
- fd489b3: First version
- 1fcb2c0: The main export now returns
Promise<{ middleware: RequestHandler; instance: Kopflos }>
- fd489b3: Added express-only middleware hooks
Patch Changes
- 67ba100: Added CHANGELOG.md to build
- 3e30f38: Support for direct stream, using Web Streams
- 67ba100: Plugin dir wasn't packaged
- 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 theIncomingMessage
object to allow parsing bodies usingco-body
or similar. - 3a227e5: First version
- 14705ba: Adding support for accessing request body
- fd489b3: Added plugin with
onStart
hook - facbd83: build(deps): bump express from 4.19.2 to 4.20.0
- 730ecc2: Ensure that middlewares from multiple plugins are registered in order
- 1b4a7fc: After first request, the server would stop responding
- Updated dependencies [730ecc2]
- Updated dependencies [67ba100]
- Updated dependencies [619d7f2]
- Updated dependencies [3e30f38]
- Updated dependencies [b691125]
- Updated dependencies [77cfe87]
- Updated dependencies [1fcb2c0]
- Updated dependencies [14705ba]
- Updated dependencies [fe2793d]
- Updated dependencies [b72086f]
- Updated dependencies [673f9a2]
- Updated dependencies [3e30f38]
- Updated dependencies [2b107ef]
- Updated dependencies [3e30f38]
- Updated dependencies [67ba100]
- Updated dependencies [13f029c]
- Updated dependencies [b94672f]
- Updated dependencies [528bfd2]
- Updated dependencies [1b8a2bc]
- Updated dependencies [0b960fa]
- Updated dependencies [67ba100]
- Updated dependencies [a72254b]
- Updated dependencies [a11dda5]
- Updated dependencies [14705ba]
- Updated dependencies [2ee7a70]
- Updated dependencies [fd489b3]
- Updated dependencies [67bd393]
- Updated dependencies [be93e5a]
- Updated dependencies [3e30f38]
- Updated dependencies [730ecc2]
- @kopflos-cms/[email protected]
- @kopflos-cms/[email protected]
@kopflos-cms/[email protected]
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
orParsingClient
-
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 asHandlerArgs#subjectVariables
and included when resolvingcode: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 theIncomingMessage
object to allow parsing bodies usingco-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]
- @kopflos-cms/[email protected]
[email protected]
Patch Changes
- 67ba100: Added CHANGELOG.md to build
[email protected]
Patch Changes
- 6fb4851: Do not require bash to be installed
[email protected]
Patch Changes
- 67ba100: Added CHANGELOG.md to build
- 67ba100: Running
kopflos build
is now possible with incomplete configuration - 67ba100: Removed debug logs
- Updated dependencies [67ba100]
- Updated dependencies [67ba100]
- Updated dependencies [67ba100]
- Updated dependencies [67ba100]
- @kopflos-cms/[email protected]
- @kopflos-cms/[email protected]
- @kopflos-cms/[email protected]
@kopflos-labs/[email protected]
Patch Changes
- 67ba100: Exclude TS from package