Skip to content

Commit

Permalink
BREAKING(http/unstable): move route to ./unstable-route (#5939)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Sep 12, 2024
1 parent 43657d8 commit c594a0c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion http/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"./status": "./status.ts",
"./unstable-signed-cookie": "./unstable_signed_cookie.ts",
"./user-agent": "./user_agent.ts",
"./route": "./route.ts"
"./unstable-route": "./unstable_route.ts"
}
}
6 changes: 4 additions & 2 deletions http/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
* handlers based on the request path and method.
*
* ```ts no-eval
* import { route, type Route } from "@std/http/route";
* import { route, type Route } from "@std/http/unstable-route";
* import { serveDir } from "@std/http/file-server";
*
* const routes: Route[] = [
Expand Down Expand Up @@ -99,4 +99,6 @@ export * from "./negotiation.ts";
export * from "./server_sent_event_stream.ts";
export * from "./user_agent.ts";
export * from "./file_server.ts";
export * from "./route.ts";
// We keep this re-export as an exception for now as it's used in
// `deno init --serve` output
export * from "./unstable_route.ts";
2 changes: 1 addition & 1 deletion http/route.ts → http/unstable_route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface Route {
*
* @example Usage
* ```ts no-eval
* import { route, type Route } from "@std/http/route";
* import { route, type Route } from "@std/http/unstable-route";
* import { serveDir } from "@std/http/file-server";
*
* const routes: Route[] = [
Expand Down
2 changes: 1 addition & 1 deletion http/route_test.ts → http/unstable_route_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { type Route, route } from "./route.ts";
import { type Route, route } from "./unstable_route.ts";
import { assertEquals } from "../assert/equals.ts";

const routes: Route[] = [
Expand Down

0 comments on commit c594a0c

Please sign in to comment.