Skip to content

Commit

Permalink
fix: migrate to jsr and npm deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Feb 14, 2024
1 parent e6f1d92 commit 92198be
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
44 changes: 22 additions & 22 deletions deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@

// This file contains the external dependencies that oak depends upon

// `std` dependencies
// jsr dependencies

export { assert } from "https://deno.land/[email protected].0/assert/assert.ts";
export { concat } from "https://deno.land/[email protected].0/bytes/concat.ts";
export { copy as copyBytes } from "https://deno.land/[email protected].0/bytes/copy.ts";
export { timingSafeEqual } from "https://deno.land/[email protected].0/crypto/timing_safe_equal.ts";
export { KeyStack } from "https://deno.land/[email protected].0/crypto/unstable_keystack.ts";
export { encodeBase64 } from "https://deno.land/[email protected].0/encoding/base64.ts";
export { assert } from "jsr:@std/assert@0.215/assert";
export { concat } from "jsr:@std/bytes@0.215/concat";
export { copy as copyBytes } from "jsr:@std/bytes@0.215/copy";
export { timingSafeEqual } from "jsr:@std/crypto@0.215/timing_safe_equal";
export { KeyStack } from "jsr:@std/crypto@0.215/unstable_keystack";
export { encodeBase64 } from "jsr:@std/encoding@0.215/base64";
export {
calculate,
type ETagOptions,
type FileInfo,
ifMatch,
ifNoneMatch,
} from "https://deno.land/[email protected].0/http/etag.ts";
} from "jsr:@std/http@0.215/etag";
export {
accepts,
acceptsEncodings,
acceptsLanguages,
} from "https://deno.land/[email protected].0/http/negotiation.ts";
export { UserAgent } from "https://deno.land/[email protected].0/http/user_agent.ts";
export { LimitedReader } from "https://deno.land/[email protected].0/io/limited_reader.ts";
export { readAll } from "https://deno.land/[email protected].0/io/read_all.ts";
export { contentType } from "https://deno.land/[email protected].0/media_types/content_type.ts";
export { typeByExtension } from "https://deno.land/[email protected].0/media_types/type_by_extension.ts";
} from "jsr:@std/http@0.215/negotiation";
export { UserAgent } from "jsr:@std/http@0.215/user_agent";
export { LimitedReader } from "jsr:@std/io@0.215/limited_reader";
export { readAll } from "jsr:@std/io@0.215/read_all";
export { contentType } from "jsr:@std/media-types@0.215/content_type";
export { typeByExtension } from "jsr:@std/media-types@0.215/type_by_extension";
export {
basename,
extname,
Expand All @@ -35,7 +35,7 @@ export {
normalize,
parse,
SEPARATOR,
} from "https://deno.land/[email protected].0/path/mod.ts";
} from "jsr:@std/path@0.215/";

// 3rd party dependencies

Expand All @@ -44,31 +44,31 @@ export {
SecureCookieMap,
type SecureCookieMapGetOptions,
type SecureCookieMapSetDeleteOptions,
} from "https://deno.land/x/oak_commons@0.6.1/cookie_map.ts";
} from "jsr:@oak/commons@0.6/cookie_map";
export {
createHttpError,
errors,
HttpError,
type HttpErrorOptions,
isHttpError,
} from "https://deno.land/x/oak_commons@0.6.1/http_errors.ts";
export { matches } from "https://deno.land/x/oak_commons@0.6.1/media_types.ts";
export { type HttpMethod as HTTPMethods } from "https://deno.land/x/oak_commons@0.6.1/method.ts";
} from "jsr:@oak/commons@0.6/http_errors";
export { matches } from "jsr:@oak/commons@0.6/media_types";
export { type HttpMethod as HTTPMethods } from "jsr:@oak/commons@0.6/method";
export {
ServerSentEvent,
type ServerSentEventInit,
ServerSentEventStreamTarget,
type ServerSentEventTarget,
type ServerSentEventTargetOptions,
} from "https://deno.land/x/oak_commons@0.6.1/server_sent_event.ts";
} from "jsr:@oak/commons@0.6/server_sent_event";
export {
type ErrorStatus,
isErrorStatus,
isRedirectStatus,
type RedirectStatus,
Status,
STATUS_TEXT,
} from "https://deno.land/x/oak_commons@0.6.1/status.ts";
} from "jsr:@oak/commons@0.6/status";

export {
compile,
Expand All @@ -78,4 +78,4 @@ export {
type ParseOptions,
pathToRegexp,
type TokensToRegexpOptions,
} from "https://deno.land/x/path_to_regexp@v6.2.1/index.ts";
} from "npm:path-to-regexp@6.2.1";
12 changes: 6 additions & 6 deletions test_deps.ts
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 "https://deno.land/[email protected].0/assert/assert_equals.ts";
export { assertInstanceOf } from "https://deno.land/[email protected].0/assert/assert_instance_of.ts";
export { assertRejects } from "https://deno.land/[email protected].0/assert/assert_rejects.ts";
export { assertStrictEquals } from "https://deno.land/[email protected].0/assert/assert_strict_equals.ts";
export { assertThrows } from "https://deno.land/[email protected].0/assert/assert_throws.ts";
export { unreachable } from "https://deno.land/[email protected].0/assert/unreachable.ts";
export { assertEquals } from "jsr:@std/assert@0.215/assert_equals";
export { assertInstanceOf } from "jsr:@std/assert@0.215/assert_instance_of";
export { assertRejects } from "jsr:@std/assert@0.215/assert_rejects";
export { assertStrictEquals } from "jsr:@std/assert@0.215/assert_strict_equals";
export { assertThrows } from "jsr:@std/assert@0.215/assert_throws";
export { unreachable } from "jsr:@std/assert@0.215/unreachable";

0 comments on commit 92198be

Please sign in to comment.