Debian Patches

Status for node-date-fns/4.1.0-2

Patch Description Author Forwarded Bugs Origin Last update
export-star-instead-of-export-type-star.patch Use "export *" instead of "export type *" The "export type *" syntax (TypeScript 5.0) is not understood by the
@babel/parser version currently in Debian (7.20.x), which makes the babel
transpilation step of the build fail. The referenced modules only contain
type declarations, so a plain "export *" is equivalent at runtime (it
re-exports nothing) and the emitted .d.ts declarations are unchanged in
practice.
Xavier Guimard <yadd@debian.org> not-needed 2026-07-01
drop-retainLines-for-flatten.patch Drop "retainLines" from the babel config Upstream's build keeps babel's retainLines option and relies on a subsequent
prettier pass to reformat the transpiled files before the flatten step runs.
That prettier pass is skipped in Debian (prettier is not packaged), and with
retainLines babel emits some import statements with the "from" keyword and the
module specifier on separate lines, which scripts/build/flatten.ts (a line
based regexp rewriter) then fails to update. Dropping retainLines makes babel
emit each import on a single line so flattening works without prettier.
Xavier Guimard <yadd@debian.org> not-needed 2026-07-01

All known versions for source package 'node-date-fns'

Links