Skip to content

docs: update outdated koa versions #674

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ resources.
> deploy a workload. You would want to "pin" to a particular version which is
> compatible with the version of Deno you are using and has a fixed set of APIs
> you would expect. `https://deno.land/x/` supports using git tags in the URL to
> direct you at a particular version. So to use version 13.0.0 of oak, you would
> want to import `https://deno.land/x/oak@v13.0.0/mod.ts`.
> direct you at a particular version. So to use version 17.0.0 of oak, you would
> want to import `https://deno.land/x/oak@v17.0.0/mod.ts`.

## Usage

Expand All @@ -60,7 +60,7 @@ oak is available for Node.js on both
[JSR](https://jsr.io/@oak/oak). To use from npm, install the package:

```
npm i @oakserver/oak@14
npm i @oakserver/oak@17
```

And then import into a module:
Expand All @@ -72,7 +72,7 @@ import { Application } from "@oakserver/oak";
To use from JSR, install the package:

```
npx jsr i @oak/oak@14
npx jsr i @oak/oak@17
```

And then import into a module:
Expand All @@ -95,7 +95,7 @@ oak is available for [Cloudflare Workers](https://workers.cloudflare.com/) on
project:

```
npx jsr add @oak/oak@14
npx jsr add @oak/oak@17
```

And then import into a module:
Expand Down Expand Up @@ -128,7 +128,7 @@ oak is available for Bun on [JSR](https://jsr.io/@oak/oak). To use install the
package:

```
bunx jsr i @oak/oak@14
bunx jsr i @oak/oak@17
```

And then import into a module:
Expand Down
2 changes: 1 addition & 1 deletion application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* # Example
*
* ```ts
* import { Application } from "jsr:@oak/oak@14/application";
* import { Application } from "jsr:@oak/oak@17/application";
*
* const app = new Application();
* app.use((ctx) => {
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
theme: jekyll-theme-minimal
theme: jekyll-theme-minimal
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<meta charset="utf-8">
<meta charset="utf-8" />
<title>Redirecting to https://oakserver.org/</title>
<meta http-equiv="refresh" content="0; URL=https://oakserver.org/">
<link rel="canonical" href="https://oakserver.org/">
<meta http-equiv="refresh" content="0; URL=https://oakserver.org/" />
<link rel="canonical" href="https://oakserver.org/" />
14 changes: 6 additions & 8 deletions examples/static/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<!DOCTYPE html>
<html>
<head></head>

<head></head>

<body>
<h1>Hello Static World!</h1>
<img src="deno_logo.png" width="150" />
</body>

</html>
<body>
<h1>Hello Static World!</h1>
<img src="deno_logo.png" width="150" />
</body>
</html>
4 changes: 2 additions & 2 deletions router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* # Example
*
* ```ts
* import { Application } from "jsr:@oak/oak@14/application";
* import { Router } from "jsr:@oak/oak@14/router";
* import { Application } from "jsr:@oak/oak@17/application";
* import { Router } from "jsr:@oak/oak@17/router";
*
* const app = new Application();
* const router = new Router();
Expand Down
Loading