Skip to content

Commit 90c8d71

Browse files
author
v1rtl
committed
bump deps & std
1 parent 755c425 commit 90c8d71

File tree

13 files changed

+21
-33
lines changed

13 files changed

+21
-33
lines changed

app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import { Router, serve, Server, rg, pushMiddleware } from './deps.ts'
33
import { NextFunction, RHandler as Handler, Middleware, UseMethodParams } from './types.ts'
44
import { onErrorHandler, ErrorHandler } from './onError.ts'
5-
import { setImmediate } from 'https://deno.land/std@0.101.0/node/timers.ts'
5+
import { setImmediate } from 'https://deno.land/std@0.103.0/node/timers.ts'
66
import type { Request } from './request.ts'
77
import type { Response } from './response.ts'
88
import { getURLParams, getPathname } from './utils/parseUrl.ts'
99
import { extendMiddleware } from './extend.ts'
10-
import * as path from 'https://deno.land/std@0.101.0/path/mod.ts'
10+
import * as path from 'https://deno.land/std@0.103.0/path/mod.ts'
1111

1212
const lead = (x: string) => (x.charCodeAt(0) === 47 ? x : '/' + x)
1313

deps.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ export { vary } from 'https://deno.land/x/[email protected]/mod.ts'
66
export { isIP } from 'https://deno.land/x/[email protected]/mod.ts'
77
export { Accepts } from 'https://denopkg.com/talentlessguy/accepts@patch-1/mod.ts#=^'
88
export { encodeUrl } from 'https://deno.land/x/[email protected]/mod.ts'
9-
export { charset, contentType, lookup } from 'https://deno.land/x/[email protected].2/mod.ts'
9+
export { charset, contentType, lookup } from 'https://deno.land/x/[email protected].3/mod.ts'
1010
export { parse as rg } from 'https://deno.land/x/[email protected]/src/index.js'
11-
export { forwarded } from 'https://deno.land/x/[email protected].9/mod.ts'
12-
export * from 'https://deno.land/x/[email protected].15/mod.ts'
13-
import type { ServerRequest as Req, Response as ServerResponse } from 'https://deno.land/std@0.101.0/http/server.ts'
11+
export { forwarded } from 'https://deno.land/x/[email protected].10/mod.ts'
12+
export * from 'https://deno.land/x/[email protected].16/mod.ts'
13+
import type { ServerRequest as Req, Response as ServerResponse } from 'https://deno.land/std@0.103.0/http/server.ts'
1414
export { default as ipaddr, IPv4, IPv6 } from 'https://cdn.skypack.dev/ipaddr.js'
1515
interface Res extends ServerResponse {
1616
headers: Headers
1717
}
1818

1919
export type { Req, Res }
2020

21-
export { serve, Server } from 'https://deno.land/std@0.101.0/http/server.ts'
21+
export { serve, Server } from 'https://deno.land/std@0.103.0/http/server.ts'
2222

2323
export { Router, pushMiddleware } from 'https://esm.sh/@tinyhttp/[email protected]'

examples/jwt/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { App } from '../../mod.ts'
22
import { getNumericDate, Payload, Header, create, verify } from 'https://deno.land/x/[email protected]/mod.ts'
3-
import { readAll } from 'https://deno.land/std@0.101.0/io/util.ts'
3+
import { readAll } from 'https://deno.land/std@0.103.0/io/util.ts'
44

55
const SECRET = 'my_secret'
66

examples/mongodb/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { App } from '../../mod.ts'
2-
import { MongoClient, Bson } from 'https://deno.land/x/mongo@v0.23.1/mod.ts'
2+
import { MongoClient, Bson } from 'https://deno.land/x/mongo@v0.24.0/mod.ts'
33
import * as dotenv from 'https://deno.land/x/[email protected]/mod.ts'
44
import { json } from 'https://deno.land/x/parsec/mod.ts'
55

extensions/res/cookie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Req, Res } from '../../deps.ts'
2-
import * as cookie from 'https://deno.land/std@0.101.0/http/cookie.ts'
2+
import * as cookie from 'https://deno.land/std@0.103.0/http/cookie.ts'
33

44
export const setCookie =
55
<Request extends Req = Req, Response extends Res = Res>(_: Request, res: Response) =>

extensions/res/download.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { contentDisposition } from 'https://esm.sh/@tinyhttp/content-disposition'
22
import { SendFileOptions, sendFile } from './send/sendFile.ts'
3-
import { extname } from 'https://deno.land/std@0.101.0/path/mod.ts'
3+
import { extname } from 'https://deno.land/std@0.103.0/path/mod.ts'
44
import { setContentType, setHeader } from './headers.ts'
55
import { Req, Res } from '../../deps.ts'
66

extensions/res/send/sendFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Req, Res } from '../../../deps.ts'
2-
import { isAbsolute, join, extname } from 'https://deno.land/std@0.101.0/path/mod.ts'
2+
import { isAbsolute, join, extname } from 'https://deno.land/std@0.103.0/path/mod.ts'
33
import { contentType } from '../../../deps.ts'
44
import { createETag } from '../utils.ts'
55
import { send } from './send.ts'

request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file
2-
import { ServerRequest } from 'https://deno.land/std@0.101.0/http/server.ts'
2+
import { ServerRequest } from 'https://deno.land/std@0.103.0/http/server.ts'
33
import { App } from './app.ts'
44
import { QueryParams, Ranges, Protocol, AcceptsReturns, Middleware } from './types.ts'
55

response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { SendFileOptions } from './extensions/res/send/sendFile.ts'
55
import type { TemplateEngineOptions, App } from './app.ts'
66
import type { FormatProps } from './extensions/res/format.ts'
77
import type { DownloadOptions } from './extensions/res/download.ts'
8-
import { Cookie } from 'https://deno.land/std@0.101.0/http/cookie.ts'
8+
import { Cookie } from 'https://deno.land/std@0.103.0/http/cookie.ts'
99

1010
export interface Response<O = any> extends ServerResponse, tinyhttp.Response {
1111
headers: Headers

tests/core/app.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { App } from '../../app.ts'
33
import { BindToSuperDeno, InitAppAndTest } from '../util.ts'
44
import { renderFile as eta } from 'https://deno.land/x/[email protected]/mod.ts'
55
import { EtaConfig } from 'https://deno.land/x/[email protected]/config.ts'
6-
import * as path from 'https://deno.land/std@0.101.0/path/mod.ts'
7-
import { readFile as readFileCb } from 'https://deno.land/std@0.101.0/node/fs.ts'
8-
import { promisify } from 'https://deno.land/std@0.101.0/node/util.ts'
6+
import * as path from 'https://deno.land/std@0.103.0/path/mod.ts'
7+
import { readFile as readFileCb } from 'https://deno.land/std@0.103.0/node/fs.ts'
8+
import { promisify } from 'https://deno.land/std@0.103.0/node/util.ts'
99

1010
const readFile = promisify(readFileCb)
1111

tests/modules/res.test.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { redirect } from '../../extensions/res/redirect.ts'
1111
import { formatResponse } from '../../extensions/res/format.ts'
1212
import { attachment } from '../../extensions/res/download.ts'
1313
import { setCookie, clearCookie } from '../../extensions/res/cookie.ts'
14-
import * as path from 'https://deno.land/std@0.101.0/path/mod.ts'
14+
import * as path from 'https://deno.land/std@0.103.0/path/mod.ts'
1515
import type { Request } from '../../request.ts'
1616

1717
const __dirname = new URL('.', import.meta.url).pathname
@@ -290,19 +290,7 @@ describe('res.cookie(name, value, options)', () => {
290290

291291
await request.get('/').expect(200)
292292
})
293-
/* it('should throw if it is signed and and no secret is provided', async () => {
294-
const app = runServer((req, res) => {
295-
try {
296-
setCookie(req, res)('hello', 'world', {
297-
signed: true
298-
}).end()
299-
} catch (e) {
300-
res.end((e as TypeError).message)
301-
}
302-
})
303293

304-
await makeFetch(app)('/').expect('cookieParser("secret") required for signed cookies')
305-
}) */
306294
it('should set "maxAge" and "expires" from options', async () => {
307295
const maxAge = 3600 * 24 * 365
308296

tests/modules/send.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, run, beforeAll, afterAll, expect } from 'https://deno.land/x/[email protected]/mod.ts'
2-
import * as path from 'https://deno.land/std@0.101.0/path/mod.ts'
3-
import * as fs from 'https://deno.land/std@0.101.0/node/fs.ts'
2+
import * as path from 'https://deno.land/std@0.103.0/path/mod.ts'
3+
import * as fs from 'https://deno.land/std@0.103.0/node/fs.ts'
44
import { runServer } from '../util.ts'
55
import { send, json, sendStatus, sendFile } from '../../extensions/res/send/mod.ts'
66

utils/parseUrl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { parse } from 'https://deno.land/std@0.101.0/node/querystring.ts'
1+
import { parse } from 'https://deno.land/std@0.103.0/node/querystring.ts'
22

33
type Regex = {
44
keys: string[] | boolean

0 commit comments

Comments
 (0)