-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate to std and commons v1
- Loading branch information
Showing
7 changed files
with
42 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,28 +4,27 @@ | |
|
||
// jsr dependencies | ||
|
||
export { assert } from "jsr:@std/[email protected]/assert"; | ||
export { concat } from "jsr:@std/[email protected]/concat"; | ||
export { copy as copyBytes } from "jsr:@std/[email protected]/copy"; | ||
export { timingSafeEqual } from "jsr:@std/[email protected]/timing-safe-equal"; | ||
export { KeyStack } from "jsr:@std/[email protected]/unstable-keystack"; | ||
export { assert } from "jsr:@std/assert@^1.0/assert"; | ||
export { concat } from "jsr:@std/bytes@^1.0/concat"; | ||
export { copy as copyBytes } from "jsr:@std/bytes@^1.0/copy"; | ||
export { timingSafeEqual } from "jsr:@std/crypto@^1.0/timing-safe-equal"; | ||
export { | ||
calculate, | ||
eTag, | ||
type ETagOptions, | ||
type FileInfo, | ||
ifMatch, | ||
ifNoneMatch, | ||
} from "jsr:@std/http@0.223/etag"; | ||
} from "jsr:@std/http@^1.0/etag"; | ||
export { | ||
accepts, | ||
acceptsEncodings, | ||
acceptsLanguages, | ||
} from "jsr:@std/http@0.223/negotiation"; | ||
export { UserAgent } from "jsr:@std/http@0.223/user-agent"; | ||
export { LimitedReader } from "jsr:@std/io@0.223/limited-reader"; | ||
export { readAll } from "jsr:@std/io@0.223/read-all"; | ||
export { contentType } from "jsr:@std/media-types@0.223/content-type"; | ||
export { typeByExtension } from "jsr:@std/media-types@0.223/type-by-extension"; | ||
} from "jsr:@std/http@^1.0/negotiation"; | ||
export { UserAgent } from "jsr:@std/http@^1.0/user-agent"; | ||
export { LimitedReader } from "jsr:@std/io@0.224/limited-reader"; | ||
export { readAll } from "jsr:@std/io@0.224/read-all"; | ||
export { contentType } from "jsr:@std/media-types@^1.0/content-type"; | ||
export { typeByExtension } from "jsr:@std/media-types@^1.0/type-by-extension"; | ||
export { | ||
basename, | ||
extname, | ||
|
@@ -34,7 +33,7 @@ export { | |
normalize, | ||
parse, | ||
SEPARATOR, | ||
} from "jsr:@std/path@0.223/"; | ||
} from "jsr:@std/path@^1.0/"; | ||
|
||
// 3rd party dependencies | ||
|
||
|
@@ -43,38 +42,39 @@ export { | |
SecureCookieMap, | ||
type SecureCookieMapGetOptions, | ||
type SecureCookieMapSetDeleteOptions, | ||
} from "jsr:@oak/commons@0.11/cookie_map"; | ||
export { parse as parseFormData } from "jsr:@oak/commons@0.11/form_data"; | ||
export { parse as parseForwarded } from "jsr:@oak/commons@0.11/forwarded"; | ||
} from "jsr:@oak/commons@^1.0/cookie_map"; | ||
export { parse as parseFormData } from "jsr:@oak/commons@^1.0/form_data"; | ||
export { parse as parseForwarded } from "jsr:@oak/commons@^1.0/forwarded"; | ||
export { | ||
createHttpError, | ||
errors, | ||
HttpError, | ||
type HttpErrorOptions, | ||
isHttpError, | ||
} from "jsr:@oak/[email protected]/http_errors"; | ||
export { matches } from "jsr:@oak/[email protected]/media_types"; | ||
export { type HttpMethod as HTTPMethods } from "jsr:@oak/[email protected]/method"; | ||
} from "jsr:@oak/commons@^1.0/http_errors"; | ||
export { KeyStack } from "jsr:@oak/commons@^1.0/keystack"; | ||
export { matches } from "jsr:@oak/commons@^1.0/media_types"; | ||
export { type HttpMethod as HTTPMethods } from "jsr:@oak/commons@^1.0/method"; | ||
export { | ||
type ByteRange, | ||
range, | ||
responseRange, | ||
} from "jsr:@oak/commons@0.11/range"; | ||
} from "jsr:@oak/commons@^1.0/range"; | ||
export { | ||
ServerSentEvent, | ||
type ServerSentEventInit, | ||
ServerSentEventStreamTarget, | ||
type ServerSentEventTarget, | ||
type ServerSentEventTargetOptions, | ||
} from "jsr:@oak/commons@0.11/server_sent_event"; | ||
} from "jsr:@oak/commons@^1.0/server_sent_event"; | ||
export { | ||
type ErrorStatus, | ||
isErrorStatus, | ||
isRedirectStatus, | ||
type RedirectStatus, | ||
Status, | ||
STATUS_TEXT, | ||
} from "jsr:@oak/commons@0.11/status"; | ||
} from "jsr:@oak/commons@^1.0/status"; | ||
|
||
export { | ||
compile, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// Copyright 2018-2024 the oak authors. All rights reserved. MIT license. | ||
|
||
export { assertEquals } from "jsr:@std/assert@0.223/assert-equals"; | ||
export { assertInstanceOf } from "jsr:@std/assert@0.223/assert-instance-of"; | ||
export { assertRejects } from "jsr:@std/assert@0.223/assert-rejects"; | ||
export { assertStrictEquals } from "jsr:@std/assert@0.223/assert-strict-equals"; | ||
export { assertThrows } from "jsr:@std/assert@0.223/assert-throws"; | ||
export { unreachable } from "jsr:@std/assert@0.223/unreachable"; | ||
export { assertEquals } from "jsr:@std/assert@^1.0/equals"; | ||
export { assertInstanceOf } from "jsr:@std/assert@^1.0/instance-of"; | ||
export { assertRejects } from "jsr:@std/assert@^1.0/rejects"; | ||
export { assertStrictEquals } from "jsr:@std/assert@^1.0/strict-equals"; | ||
export { assertThrows } from "jsr:@std/assert@^1.0/throws"; | ||
export { unreachable } from "jsr:@std/assert@^1.0/unreachable"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters