Repository navigation
Conversation
Forward windowsHide to the worker fork while preserving pipes, environment, IPC and joined shutdown. Validate the options with SpawnOptions so the pinned Node 20 declarations need no upgrade or suppression. Add a no-launch fork regression and a real process-worker lifecycle test. The new launch-options test fails before the fix. Windows Node 26.13.0: 22 focused tests, build, typecheck and lint pass; native window visibility and the CPU-scaled full suite were not measured locally. Based on Tinypool v2.2.0 (2ed3064). Reusable source: pnpm 9.0.6 install --frozen-lockfile, then pnpm build. Regression: pnpm exec vitest run test/runtime.test.ts --maxWorkers=1. Build generated dist before consuming this source checkout.
|
I tested the published Tinypool 2.2.0 selected by Oxfmt 0.79.0 on Windows x64 with Bun 1.4.2. In two separate frozen installations, intercepting the formatter’s resolved Tinypool instance showed that stock In separate processes, both installs returned 42 for a real worker given 41, completed On Bun 1.4.5 for Windows x64, I repeated the fork interception and real-worker tests against Oxfmt 0.79.0’s own Tinypool 2.2.0 installation. The published package omitted On November 28 I repeated the Windows x64 check with Oxfmt 0.80.0, which resolves Tinypool 2.2.0. The pristine fork omitted On December 3 I repeated the Windows x64 checks with Oxfmt 0.81.0, which selects Tinypool 2.2.0. On Bun 1.4.5 and 1.4.2 the stock worker fork omitted |
Child-process workers currently omit
windowsHidewhen callingfork(), allowing an extra console window when a Windows consumer is launched from a graphical application.Request
windowsHide: truewhile preserving piped stdout/stderr (as established in #104), explicit environment values, IPC, task results and joined shutdown. The option is forwarded tospawn(); Node 20's cluster implementation also passes it to fork.The local options object uses
satisfies SpawnOptionsbecause the pinned@types/node@20.12.8omits this member fromForkOptions. The declaration was corrected later in DefinitelyTyped #75525. This keeps the existing dependency pins and lockfile, with no cast or suppression.Regression coverage:
fork()before any worker starts and verify the hiding flag, pipes, arguments and explicit environment. Restore the builtin export after interception.Validated on Windows with Node 26.13.0 and pnpm 9.0.6 against the built package:
windowsHidewas absent.Each test file ran in a separate owned process. The CPU-scaled nested stress case and remaining full suite were not run locally; they remain unchanged for upstream CI. These tests verify the requested option and worker behavior, not native console-window visibility.
Reusable source: fork branch, tested signed commit, based directly on v2.2.0 (
2ed306417986823e7a7989fd392e9cbfeee1b0c1). With pnpm 9.0.6:Build the generated
distfiles before consuming this source checkout; a bare Git dependency URL is not a built release artifact.