Debian Patches
Status for node-tap/21.7.4+ds1+~cs46.20.40-1
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| processinfo-fix-spawnopts-return-type.patch | processinfo: build against current @types/node and node:crypto Three issues block the tshy build of @tapjs/processinfo: . 1. spawn-opts.ts declared the return-type field "env" as ProcessEnvOptions, which is the *options* object containing { uid, gid, cwd, env, ... }, not the env hash itself. The correct type is NodeJS.ProcessEnv (a plain Record). . 2. child_process.ts:333 calls cpExec with the destructured "options" used as a callback after a typeof options === 'function' guard. The narrowed union of the 5 ExecArgs overloads does not match cpExec's overload-3 callback signature exactly (string vs string|Buffer for stdout/stderr). Cast to any so the call type-checks; runtime behaviour is unchanged. . 3. The "uuid" npm package is replaced by node:crypto's randomUUID(). Debian's node-uuid 8.3.2 ships a wrapper.mjs in package.json#exports.node.import which makes "import { v4 } from 'uuid'" resolve to ESM in the CJS-output build (TS1479). randomUUID() has been a Node built-in since Node 14.17 / 16, well below processinfo's stated engines.node ">=16.17", so the swap produces identical RFC-4122 v4 UUIDs without any external dep. |
not-needed | 2026-04-26 | |||
| npm-init-template-mustache-render-cast.patch | npm-init-template: cast settings to any in mustache.render call With Debian's @types/mustache (3.2.0), the 4th argument of render() is strictly typed as OpeningAndClosingTags ([string, string]). Upstream passes a TemplateSetting object containing { tags?, escape? } which is not assignable. This is a latent bug visible only when the typings are present; runtime behaviour is unchanged. |
not-needed | 2026-04-26 | |||
| run-select-version-mani-cast.patch | run: cast pacote manifest entries to any Object.entries(packu.versions) where pacote is untyped (no @types/pacote) yields [string, unknown][], so the inferred type for "mani" is unknown, which breaks property access. Cast to any. |
not-needed | 2026-04-27 | |||
| tsc-workarounds.patch | tsc workarounds | Xavier Guimard <yadd@debian.org> | not-needed | 2026-04-27 | ||
| tcompare-drop-react-element-to-jsx-string.patch | drop the react-element-to-jsx-string dependency tcompare eagerly imports react-element-to-jsx-string (through styles.ts) to pretty-print React elements in diffs. That npm package is not available in Debian (it pulls @base2/pretty-print-object), so it was shipped as an empty component and made tcompare itself unloadable. Replace the two re-export shims with a self-contained fallback so tcompare loads; React element diffs fall back to String(). The react-element-to-jsx-string component is dropped. |
Xavier Guimard <yadd@debian.org> | not-needed | 2026-06-20 | ||
| config-coverage-flag-aliases.patch | tolerate legacy coverage flag and obsolete config-file options tap v21 renamed the coverage-disabling flag to `--disable-coverage` and no longer accepts `--no-coverage` (jackspeak rejects the unknown flag). It also dropped several config options (e.g. `coverage`, `ts`, `test-regex`) that older `.taprc` / `package.json` "tap" sections still carry. A number of test suites and Debian autopkgtests (including tap's own bundled workspaces) still use these. . On the command line, rewrite `--no-coverage` and `--no-cov` to `--disable-coverage`. In config files, translate the legacy `coverage` boolean to `disable-coverage` and drop any other unknown option with a warning instead of aborting. . The command-line rewrite must not change the identity of the args array before handing it to jackspeak: jackspeak only strips the leading `node script` from argv when it receives process.argv itself, so the `.map()` is preceded by the same slice jackspeak would do. Without this, `/usr/bin/node` and the tap bin leak into the positional test list and tap re-executes itself indefinitely (fork bomb). |
Xavier Guimard <yadd@debian.org> | not-needed | 2026-06-22 | ||
| run-use-node-which.patch | use node-which instead of @isaacs/which in @tapjs/run | Xavier Guimard <yadd@debian.org> | not-needed | 2026-06-21 |
All known versions for source package 'node-tap'
- 21.7.4+ds1+~cs46.20.40-1 (sid)
- 16.3.7+ds3+~cs49.5.20-7 (forky)
- 16.3.7+ds3+~cs49.5.20-1 (trixie)
- 16.3.2+ds1+~cs50.8.16-1+deb12u1 (bookworm)
