Debian Patches

Status for node-css-select/5.2.2-3

Patch Description Author Forwarded Bugs Origin Last update
fix-jest-config.patch fix jest configuration Yadd <yadd@debian.org> not-needed 2022-06-25
tsc-5.patch patch for tsc 5 Yadd <yadd@debian.org> not-needed 2025-08-25
ts6-compat.patch fix build and tests with TypeScript 6 TypeScript 6 rejects the deprecated "target": "es5" and "moduleResolution":
"node" options with TS5107, and no longer loads type packages that are not
listed in "types".
.
The commonjs build now targets ES2019, like the ESM build already did. Since
"bundler" is the only non-deprecated resolution usable with "module": "esnext"
but is refused with "module": "commonjs", the explicit resolution is dropped
from tsconfig.json (commonjs implies node10 anyway, which is not reported when
it is not spelled out) and passed on the command line for the ESM build only.
.
Dropping "target": "es5" also drops the var-hoisting it relied upon:
sizzle-testinit.ts initialized its "document" binding through a function that
assigns it, which is a temporal dead zone error once "let" is emitted as such.
The binding is now declared before being filled in.
.
"lib" only listed ES2015.Core, which no longer pulls in the base declarations
in TypeScript 6; the default library for the target is used instead.
.
@types/jest is added on top of @types/node through the ts-jest transform, which
is only used by the test suite.
.
All of this keeps working with TypeScript 5.
Xavier Guimard <yadd@debian.org> not-needed 2026-08-15
ts6-rootdir.patch set an explicit rootDir TypeScript 6 requires rootDir to be set explicitly (TS5011) when an outDir is
given, instead of inferring the common source directory.
Xavier Guimard <yadd@debian.org> not-needed 2026-08-16

All known versions for source package 'node-css-select'

Links