Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING(http/unstable): move route module to unstable-route #5939

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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