]> Piment Noir Git Repositories - poolifier.git/commitdiff
fix(jsr): annotate public async context (#3362)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 18 Oct 2026 18:57:30 +0000 (20:57 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Oct 2026 18:57:30 +0000 (20:57 +0200)
.github/workflows/ci.yml
src/worker/abstract-worker.ts

index d4727cd993787928d0354d8657a04abfc00e0025..38d720085323c06442ae857ee65e38af5581b816 100644 (file)
@@ -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
 
index 09972a417c3c94abdf87eca5cd7e7e7f961166d2..6207a7b9fe700f715c3011539e108fe74b52e870 100644 (file)
@@ -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<undefined | UUID>()
 
   /**
    * Task function object(s) processed by the worker when the pool's `execute` method is invoked.