From 7ee4d04fc6ffc573896cf07aeabf90c06c610c90 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 18 Oct 2026 20:57:30 +0200 Subject: [PATCH] fix(jsr): annotate public async context (#3362) --- .github/workflows/ci.yml | 4 ++++ src/worker/abstract-worker.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4727cd99..38d720085 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,10 @@ jobs: - name: Install Dependencies run: pnpm install --ignore-scripts --frozen-lockfile + - name: Check JSR publication + if: ${{ matrix.os == 'ubuntu-latest' && matrix.node == '24.x' }} + run: npx jsr publish --dry-run --allow-dirty + - name: Build run: pnpm build diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 09972a417..6207a7b9f 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -91,9 +91,9 @@ export abstract class AbstractWorker< /** * Correlation of task function operations across protected handler overrides. */ - protected readonly taskFunctionOperationContext = new AsyncLocalStorage< + protected readonly taskFunctionOperationContext: AsyncLocalStorage< undefined | UUID - >() + > = new AsyncLocalStorage() /** * Task function object(s) processed by the worker when the pool's `execute` method is invoked. -- 2.53.0