From e4bd79ff84430a7af3a7084b1c2037087789fa84 Mon Sep 17 00:00:00 2001 From: cmorten Date: Sun, 20 Feb 2022 22:24:24 +0000 Subject: [PATCH] feat: 2.1.2 --- .github/API/application.md | 12 ++++++------ .github/API/middlewares.md | 8 ++++---- .github/API/opine.md | 4 ++-- .github/API/request.md | 4 ++-- .github/API/router.md | 4 ++-- .github/CHANGELOG.md | 4 ++++ .github/workflows/benchmark.yml | 2 +- .github/workflows/publish-docs.yml | 2 +- .github/workflows/publish-egg.yml | 2 +- .github/workflows/test.yml | 4 ++-- README.md | 8 ++++---- deps.ts | 24 ++++++++++++------------ docs/index.html | 8 ++++---- egg.json | 2 +- test/deps.ts | 4 ++-- version.ts | 4 ++-- 16 files changed, 50 insertions(+), 46 deletions(-) diff --git a/.github/API/application.md b/.github/API/application.md index 717975a6..8ec9ca80 100644 --- a/.github/API/application.md +++ b/.github/API/application.md @@ -8,7 +8,7 @@ The `app` object conventionally denotes the Opine application. Create it by calling the top-level `opine()` function exported by the Opine module: ```ts -import opine from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); @@ -69,7 +69,7 @@ sub-app was mounted. > to a route. ```ts -import opine from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); // the main app const admin = opine(); // the sub app @@ -487,7 +487,7 @@ starts listening for requests - this is provided for legacy reasons to aid in transitions from Express on Node. ```ts -import opine from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); @@ -523,7 +523,7 @@ This method is supported for legacy reasons to aid in transitions from Express on Node. ```ts -import opine from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); const PORT = 3000; @@ -542,7 +542,7 @@ starts listening for requests - this is provided for legacy reasons to aid in transitions from Express on Node. ```ts -import opine from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); @@ -560,7 +560,7 @@ starts listening for requests - this is provided for legacy reasons to aid in transitions from Express on Node. ```ts -import opine from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); diff --git a/.github/API/middlewares.md b/.github/API/middlewares.md index 93949295..7c43c5e7 100644 --- a/.github/API/middlewares.md +++ b/.github/API/middlewares.md @@ -28,7 +28,7 @@ reasons. > `toString` may not be a function and instead a string or other user-input. ```ts -import { json, opine } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import { json, opine } from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); @@ -77,7 +77,7 @@ reasons. > recommended. ```ts -import { opine, raw } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import { opine, raw } from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); @@ -230,7 +230,7 @@ reasons. > recommended. ```ts -import { opine, text } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import { opine, text } from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); @@ -277,7 +277,7 @@ reasons. > `toString` may not be a function and instead a string or other user-input. ```ts -import { opine, urlencoded } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import { opine, urlencoded } from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); diff --git a/.github/API/opine.md b/.github/API/opine.md index d13dc10a..bdebe798 100644 --- a/.github/API/opine.md +++ b/.github/API/opine.md @@ -8,7 +8,7 @@ Creates an Opine application. The `opine()` function is a top-level function exported by the Opine module: ```ts -import opine from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); ``` @@ -16,7 +16,7 @@ const app = opine(); The `opine()` function is also exported as a named export: ```ts -import { opine } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import { opine } from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); ``` diff --git a/.github/API/request.md b/.github/API/request.md index 646927ea..541763c9 100644 --- a/.github/API/request.md +++ b/.github/API/request.md @@ -101,7 +101,7 @@ import { json, opine, urlencoded, -} from "https://deno.land/x/opine@2.1.1/mod.ts"; +} from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); @@ -118,7 +118,7 @@ The following example shows how to implement your own simple body-parsing middleware to transform `req.body` into a raw string: ```ts -import opine from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine from "https://deno.land/x/opine@2.1.2/mod.ts"; import { readAll } from "https://deno.land/std@0.120.0/streams/conversion.ts"; diff --git a/.github/API/router.md b/.github/API/router.md index f2165fda..7691e96f 100644 --- a/.github/API/router.md +++ b/.github/API/router.md @@ -16,7 +16,7 @@ Opine has a top-level named function export `Router()` that creates a new `router` object. ```ts -import { Router } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import { Router } from "https://deno.land/x/opine@2.1.2/mod.ts"; const router = Router(options); ``` @@ -260,7 +260,7 @@ function defined and work their way "down" the middleware stack processing for each path they match. ```ts -import opine, { Router } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import opine, { Router } from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); const router = Router(); diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index aaf962da..ca09818d 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -1,5 +1,9 @@ # ChangeLog +## [2.1.2] - 20-02-2022 + +- [#156] Replace deprecated Deno.readAll (#157) @yourfriendoss + ## [2.1.1] - 11-01-2022 - fix: remove unnecessary argument to `req.upgrade()` diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index cfc0cae8..5cba149a 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: denolib/setup-deno@v2 with: - deno-version: 1.17.2 + deno-version: 1.19.0 - run: | mkdir -p artifacts cat > artifacts/message.md <Deno ported

Opine latest /x/ version - Minimum supported Deno version + Minimum supported Deno version Opine dependency count Opine dependency outdatedness Opine cached size @@ -41,7 +41,7 @@ Fast, minimalist web framework for Deno ported ## Getting Started ```ts -import { opine } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import { opine } from "https://deno.land/x/opine@2.1.2/mod.ts"; const app = opine(); @@ -65,14 +65,14 @@ Before importing, [download and install Deno](https://deno.land/#installation). You can then import Opine straight into your project: ```ts -import { opine } from "https://deno.land/x/opine@2.1.1/mod.ts"; +import { opine } from "https://deno.land/x/opine@2.1.2/mod.ts"; ``` Opine is also available on [nest.land](https://nest.land/package/opine), a package registry for Deno on the Blockchain. ```ts -import { opine } from "https://x.nest.land/opine@2.1.1/mod.ts"; +import { opine } from "https://x.nest.land/opine@2.1.2/mod.ts"; ``` ## Features diff --git a/deps.ts b/deps.ts index b95400ff..5934969f 100644 --- a/deps.ts +++ b/deps.ts @@ -1,14 +1,14 @@ -export { Server } from "https://deno.land/std@0.120.0/http/server.ts"; -export type { ConnInfo } from "https://deno.land/std@0.120.0/http/server.ts"; +export { Server } from "https://deno.land/std@0.126.0/http/server.ts"; +export type { ConnInfo } from "https://deno.land/std@0.126.0/http/server.ts"; export { Status, STATUS_TEXT, -} from "https://deno.land/std@0.120.0/http/http_status.ts"; +} from "https://deno.land/std@0.126.0/http/http_status.ts"; export { deleteCookie, setCookie, -} from "https://deno.land/std@0.120.0/http/cookie.ts"; -export type { Cookie } from "https://deno.land/std@0.120.0/http/cookie.ts"; +} from "https://deno.land/std@0.126.0/http/cookie.ts"; +export type { Cookie } from "https://deno.land/std@0.126.0/http/cookie.ts"; export { basename, dirname, @@ -19,22 +19,22 @@ export { normalize, resolve, sep, -} from "https://deno.land/std@0.120.0/path/mod.ts"; -export { setImmediate } from "https://deno.land/std@0.120.0/node/timers.ts"; -export { parse } from "https://deno.land/std@0.120.0/node/querystring.ts"; -export { default as EventEmitter } from "https://deno.land/std@0.120.0/node/events.ts"; -export { Sha1 } from "https://deno.land/std@0.120.0/hash/sha1.ts"; +} from "https://deno.land/std@0.126.0/path/mod.ts"; +export { setImmediate } from "https://deno.land/std@0.126.0/node/timers.ts"; +export { parse } from "https://deno.land/std@0.126.0/node/querystring.ts"; +export { default as EventEmitter } from "https://deno.land/std@0.126.0/node/events.ts"; +export { Sha1 } from "https://deno.land/std@0.126.0/hash/sha1.ts"; export { readableStreamFromReader, readAll, readerFromStreamReader, -} from "https://deno.land/std@0.120.0/streams/conversion.ts"; +} from "https://deno.land/std@0.126.0/streams/conversion.ts"; export { charset, contentType, lookup, -} from "https://deno.land/x/media_types@v2.11.0/mod.ts"; +} from "https://deno.land/x/media_types@v2.12.1/mod.ts"; export { Accepts } from "https://deno.land/x/accepts@2.1.1/mod.ts"; export { hasBody, diff --git a/docs/index.html b/docs/index.html index 2263c790..db53c8b5 100644 --- a/docs/index.html +++ b/docs/index.html @@ -82,7 +82,7 @@

Opine

Opine latest /x/ version - Minimum supported Deno version + Minimum supported Deno version Opine dependency count Opine dependency outdatedness Opine cached size @@ -105,7 +105,7 @@

Table of Contents

Getting Started

-
import { opine } from "https://deno.land/x/opine@2.1.1/mod.ts";
+				
import { opine } from "https://deno.land/x/opine@2.1.2/mod.ts";
 
 const app = opine();
 
@@ -125,11 +125,11 @@ 

Installation

repo and via the Deno Registry.

Before importing, download and install Deno.

You can then import Opine straight into your project:

-
import { opine } from "https://deno.land/x/opine@2.1.1/mod.ts";
+				
import { opine } from "https://deno.land/x/opine@2.1.2/mod.ts";
 

Opine is also available on nest.land, a package registry for Deno on the Blockchain.

-
import { opine } from "https://x.nest.land/opine@2.1.1/mod.ts";
+				
import { opine } from "https://x.nest.land/opine@2.1.2/mod.ts";
 

Features

diff --git a/egg.json b/egg.json index f123ca9d..29fff4d9 100644 --- a/egg.json +++ b/egg.json @@ -1,7 +1,7 @@ { "name": "opine", "description": "Fast, minimalist web framework for Deno ported from ExpressJS.", - "version": "2.1.1", + "version": "2.1.2", "repository": "https://github.com/cmorten/opine", "stable": true, "checkFormat": false, diff --git a/test/deps.ts b/test/deps.ts index 72f090c4..6f0de865 100644 --- a/test/deps.ts +++ b/test/deps.ts @@ -1,5 +1,5 @@ -export { deferred } from "https://deno.land/std@0.120.0/async/deferred.ts"; -export type { Deferred } from "https://deno.land/std@0.120.0/async/deferred.ts"; +export { deferred } from "https://deno.land/std@0.126.0/async/deferred.ts"; +export type { Deferred } from "https://deno.land/std@0.126.0/async/deferred.ts"; export { expect, mock } from "https://deno.land/x/expect@v0.2.9/mod.ts"; export { superdeno } from "https://deno.land/x/superdeno@4.7.2/mod.ts"; export type { diff --git a/version.ts b/version.ts index c744b968..619f455d 100644 --- a/version.ts +++ b/version.ts @@ -1,9 +1,9 @@ /** * Version of Opine. */ -export const VERSION = "2.1.1"; +export const VERSION = "2.1.2"; /** * Supported version of Deno. */ -export const DENO_SUPPORTED_VERSIONS: string[] = ["1.17.2"]; +export const DENO_SUPPORTED_VERSIONS: string[] = ["1.19.0"];