Skip to content

Commit

Permalink
v0.7.2 - See CHANGELOG for details (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thesephi authored Jun 17, 2024
1 parent 26d7180 commit 3bbd89a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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
```
Expand All @@ -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 {
Expand All @@ -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
```
Expand All @@ -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";

Expand All @@ -315,14 +322,14 @@ useOakServer(app, [MyController]);
await app.listen({ port: 1993 });
```

_

```bash
curl http://localhost:1993/hello/world # prints: hello, world
```

</details>

---

## Documentation

Documentation is hosted on the Javascript Registry:
Expand All @@ -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)
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dklab/oak-routing-ctrl",
"version": "0.7.1",
"version": "0.7.2",
"exports": {
".": "./mod.ts"
},
Expand Down

0 comments on commit 3bbd89a

Please sign in to comment.