Skip to content

Commit

Permalink
Version Packages (beta)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and tpluscode committed Nov 6, 2024
1 parent 1484193 commit 031a5a0
Show file tree
Hide file tree
Showing 25 changed files with 280 additions and 31 deletions.
34 changes: 33 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
20 changes: 20 additions & 0 deletions example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
- [email protected]
- @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
14 changes: 7 additions & 7 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example",
"version": "0.0.0",
"version": "0.0.1-beta.0",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -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"
Expand Down
12 changes: 12 additions & 0 deletions labs/handlebars/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# @kopflos-labs/handlebars

## 0.1.0-beta.0

### Minor Changes

- 730ecc2: First version

### Patch Changes

- Updated dependencies [a4cc406]
- [email protected]
4 changes: 2 additions & 2 deletions labs/handlebars/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kopflos-labs/handlebars",
"version": "0.0.0",
"version": "0.1.0-beta.0",
"type": "module",
"main": "index.js",
"scripts": {
Expand All @@ -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",
Expand Down
12 changes: 12 additions & 0 deletions labs/html-template/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions labs/html-template/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions labs/lit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @kopflos-labs/lit

## 0.1.0-beta.0

### Minor Changes

- 0af0958: First version - Server-Side rendering
2 changes: 1 addition & 1 deletion labs/lit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kopflos-labs/lit",
"version": "0.0.0",
"version": "0.1.0-beta.0",
"main": "index.js",
"type": "module",
"dependencies": {
Expand Down
29 changes: 29 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# kopflos

## 0.1.0-beta.0

### Minor Changes

- 1fcb2c0: First version

### Patch Changes

- 3e30f38: Added `--variable <key=value>` 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
8 changes: 4 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kopflos",
"version": "0.0.0",
"version": "0.1.0-beta.0",
"type": "module",
"bin": {
"kopflos": "./bin/kopflos.sh"
Expand Down Expand Up @@ -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",
Expand Down
69 changes: 69 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 "/(?<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 ) ;
] ;
] ;
.
```

- 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
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
26 changes: 26 additions & 0 deletions packages/express/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/express/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
Loading

0 comments on commit 031a5a0

Please sign in to comment.