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

This commit is contained in:
Yoshiya Hinosawa 2024-09-12 12:50:47 +09:00 committed by GitHub
parent 43657d89ed
commit c594a0ce49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 5 deletions

View File

@ -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"
}
}

View File

@ -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[] = [
@ -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";

View File

@ -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[] = [

View File

@ -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[] = [