Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorten committed Jan 28, 2024
1 parent 55ea0ca commit a5c17e6
Show file tree
Hide file tree
Showing 25 changed files with 254 additions and 250 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 20
- name: Install deps
run: make deps
- name: Use Deno
uses: denolib/setup-deno@v2
with:
deno-version: 1.19.3
deno-version: 1.40.2
- run: make typedoc
- run: make ci
- name: Publish Updated Type Docs
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: publish typedocs
push_options: --force
push_options: --force
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ci:
@make test

deps:
@npm install -g typescript [email protected]
@npm install -g typescript@4 [email protected]

doc:
@deno doc ./mod.ts
Expand All @@ -24,7 +24,7 @@ fmt-check:
@deno fmt --check ${FILES_TO_FORMAT}

lint:
@deno lint --unstable ${FILES_TO_FORMAT}
@deno lint ${FILES_TO_FORMAT}

precommit:
@make typedoc
Expand Down
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import { superdeno } from "https://deno.land/x/superdeno/mod.ts";
SuperDeno is also available on [nest.land](https://nest.land/package/superdeno),
a package registry for Deno on the Blockchain.

> Note: All examples in this README are using the unversioned form of the import URL. In production you should always use the versioned import form such as `https://deno.land/x/superdeno@4.8.0/mod.ts`.
> Note: All examples in this README are using the unversioned form of the import URL. In production you should always use the versioned import form such as `https://deno.land/x/superdeno@4.9.0/mod.ts`.
## Example

Expand Down Expand Up @@ -116,8 +116,8 @@ Here's an example of SuperDeno working with the Opine web framework:

```ts
import { superdeno } from "https://deno.land/x/superdeno/mod.ts";
import { opine } from "https://deno.land/x/opine@1.9.1/mod.ts";
export { expect } from "https://deno.land/x/expect@v0.2.9/mod.ts";
import { opine } from "https://deno.land/x/opine@2.3.4/mod.ts";
export { expect } from "https://deno.land/x/expect@v0.4.0/mod.ts";

const app = opine();

Expand All @@ -131,7 +131,7 @@ Deno.test("it should support regular expressions", async () => {
.expect("Content-Type", /^application/)
.end((err) => {
expect(err.message).toEqual(
'expected "Content-Type" matching /^application/, got "text/html; charset=utf-8"',
'expected "Content-Type" matching /^application/, got "text/html; charset=utf-8"'
);
});
});
Expand Down Expand Up @@ -194,15 +194,16 @@ const app = new Application();
app.use(router.routes());
app.use(router.allowedMethods());

Deno.test("it should support the Oak framework `app.handle` method", async () => {
/**
* Note that we have to bind `app` to the function otherwise `app.handle`
* doesn't preserve the `this` context from `app`.
*/
await superdeno(app.handle.bind(app))
.get("/")
.expect("Hello Deno!");
});
Deno.test(
"it should support the Oak framework `app.handle` method",
async () => {
/**
* Note that we have to bind `app` to the function otherwise `app.handle`
* doesn't preserve the `this` context from `app`.
*/
await superdeno(app.handle.bind(app)).get("/").expect("Hello Deno!");
}
);
```

In this case, SuperDeno handles the setup and closing of the server for you, so
Expand Down
13 changes: 8 additions & 5 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export { Server } from "https://deno.land/[email protected]/http/server.ts";
export { STATUS_TEXT } from "https://deno.land/[email protected]/http/http_status.ts";
export { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
export { methods } from "https://deno.land/x/[email protected]/src/methods.ts";
export { mergeDescriptors } from "https://deno.land/x/[email protected]/src/utils/mergeDescriptors.ts";
export { Server } from "https://deno.land/[email protected]/http/server.ts";
export { STATUS_TEXT } from "https://deno.land/[email protected]/http/status.ts";
export type { StatusCode } from "https://deno.land/[email protected]/http/status.ts";
export { assertEquals } from "https://deno.land/[email protected]/assert/mod.ts";
export { methods } from "https://deno.land/x/[email protected]/src/methods.ts";
export { mergeDescriptors } from "https://deno.land/x/[email protected]/src/utils/mergeDescriptors.ts";

// TODO: upgrade to v8
export { default as superagent } from "https://jspm.dev/[email protected]";
132 changes: 66 additions & 66 deletions docs/classes/_test_.test.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ <h2>Installation</h2>
<p>SuperDeno is also available on <a href="https://nest.land/package/superdeno">nest.land</a>,
a package registry for Deno on the Blockchain.</p>
<blockquote>
<p>Note: All examples in this README are using the unversioned form of the import URL. In production you should always use the versioned import form such as <code>https://deno.land/x/superdeno@4.8.0/mod.ts</code>.</p>
<p>Note: All examples in this README are using the unversioned form of the import URL. In production you should always use the versioned import form such as <code>https://deno.land/x/superdeno@4.9.0/mod.ts</code>.</p>
</blockquote>
<a href="#example" id="example" style="color: inherit; text-decoration: none;">
<h2>Example</h2>
Expand Down
52 changes: 26 additions & 26 deletions docs/interfaces/_superdeno_.superdeno.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h3>checkout</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L24">home/runner/work/superdeno/superdeno/src/superdeno.ts:24</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L24">git/asos-craigmorten/superdeno/src/superdeno.ts:24</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -156,7 +156,7 @@ <h3>connect</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L25">home/runner/work/superdeno/superdeno/src/superdeno.ts:25</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L25">git/asos-craigmorten/superdeno/src/superdeno.ts:25</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -179,7 +179,7 @@ <h3>copy</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L26">home/runner/work/superdeno/superdeno/src/superdeno.ts:26</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L26">git/asos-craigmorten/superdeno/src/superdeno.ts:26</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -202,7 +202,7 @@ <h3>delete</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L20">home/runner/work/superdeno/superdeno/src/superdeno.ts:20</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L20">git/asos-craigmorten/superdeno/src/superdeno.ts:20</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -225,7 +225,7 @@ <h3>get</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L17">home/runner/work/superdeno/superdeno/src/superdeno.ts:17</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L17">git/asos-craigmorten/superdeno/src/superdeno.ts:17</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -248,7 +248,7 @@ <h3>head</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L23">home/runner/work/superdeno/superdeno/src/superdeno.ts:23</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L23">git/asos-craigmorten/superdeno/src/superdeno.ts:23</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -271,7 +271,7 @@ <h3>lock</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L27">home/runner/work/superdeno/superdeno/src/superdeno.ts:27</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L27">git/asos-craigmorten/superdeno/src/superdeno.ts:27</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -294,7 +294,7 @@ <h3>m-<wbr>search</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L32">home/runner/work/superdeno/superdeno/src/superdeno.ts:32</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L32">git/asos-craigmorten/superdeno/src/superdeno.ts:32</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -317,7 +317,7 @@ <h3>merge</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L28">home/runner/work/superdeno/superdeno/src/superdeno.ts:28</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L28">git/asos-craigmorten/superdeno/src/superdeno.ts:28</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -340,7 +340,7 @@ <h3>mkactivity</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L29">home/runner/work/superdeno/superdeno/src/superdeno.ts:29</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L29">git/asos-craigmorten/superdeno/src/superdeno.ts:29</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -363,7 +363,7 @@ <h3>mkcol</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L30">home/runner/work/superdeno/superdeno/src/superdeno.ts:30</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L30">git/asos-craigmorten/superdeno/src/superdeno.ts:30</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -386,7 +386,7 @@ <h3>move</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L31">home/runner/work/superdeno/superdeno/src/superdeno.ts:31</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L31">git/asos-craigmorten/superdeno/src/superdeno.ts:31</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -409,7 +409,7 @@ <h3>notify</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L33">home/runner/work/superdeno/superdeno/src/superdeno.ts:33</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L33">git/asos-craigmorten/superdeno/src/superdeno.ts:33</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -432,7 +432,7 @@ <h3>options</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L22">home/runner/work/superdeno/superdeno/src/superdeno.ts:22</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L22">git/asos-craigmorten/superdeno/src/superdeno.ts:22</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -455,7 +455,7 @@ <h3>patch</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L21">home/runner/work/superdeno/superdeno/src/superdeno.ts:21</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L21">git/asos-craigmorten/superdeno/src/superdeno.ts:21</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -478,7 +478,7 @@ <h3>post</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L18">home/runner/work/superdeno/superdeno/src/superdeno.ts:18</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L18">git/asos-craigmorten/superdeno/src/superdeno.ts:18</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -501,7 +501,7 @@ <h3>propfind</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L34">home/runner/work/superdeno/superdeno/src/superdeno.ts:34</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L34">git/asos-craigmorten/superdeno/src/superdeno.ts:34</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -524,7 +524,7 @@ <h3>proppatch</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L35">home/runner/work/superdeno/superdeno/src/superdeno.ts:35</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L35">git/asos-craigmorten/superdeno/src/superdeno.ts:35</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -547,7 +547,7 @@ <h3>purge</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L36">home/runner/work/superdeno/superdeno/src/superdeno.ts:36</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L36">git/asos-craigmorten/superdeno/src/superdeno.ts:36</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -570,7 +570,7 @@ <h3>put</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L19">home/runner/work/superdeno/superdeno/src/superdeno.ts:19</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L19">git/asos-craigmorten/superdeno/src/superdeno.ts:19</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -593,7 +593,7 @@ <h3>report</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L37">home/runner/work/superdeno/superdeno/src/superdeno.ts:37</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L37">git/asos-craigmorten/superdeno/src/superdeno.ts:37</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -616,7 +616,7 @@ <h3>search</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L38">home/runner/work/superdeno/superdeno/src/superdeno.ts:38</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L38">git/asos-craigmorten/superdeno/src/superdeno.ts:38</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -639,7 +639,7 @@ <h3>subscribe</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L39">home/runner/work/superdeno/superdeno/src/superdeno.ts:39</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L39">git/asos-craigmorten/superdeno/src/superdeno.ts:39</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -662,7 +662,7 @@ <h3>trace</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L40">home/runner/work/superdeno/superdeno/src/superdeno.ts:40</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L40">git/asos-craigmorten/superdeno/src/superdeno.ts:40</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -685,7 +685,7 @@ <h3>unlock</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L41">home/runner/work/superdeno/superdeno/src/superdeno.ts:41</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L41">git/asos-craigmorten/superdeno/src/superdeno.ts:41</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -708,7 +708,7 @@ <h3>unsubscribe</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/cmorten/superdeno/blob/09b2ae3/src/superdeno.ts#L42">home/runner/work/superdeno/superdeno/src/superdeno.ts:42</a></li>
<li>Defined in <a href="https://github.com/asos-craigmorten/superdeno/blob/55ea0ca/src/superdeno.ts#L42">git/asos-craigmorten/superdeno/src/superdeno.ts:42</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
Loading

0 comments on commit a5c17e6

Please sign in to comment.