From: Jérôme Benoit Date: Sun, 18 Oct 2026 18:57:30 +0000 (+0200) Subject: fix(jsr): annotate public async context (#3362) X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7ee4d04fc6ffc573896cf07aeabf90c06c610c90;p=poolifier.git fix(jsr): annotate public async context (#3362) --- 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.