Debian Patches

Status for node-ajv/8.20.0~ds+~cs7.1.3-3

Patch Description Author Forwarded Bugs Origin Last update
import-spec.patch Import specs Yadd <yadd@debian.org> not-needed 2021-11-22
workaround-tsc-update.patch workaround tsc update Yadd <yadd@debian.org> not-needed 2023-12-07
fix-test-specs.patch drop some specs Yadd <yadd@debian.org> no 2021-11-23
test-timeout.patch increase test timeout for slow platforms Jérémy Lal <kapouer@melix.org> not-needed 2025-12-16
revert-import-syntax.patch revert upstream switch from `import x = require("y")` to `import * as x from "y"` Upstream 8.20.0 changed the spec import syntax for CommonJS modules and JSON
imports. With our TypeScript setup (no esModuleInterop, no
allowSyntheticDefaultImports) this triggers TS2497/TS2349 because:
* the imported namespace is not callable (assert, requireFromString,
jsonSchemaTest)
* JSON modules need `resolveJsonModule` and `esModuleInterop`
Restore the previous import-equals/require syntax in the affected spec files.
Xavier Guimard <yadd@debian.org> not-needed 2026-05-08
fix-pollution-spec.patch silence ts errors on .should chai matcher The new format_prototype_pollution.spec.ts uses chai's `.should` extension on
expressions whose static type does not declare it. Add `@ts-ignore` lines,
in line with workaround-tsc-update.patch.
Xavier Guimard <yadd@debian.org> not-needed 2026-05-08
ts6-import-equals.patch fix TypeScript 6 compatibility (imports and rootDir) Upstream imports fast-deep-equal, json-schema-traverse, require-from-string,
fast-uri and re2 with `import * as x from "y"`, which only type-checks while
esModuleInterop is off. TypeScript 6 enables esModuleInterop by default and
deprecates turning it off, so the namespace import stops being callable
(TS2349). It also matters at runtime: lib/runtime/{equal,uri,re2}.ts assign a
`code` property to the imported value, which fails on the synthetic namespace
object that esModuleInterop emits.
.
`import x = require("y")` is callable and emits a plain require() under both
TypeScript 5 and 6, so the generated JavaScript is unchanged.
.
This mirrors what revert-import-syntax.patch already does for spec/.
.
The tsconfig files also set rootDir explicitly. TypeScript 6 infers a
different common source directory than TypeScript 5 (it reports TS5011 and
emits into dist/lib/ instead of dist/), which would move every built file and
break the dist/ paths the specs import. ajv-formats/tsconfig.json also needs
an explicit "types": ["node"], since TypeScript 6 no longer scans
node_modules/@types automatically (TS2591/TS2304 on module/exports).
.
Finally spec/types/json-schema.spec.ts gets a @ts-ignore: TypeScript 6 infers
the `as const` tuple schema more narrowly and rejects the assignment that
TypeScript 5 accepts. The file is a compile-time type test, and the package
already relies on @ts-ignore elsewhere (workaround-tsc-update.patch).
Xavier Guimard <yadd@debian.org> not-needed 2026-08-16

All known versions for source package 'node-ajv'

Links