From 031a5a078ad48838fb583b54d7fc55714a24ffb2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 6 Nov 2024 11:24:21 +0000 Subject: [PATCH] Version Packages (beta) --- .changeset/pre.json | 34 ++++++++- example/CHANGELOG.md | 20 ++++++ example/package.json | 14 ++-- labs/handlebars/CHANGELOG.md | 12 ++++ labs/handlebars/package.json | 4 +- labs/html-template/CHANGELOG.md | 12 ++++ labs/html-template/package.json | 6 +- labs/lit/CHANGELOG.md | 7 ++ labs/lit/package.json | 2 +- packages/cli/CHANGELOG.md | 29 ++++++++ packages/cli/package.json | 8 +-- packages/core/CHANGELOG.md | 69 +++++++++++++++++++ packages/core/package.json | 4 +- packages/express/CHANGELOG.md | 26 +++++++ packages/express/package.json | 6 +- packages/logger/CHANGELOG.md | 7 ++ packages/logger/package.json | 2 +- packages/plugin-deploy-resources/CHANGELOG.md | 12 ++++ packages/plugin-deploy-resources/package.json | 6 +- packages/serve-file/CHANGELOG.md | 7 ++ packages/serve-file/package.json | 2 +- packages/sparql-path-parser/CHANGELOG.md | 7 ++ packages/sparql-path-parser/package.json | 2 +- packages/vite/CHANGELOG.md | 9 +++ packages/vite/package.json | 4 +- 25 files changed, 280 insertions(+), 31 deletions(-) create mode 100644 example/CHANGELOG.md create mode 100644 labs/handlebars/CHANGELOG.md create mode 100644 labs/html-template/CHANGELOG.md create mode 100644 labs/lit/CHANGELOG.md create mode 100644 packages/cli/CHANGELOG.md create mode 100644 packages/logger/CHANGELOG.md create mode 100644 packages/plugin-deploy-resources/CHANGELOG.md create mode 100644 packages/serve-file/CHANGELOG.md create mode 100644 packages/sparql-path-parser/CHANGELOG.md create mode 100644 packages/vite/CHANGELOG.md diff --git a/.changeset/pre.json b/.changeset/pre.json index 31326af..5cbad0d 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -4,27 +4,59 @@ "initialVersions": { "@kopflos-cms/core": "0.2.1", "@kopflos-cms/express": "0.0.0", - "mocha-chai-rdf": "0.0.0" + "mocha-chai-rdf": "0.0.0", + "example": "0.0.0", + "@kopflos-labs/handlebars": "0.0.0", + "@kopflos-labs/html-template": "0.0.0", + "@kopflos-labs/lit": "0.0.0", + "kopflos": "0.0.0", + "@kopflos-cms/logger": "0.0.0", + "@kopflos-cms/plugin-deploy-resources": "0.0.0", + "@kopflos-cms/serve-file": "0.0.0", + "sparql-path-parser": "0.0.0", + "@kopflos-cms/vite": "0.0.0" }, "changesets": [ + "dirty-mugs-bow", + "dry-moose-applaud", "few-cars-stare", + "five-avocados-impress", "flat-boxes-talk", "fluffy-turkeys-return", + "friendly-geese-eat", + "gentle-apes-serve", "gold-donkeys-change", "hot-suits-suffer", "hungry-rats-notice", "lazy-balloons-watch", + "odd-hounds-float", "perfect-monkeys-tap", + "pink-eggs-collect", "poor-bags-bake", "popular-lizards-cough", + "real-numbers-visit", + "red-bottles-drum", "rich-meals-sing", + "shy-rivers-smoke", "shy-trains-hunt", "six-carpets-bathe", + "sixty-suns-melt", + "slimy-frogs-tie", "smooth-days-fold", "spotty-steaks-train", "strong-geckos-heal", + "stupid-ads-destroy", "sweet-roses-cry", + "tame-cobras-leave", + "tender-countries-worry", + "thick-socks-juggle", + "thin-buses-remember", + "thin-penguins-greet", "tiny-bugs-hang", + "tiny-eels-smoke", + "tough-peas-wink", + "wet-shirts-watch", + "wild-cooks-leave", "witty-glasses-fail" ] } diff --git a/example/CHANGELOG.md b/example/CHANGELOG.md new file mode 100644 index 0000000..853fc1d --- /dev/null +++ b/example/CHANGELOG.md @@ -0,0 +1,20 @@ +# example + +## 0.0.1-beta.0 + +### Patch Changes + +- Updated dependencies [730ecc2] +- Updated dependencies [3e30f38] +- Updated dependencies [3e30f38] +- Updated dependencies [730ecc2] +- Updated dependencies [fd489b3] +- Updated dependencies [0af0958] +- Updated dependencies [1fcb2c0] +- Updated dependencies [6775ad1] + - @kopflos-cms/vite@0.0.1-beta.0 + - @kopflos-cms/serve-file@0.1.0-beta.0 + - kopflos@0.1.0-beta.0 + - @kopflos-labs/html-template@0.1.0-beta.0 + - @kopflos-labs/handlebars@0.1.0-beta.0 + - @kopflos-labs/lit@0.1.0-beta.0 diff --git a/example/package.json b/example/package.json index c067545..18b0212 100644 --- a/example/package.json +++ b/example/package.json @@ -1,6 +1,6 @@ { "name": "example", - "version": "0.0.0", + "version": "0.0.1-beta.0", "private": true, "type": "module", "scripts": { @@ -10,17 +10,17 @@ "start:prod": "kopflos serve --trust-proxy --variable uiRoot=dist" }, "dependencies": { - "@kopflos-cms/vite": "*", - "@kopflos-cms/serve-file": "*", - "@kopflos-labs/html-template": "*", - "@kopflos-labs/handlebars": "*", - "@kopflos-labs/lit": "*", + "@kopflos-cms/vite": "0.0.1-beta.0", + "@kopflos-cms/serve-file": "0.1.0-beta.0", + "@kopflos-labs/html-template": "0.1.0-beta.0", + "@kopflos-labs/handlebars": "0.1.0-beta.0", + "@kopflos-labs/lit": "0.1.0-beta.0", "@openlayers-elements/core": "^0.3.0", "@openlayers-elements/maps": "^0.3.0", "@shoelace-style/shoelace": "^2.17.1", "@webcomponents/template-shadowroot": "^0.2.1", "express": "^5.0.1", - "kopflos": "*", + "kopflos": "0.1.0-beta.0", "lit-element": "^4.1.1", "cors": "^2.8.5", "compression": "^1.7.4" diff --git a/labs/handlebars/CHANGELOG.md b/labs/handlebars/CHANGELOG.md new file mode 100644 index 0000000..abbc2bb --- /dev/null +++ b/labs/handlebars/CHANGELOG.md @@ -0,0 +1,12 @@ +# @kopflos-labs/handlebars + +## 0.1.0-beta.0 + +### Minor Changes + +- 730ecc2: First version + +### Patch Changes + +- Updated dependencies [a4cc406] + - sparql-path-parser@0.1.0-beta.0 diff --git a/labs/handlebars/package.json b/labs/handlebars/package.json index bc034fd..1780d5a 100644 --- a/labs/handlebars/package.json +++ b/labs/handlebars/package.json @@ -1,6 +1,6 @@ { "name": "@kopflos-labs/handlebars", - "version": "0.0.0", + "version": "0.1.0-beta.0", "type": "module", "main": "index.js", "scripts": { @@ -16,7 +16,7 @@ "@zazuko/prefixes": "^2.2.0", "clownface-shacl-path": "^2.4.0", "handlebars": "^4.7.8", - "sparql-path-parser": "^0.0.0" + "sparql-path-parser": "^0.1.0-beta.0" }, "devDependencies": { "chai": "^5.1.1", diff --git a/labs/html-template/CHANGELOG.md b/labs/html-template/CHANGELOG.md new file mode 100644 index 0000000..800e7bd --- /dev/null +++ b/labs/html-template/CHANGELOG.md @@ -0,0 +1,12 @@ +# @kopflos-labs/html-template + +## 0.1.0-beta.0 + +### Minor Changes + +- 730ecc2: First version + +### Patch Changes + +- Updated dependencies [730ecc2] + - @kopflos-cms/logger@0.1.0-beta.0 diff --git a/labs/html-template/package.json b/labs/html-template/package.json index 6fff4cc..4eeaf07 100644 --- a/labs/html-template/package.json +++ b/labs/html-template/package.json @@ -1,6 +1,6 @@ { "name": "@kopflos-labs/html-template", - "version": "0.0.0", + "version": "0.1.0-beta.0", "type": "module", "main": "index.js", "scripts": { @@ -12,14 +12,14 @@ ".": "./index.js" }, "dependencies": { - "@kopflos-cms/logger": "^0.0.0", + "@kopflos-cms/logger": "^0.1.0-beta.0", "@zazuko/env": "^2.3.0", "@zazuko/prefixes": "^2.2.0", "cheerio": "^1.0.0", "htmlparser2": "^9.1.0" }, "devDependencies": { - "@kopflos-cms/core": "^0.3.0-beta.8", + "@kopflos-cms/core": "^0.3.0-beta.9", "@types/chai-html": "^3.0.0", "@types/sinon": "^17.0.3", "@zazuko/env-node": "^2.1.4", diff --git a/labs/lit/CHANGELOG.md b/labs/lit/CHANGELOG.md new file mode 100644 index 0000000..9fee240 --- /dev/null +++ b/labs/lit/CHANGELOG.md @@ -0,0 +1,7 @@ +# @kopflos-labs/lit + +## 0.1.0-beta.0 + +### Minor Changes + +- 0af0958: First version - Server-Side rendering diff --git a/labs/lit/package.json b/labs/lit/package.json index 1742da3..06173ac 100644 --- a/labs/lit/package.json +++ b/labs/lit/package.json @@ -1,6 +1,6 @@ { "name": "@kopflos-labs/lit", - "version": "0.0.0", + "version": "0.1.0-beta.0", "main": "index.js", "type": "module", "dependencies": { diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md new file mode 100644 index 0000000..8b5f931 --- /dev/null +++ b/packages/cli/CHANGELOG.md @@ -0,0 +1,29 @@ +# kopflos + +## 0.1.0-beta.0 + +### Minor Changes + +- 1fcb2c0: First version + +### Patch Changes + +- 3e30f38: Added `--variable ` option to override config variables +- fd489b3: Added plugin with `onStart` hook +- 6775ad1: Added `--mode (development|production)` option +- Updated dependencies [fd489b3] +- Updated dependencies [730ecc2] +- Updated dependencies [3e30f38] +- Updated dependencies [1fcb2c0] +- Updated dependencies [3e30f38] +- Updated dependencies [3e30f38] +- Updated dependencies [1fcb2c0] +- Updated dependencies [a72254b] +- Updated dependencies [fd489b3] +- Updated dependencies [fd489b3] +- Updated dependencies [be93e5a] +- Updated dependencies [730ecc2] +- Updated dependencies [3e30f38] + - @kopflos-cms/plugin-deploy-resources@0.1.0-beta.0 + - @kopflos-cms/express@0.1.0-beta.5 + - @kopflos-cms/core@0.3.0-beta.9 diff --git a/packages/cli/package.json b/packages/cli/package.json index 01213b5..47792f8 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "kopflos", - "version": "0.0.0", + "version": "0.1.0-beta.0", "type": "module", "bin": { "kopflos": "./bin/kopflos.sh" @@ -29,9 +29,9 @@ }, "homepage": "https://github.com/zazuko/kopflos", "dependencies": { - "@kopflos-cms/core": "^0.3.0-beta.8", - "@kopflos-cms/express": "^0.0.1-beta.4", - "@kopflos-cms/plugin-deploy-resources": "^0.0.0", + "@kopflos-cms/core": "^0.3.0-beta.9", + "@kopflos-cms/express": "^0.1.0-beta.5", + "@kopflos-cms/plugin-deploy-resources": "^0.1.0-beta.0", "commander": "^12.0.0", "cosmiconfig": "^9.0.0", "express": "^5.0.1", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 0d60953..eb13600 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,74 @@ # @kopflos-cms/core +## 0.3.0-beta.9 + +### Minor Changes + +- 3e30f38: Handlers: Added support for `code:arguments`. Please refer to [rdf-loader-code](https://github.com/zazuko/rdf-loader-code?tab=readme-ov-file#loading-function-arguments) for more information. + + ```turtle + [ + 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. + + ```diff + 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` +- 3e30f38: Support for direct stream, using Web Streams +- 1fcb2c0: Revert dependency on `anylogger` to stable v1 branch +- 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`. + + ```turtle + <#WebPage> + a kl:ResourceShape ; + kl:api <> ; + sh:target + [ + a kl:PatternedTarget ; + kl:regex "/(?[^/]+).+\\.html$" ; + ] ; + kl:handler + [ + a kl:Handler ; + kl:method "GET" ; + code:implementedBy + [ + a code:EcmaScriptModule ; + code:link ; + code:arguments ( "pages/${type}.html"^^code:EcmaScriptTemplateLiteral ) ; + ] ; + ] ; + . + ``` + +- a72254b: Object of `kl:handler` can now be an RDF List of handler implementations which will be called in sequence +- fd489b3: Added plugin with `onStart` hook +- be93e5a: Added `./env.js` to package exports +- 3e30f38: Added support for `code:EcmaScriptTemplateLiteral` +- Updated dependencies [730ecc2] + - @kopflos-cms/logger@0.1.0-beta.0 + ## 0.3.0-beta.8 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index bc5d001..7ff4568 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,7 +1,7 @@ { "name": "@kopflos-cms/core", "description": "RDF-based web APIs", - "version": "0.3.0-beta.8", + "version": "0.3.0-beta.9", "main": "index.js", "type": "module", "scripts": { @@ -36,7 +36,7 @@ }, "homepage": "https://github.com/zazuko/kopflos", "dependencies": { - "@kopflos-cms/logger": "^0.0.0", + "@kopflos-cms/logger": "^0.1.0-beta.0", "@rdfjs/types": "^1.1.0", "@tpluscode/sparql-builder": "^3.0.0", "@types/clownface": "^2.0.8", diff --git a/packages/express/CHANGELOG.md b/packages/express/CHANGELOG.md index 1d1ff8d..2666934 100644 --- a/packages/express/CHANGELOG.md +++ b/packages/express/CHANGELOG.md @@ -1,5 +1,31 @@ # @kopflos-cms/express +## 0.1.0-beta.5 + +### Minor Changes + +- fd489b3: First version +- 1fcb2c0: The main export now returns `Promise<{ middleware: RequestHandler; instance: Kopflos }>` +- fd489b3: Added express-only middleware hooks + +### Patch Changes + +- 3e30f38: Support for direct stream, using Web Streams +- fd489b3: Added plugin with `onStart` hook +- 730ecc2: Ensure that middlewares from multiple plugins are registered in order +- Updated dependencies [730ecc2] +- Updated dependencies [3e30f38] +- Updated dependencies [1fcb2c0] +- Updated dependencies [3e30f38] +- Updated dependencies [3e30f38] +- Updated dependencies [a72254b] +- Updated dependencies [fd489b3] +- Updated dependencies [be93e5a] +- Updated dependencies [3e30f38] +- Updated dependencies [730ecc2] + - @kopflos-cms/core@0.3.0-beta.9 + - @kopflos-cms/logger@0.1.0-beta.0 + ## 0.0.1-beta.4 ### Patch Changes diff --git a/packages/express/package.json b/packages/express/package.json index aff0382..b1d3be3 100644 --- a/packages/express/package.json +++ b/packages/express/package.json @@ -1,6 +1,6 @@ { "name": "@kopflos-cms/express", - "version": "0.0.1-beta.4", + "version": "0.1.0-beta.5", "main": "index.js", "license": "MIT", "type": "module", @@ -20,8 +20,8 @@ "lib/**/*.d.ts" ], "dependencies": { - "@kopflos-cms/core": "^0.3.0-beta.8", - "@kopflos-cms/logger": "^0.0.0", + "@kopflos-cms/core": "^0.3.0-beta.9", + "@kopflos-cms/logger": "^0.1.0-beta.0", "@rdfjs/express-handler": "^2.0.2", "@zazuko/env-node": "^2.1.3", "absolute-url": "^2.0.0", diff --git a/packages/logger/CHANGELOG.md b/packages/logger/CHANGELOG.md new file mode 100644 index 0000000..54f2a55 --- /dev/null +++ b/packages/logger/CHANGELOG.md @@ -0,0 +1,7 @@ +# @kopflos-cms/logger + +## 0.1.0-beta.0 + +### Minor Changes + +- 730ecc2: Extracted package from `@kopflos-cms/core` diff --git a/packages/logger/package.json b/packages/logger/package.json index 4d5cce2..2f40bf3 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@kopflos-cms/logger", - "version": "0.0.0", + "version": "0.1.0-beta.0", "type": "module", "main": "index.js", "dependencies": { diff --git a/packages/plugin-deploy-resources/CHANGELOG.md b/packages/plugin-deploy-resources/CHANGELOG.md new file mode 100644 index 0000000..a6b01cd --- /dev/null +++ b/packages/plugin-deploy-resources/CHANGELOG.md @@ -0,0 +1,12 @@ +# @kopflos-cms/plugin-deploy-resources + +## 0.1.0-beta.0 + +### Minor Changes + +- fd489b3: First version + +### Patch Changes + +- Updated dependencies [730ecc2] + - @kopflos-cms/logger@0.1.0-beta.0 diff --git a/packages/plugin-deploy-resources/package.json b/packages/plugin-deploy-resources/package.json index 6c4106c..993f82b 100644 --- a/packages/plugin-deploy-resources/package.json +++ b/packages/plugin-deploy-resources/package.json @@ -1,6 +1,6 @@ { "name": "@kopflos-cms/plugin-deploy-resources", - "version": "0.0.0", + "version": "0.1.0-beta.0", "type": "module", "main": "index.js", "license": "MIT", @@ -16,11 +16,11 @@ "dependencies": { "@hydrofoil/resource-store": "^0.2.2", "@hydrofoil/talos-core": "^0.2", - "@kopflos-cms/logger": "^0.0.0", + "@kopflos-cms/logger": "^0.1.0-beta.0", "anylogger": "^1.0.11" }, "devDependencies": { - "@kopflos-cms/core": "^0.3.0-beta.8", + "@kopflos-cms/core": "^0.3.0-beta.9", "@zazuko/env-node": "^2.1.3", "chai": "^5.1.1", "mocha-chai-rdf": "^0.1.4" diff --git a/packages/serve-file/CHANGELOG.md b/packages/serve-file/CHANGELOG.md new file mode 100644 index 0000000..e85f328 --- /dev/null +++ b/packages/serve-file/CHANGELOG.md @@ -0,0 +1,7 @@ +# @kopflos-cms/serve-file + +## 0.1.0-beta.0 + +### Minor Changes + +- 3e30f38: First version: serve files directly, with an option to stream directly diff --git a/packages/serve-file/package.json b/packages/serve-file/package.json index af4a339..9fb9a95 100644 --- a/packages/serve-file/package.json +++ b/packages/serve-file/package.json @@ -1,6 +1,6 @@ { "name": "@kopflos-cms/serve-file", - "version": "0.0.0", + "version": "0.1.0-beta.0", "type": "module", "main": "index.js", "scripts": { diff --git a/packages/sparql-path-parser/CHANGELOG.md b/packages/sparql-path-parser/CHANGELOG.md new file mode 100644 index 0000000..12f27ce --- /dev/null +++ b/packages/sparql-path-parser/CHANGELOG.md @@ -0,0 +1,7 @@ +# sparql-path-parser + +## 0.1.0-beta.0 + +### Minor Changes + +- a4cc406: First version diff --git a/packages/sparql-path-parser/package.json b/packages/sparql-path-parser/package.json index ff98e00..ed50108 100644 --- a/packages/sparql-path-parser/package.json +++ b/packages/sparql-path-parser/package.json @@ -1,6 +1,6 @@ { "name": "sparql-path-parser", - "version": "0.0.0", + "version": "0.1.0-beta.0", "type": "module", "main": "index.js", "scripts": { diff --git a/packages/vite/CHANGELOG.md b/packages/vite/CHANGELOG.md new file mode 100644 index 0000000..db384c8 --- /dev/null +++ b/packages/vite/CHANGELOG.md @@ -0,0 +1,9 @@ +# @kopflos-cms/vite + +## 0.0.1-beta.0 + +### Patch Changes + +- 730ecc2: Ensure the the `outDir` setting is also used for serving files in in production mode +- Updated dependencies [730ecc2] + - @kopflos-cms/logger@0.1.0-beta.0 diff --git a/packages/vite/package.json b/packages/vite/package.json index 648ee03..6f262d0 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -1,6 +1,6 @@ { "name": "@kopflos-cms/vite", - "version": "0.0.0", + "version": "0.0.1-beta.0", "type": "module", "main": "index.js", "author": "Zazuko GmbH", @@ -26,7 +26,7 @@ }, "homepage": "https://github.com/zazuko/kopflos", "dependencies": { - "@kopflos-cms/logger": "^0.0.0", + "@kopflos-cms/logger": "^0.1.0-beta.0", "express": "^5.0.1", "glob": "^11.0.0", "onetime": "^7.0.0",