Skip to content

Commit

Permalink
Avoid mod.ts import on deco/deco/utils (#853)
Browse files Browse the repository at this point in the history
* Avoid mod.ts import

* Add readStream to web, start deprecate utils

* Update utils/mod.ts

Co-authored-by: Marcos Candeia <[email protected]>

---------

Co-authored-by: Marcos Candeia <[email protected]>
  • Loading branch information
matheusgr and mcandeia authored Sep 27, 2024
1 parent a706b48 commit 4d05246
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions mod.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export {
forApp,
isEventStreamResponse,
proxy,
readFromStream,
withManifest,
} from "./clients/withManifest.ts";
export type { InvocationFunc } from "./clients/withManifest.ts";
Expand Down
7 changes: 5 additions & 2 deletions runtime/routes/batchInvoke.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// deno-lint-ignore-file no-explicit-any
import { allowCorsFor, type Resolvable } from "../../mod.ts";

import type { Resolvable } from "../../mod.ts";

import { isAdminOrLocalhost } from "../../utils/admin.ts";
import { bodyFromUrl } from "../../utils/http.ts";
import { allowCorsFor, bodyFromUrl } from "../../utils/http.ts";

import { payloadForFunc } from "../../utils/invoke.server.ts";
import { invokeToHttpResponse } from "../../utils/invoke.ts";
import type {
Expand Down
3 changes: 3 additions & 0 deletions utils/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export {
export type { PromiseOrValue } from "../engine/core/utils.ts";
export { decoManifestBuilder } from "../engine/manifest/manifestGen.ts";
export { adminUrlFor, isAdmin, resolvable } from "./admin.ts";
/**
* @deprecated since version 1.101.22 import from @deco/deco/web instead
*/
export { readFromStream } from "./http.ts";
export { metabasePreview } from "./metabase.tsx";
export { tryOrDefault } from "./object.ts";
Expand Down

0 comments on commit 4d05246

Please sign in to comment.