Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorten committed Jan 28, 2024
1 parent 1d95cac commit c039023
Show file tree
Hide file tree
Showing 12 changed files with 728 additions and 390 deletions.
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ChangeLog

For the latest changes, please refer to the
[releases page](https://github.com/cmorten/superoak/releases).

## [3.0.2] - 27-08-2022

- feat: update to Deno `1.25.0`, std `0.153.0`
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12
- name: Use Node.js 20
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.25.0
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
2 changes: 1 addition & 1 deletion .github/workflows/publish-egg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: 1.25.0
deno-version: 1.40.2
- run: deno install -A -f --unstable -n eggs https://x.nest.land/eggs@0.3.10/eggs.ts
- run: |
export PATH="/home/runner/.deno/bin:$PATH"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
deno-version: [1.25.0]
deno-version: [1.40.2]

runs-on: ${{ matrix.os }}

Expand All @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [windows-latest]
deno-version: [1.25.0]
deno-version: [1.40.2]

runs-on: ${{ matrix.os }}

Expand Down
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 typedoc@0.19.2
@npm install -g typescript@4 typedoc@0.19.2

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
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Proxy middleware for Deno Opine HTTP servers.

<p align="left">
<a href="https://deno.land/x/opineHttpProxy"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Flatest-version%2Fx%2FopineHttpProxy%2Fmod.ts" alt="opine-http-proxy latest /x/ version" /></a>
<a href="https://github.com/denoland/deno/blob/main/Releases.md"><img src="https://img.shields.io/badge/deno-^1.25.0-brightgreen?logo=deno" alt="Minimum supported Deno version" /></a>
<a href="https://github.com/denoland/deno/blob/main/Releases.md"><img src="https://img.shields.io/badge/deno-^1.40.2-brightgreen?logo=deno" alt="Minimum supported Deno version" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opineHttpProxy/mod.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fdep-count%2Fx%2FopineHttpProxy%2Fmod.ts" alt="opine-http-proxy dependency count" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opineHttpProxy/mod.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fupdates%2Fx%2FopineHttpProxy%2Fmod.ts" alt="opine-http-proxy dependency outdatedness" /></a>
<a href="https://deno-visualizer.danopia.net/dependencies-of/https/deno.land/x/opineHttpProxy/mod.ts"><img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Fcache-size%2Fx%2FopineHttpProxy%2Fmod.ts" alt="opine-http-proxy cached size" /></a>
</p>

```ts
import { proxy } from "https://deno.land/x/opineHttpProxy@3.0.2/mod.ts";
import { proxy } from "https://deno.land/x/opineHttpProxy@3.1.0/mod.ts";
import { opine } from "https://deno.land/x/opine@2.3.1/mod.ts";

const app = opine();
Expand All @@ -41,7 +41,7 @@ Before importing, [download and install Deno](https://deno.land/#installation).
You can then import opine-http-proxy straight into your project:

```ts
import { proxy } from "https://deno.land/x/opineHttpProxy@3.0.2/mod.ts";
import { proxy } from "https://deno.land/x/opineHttpProxy@3.1.0/mod.ts";
```

## Docs
Expand All @@ -65,7 +65,10 @@ app.get("/string", proxy("http://google.com"));

app.get("/url", proxy(new URL("http://google.com")));

app.get("/function", proxy(() => new URL("http://google.com")));
app.get(
"/function",
proxy(() => new URL("http://google.com")),
);
```

### Proxy Options
Expand Down
6 changes: 3 additions & 3 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { join } from "https://deno.land/std@0.153.0/path/mod.ts";
export { read } from "https://deno.land/x/opine@2.3.1/src/middleware/bodyParser/read.ts";
export { parseUrl } from "https://deno.land/x/opine@2.3.1/src/utils/parseUrl.ts";
export { join } from "https://deno.land/std@0.213.0/path/mod.ts";
export { read } from "https://deno.land/x/opine@2.3.4/src/middleware/bodyParser/read.ts";
export { parseUrl } from "https://deno.land/x/opine@2.3.4/src/utils/parseUrl.ts";
Loading

0 comments on commit c039023

Please sign in to comment.