From b09cae80f1b23abdbc700bd58f242ad4e1e10d53 Mon Sep 17 00:00:00 2001 From: Jack Williams <1736957+jpwilliams@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:36:53 +0000 Subject: [PATCH] Export `getAsyncCtx` within `"inngest/experimental"` --- packages/inngest/jsr.json | 3 ++- packages/inngest/package.json | 5 +++++ packages/inngest/src/experimental.ts | 1 + packages/inngest/src/index.ts | 1 - 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 packages/inngest/src/experimental.ts diff --git a/packages/inngest/jsr.json b/packages/inngest/jsr.json index dbffb144..ca315c3e 100644 --- a/packages/inngest/jsr.json +++ b/packages/inngest/jsr.json @@ -17,6 +17,7 @@ ], "exports": { ".": "./src/index.ts", + "./experimental": "./src/experimental.ts", "./astro": "./src/astro.ts", "./bun": "./src/bun.ts", "./cloudflare": "./src/cloudflare.ts", @@ -37,4 +38,4 @@ "./nitro": "./src/nitro.ts", "./types": "./src/types.ts" } -} \ No newline at end of file +} diff --git a/packages/inngest/package.json b/packages/inngest/package.json index e4bbf706..58c76f45 100644 --- a/packages/inngest/package.json +++ b/packages/inngest/package.json @@ -37,6 +37,11 @@ "import": "./index.js", "types": "./index.d.ts" }, + "./experimental": { + "require": "./experimental.js", + "import": "./experimental.js", + "types": "./experimental.d.ts" + }, "./astro": { "require": "./astro.js", "import": "./astro.js", diff --git a/packages/inngest/src/experimental.ts b/packages/inngest/src/experimental.ts new file mode 100644 index 00000000..e5fe4251 --- /dev/null +++ b/packages/inngest/src/experimental.ts @@ -0,0 +1 @@ +export { getAsyncCtx } from "./components/execution/als.js"; diff --git a/packages/inngest/src/index.ts b/packages/inngest/src/index.ts index e36e6a93..5cc53332 100644 --- a/packages/inngest/src/index.ts +++ b/packages/inngest/src/index.ts @@ -82,7 +82,6 @@ export type { } from "./helpers/types"; export type { LogArg } from "./middleware/logger"; export { ProxyLogger } from "./middleware/logger.js"; -export { getAsyncCtx } from "./components/execution/als.js"; export type { BaseContext, ClientOptions,