diff --git a/CHANGELOG.md b/CHANGELOG.md index c17abc6..81905a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [0.7.2] - 2024-06-17 + +### Changed + +- typo fix in README Markdown +- added test coverage chart to README +- attempted better format for JSR library main page + ## [0.7.1] - 2024-06-17 ### Added diff --git a/README.md b/README.md index c1274cd..2f1169c 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,8 @@ npm i @jsr/oak__oak @jsr/dklab__oak-routing-ctrl # in better dependency resolutions ``` +_ + ```ts // alternatively imported from "@oak/oak/application" import { Application } from "@jsr/oak__oak/application"; @@ -232,11 +234,12 @@ export class MyController { } const app = new Application(); - useOakServer(app, [MyController]); await app.listen({ port: 1993 }); ``` +_ + ```bash curl http://localhost:1993/hello/world # prints: hello, world ``` @@ -252,6 +255,8 @@ curl http://localhost:1993/hello/world # prints: hello, world npx jsr add @oak/oak @dklab/oak-routing-ctrl ``` +_ + ```ts import { Application } from "@oak/oak/application"; import { @@ -271,12 +276,12 @@ class MyCloudflareWorkerController { } const app = new Application(); - useOakServer(app, [MyCloudflareWorkerController]); - export default { fetch: app.fetch }; ``` +_ + ```bash curl http://{your-cloudflare-worker-domain}/hello/world # prints: hello, world ``` @@ -292,6 +297,8 @@ curl http://{your-cloudflare-worker-domain}/hello/world # prints: hello, world bunx jsr i @oak/oak @dklab/oak-routing-ctrl ``` +_ + ```ts import { Application } from "@oak/oak/application"; @@ -315,14 +322,14 @@ useOakServer(app, [MyController]); await app.listen({ port: 1993 }); ``` +_ + ```bash curl http://localhost:1993/hello/world # prints: hello, world ``` ---- - ## Documentation Documentation is hosted on the Javascript Registry: @@ -336,3 +343,7 @@ https://jsr.io/@dklab/oak-routing-ctrl/doc deno test -A --coverage=cov_profile deno coverage cov_profile ``` + +### Test Coverage + +![coverage](https://codecov.io/gh/Thesephi/oak-routing-ctrl/graphs/tree.svg?token=BA3M9P6410) diff --git a/jsr.json b/jsr.json index 6d96c95..e6f7690 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@dklab/oak-routing-ctrl", - "version": "0.7.1", + "version": "0.7.2", "exports": { ".": "./mod.ts" },