Debian Patches
Status for node-ampproject-remapping/2.3.0+~cs5.17.39-1
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| fix-for-rollup-3.patch | fix for rollup 3 | Yadd <yadd@debian.org> | not-needed | debian | 2022-10-24 | |
| ts6-types-and-moduleresolution.patch | fix TypeScript 6 compatibility (types and moduleResolution) TypeScript 6 only scans node_modules/@types when "types" contains the "*" wildcard, so the jest globals disappear from the test files (TS2593/TS2304 on describe, test, expect). Declaring "types" explicitly works with TypeScript 5 too. tsconfig.build.json narrows it back to node, because it drives dh_auto_build where @types/jest is not linked (it is marked "test" in debian/nodejs/extlinks) and a nocheck build would otherwise fail. . TypeScript 6 also turns moduleResolution=node10 into a hard error (TS5107). It cannot simply be dropped here: with "module": "es2015" the implicit default is the classic resolver, which does not find node_modules at all. "bundler" is the non-deprecated equivalent, is accepted by both TypeScript 5 and 6, and matches how the sources are written (extensionless relative imports, bundled by rollup). . The same two fixes are needed in the embedded @jridgewell/* components, which carry their own copy of both tsconfig files. Only sourcemap-codec needs an explicit "types": ["node"] (TS2591 on Buffer); adding it to the components that set "checkJs" would drag the node-util shim into the type check. |
Xavier Guimard <yadd@debian.org> | not-needed | 2026-08-16 | ||
| typescript-6-errors.patch | fix TypeScript 6 errors TS2550: remapping and @jridgewell/trace-mapping both call Array.prototype.includes, which needs at least the es2016 library, while their tsconfig only declares es2015. . TS2322: parse() in @jridgewell/trace-mapping returns the untouched argument in the non-string branch, and TypeScript no longer narrows T to Exclude<T, string> there on its own. |
Xavier Guimard <yadd@debian.org> | not-needed | 2026-09-22 |
All known versions for source package 'node-ampproject-remapping'
- 2.3.0+~cs5.17.39-1 (forky, sid)
- 2.2.0+~cs5.15.37-1 (trixie, bookworm)
