Skip to content

Commit 4d05246

Browse files
matheusgrmcandeia
andauthored
Avoid mod.ts import on deco/deco/utils (#853)
* Avoid mod.ts import * Add readStream to web, start deprecate utils * Update utils/mod.ts Co-authored-by: Marcos Candeia <marrcooos@gmail.com> --------- Co-authored-by: Marcos Candeia <marrcooos@gmail.com>
1 parent a706b48 commit 4d05246

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

mod.web.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export {
33
forApp,
44
isEventStreamResponse,
55
proxy,
6+
readFromStream,
67
withManifest,
78
} from "./clients/withManifest.ts";
89
export type { InvocationFunc } from "./clients/withManifest.ts";

runtime/routes/batchInvoke.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// deno-lint-ignore-file no-explicit-any
2-
import { allowCorsFor, type Resolvable } from "../../mod.ts";
2+
3+
import type { Resolvable } from "../../mod.ts";
4+
35
import { isAdminOrLocalhost } from "../../utils/admin.ts";
4-
import { bodyFromUrl } from "../../utils/http.ts";
6+
import { allowCorsFor, bodyFromUrl } from "../../utils/http.ts";
7+
58
import { payloadForFunc } from "../../utils/invoke.server.ts";
69
import { invokeToHttpResponse } from "../../utils/invoke.ts";
710
import type {

utils/mod.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export {
77
export type { PromiseOrValue } from "../engine/core/utils.ts";
88
export { decoManifestBuilder } from "../engine/manifest/manifestGen.ts";
99
export { adminUrlFor, isAdmin, resolvable } from "./admin.ts";
10+
/**
11+
* @deprecated since version 1.101.22 import from @deco/deco/web instead
12+
*/
1013
export { readFromStream } from "./http.ts";
1114
export { metabasePreview } from "./metabase.tsx";
1215
export { tryOrDefault } from "./object.ts";

0 commit comments

Comments
 (0)