Debian Patches
Status for node-graphql/16.8.1-6
| Patch | Description | Author | Forwarded | Bugs | Origin | Last update |
|---|---|---|---|---|---|---|
| fix-build.patch | fix build | Yadd <yadd@debian.org> | not-needed | 2022-07-03 | ||
| drop-prettier.patch | drop prettier | Yadd <yadd@debian.org> | not-needed | 2022-07-03 | ||
| ts6-build.patch | build the declarations with TypeScript 6 resources/build-npm.js feeds the raw JSON "compilerOptions" straight to ts.createProgram. TypeScript 6 rejects that ("target is a string value; tsconfig JSON must be parsed ... before passing to createProgram"), so run them through ts.convertCompilerOptionsFromJson first, exactly as tsc does when it reads a tsconfig. That conversion resolves the path options to absolute ones, and tsc 6 will not mix absolute and relative paths, so the declarationDir and the root file have to be absolute too. It also wants the common source directory spelled out (TS5011) -- and, because there is no config file here, crashes rather than reporting it -- so pass an explicit rootDir. . "importsNotUsedAsValues" was removed in TypeScript 6 (TS5102). It only made tsc complain about type imports not spelled "import type"; nothing is emitted from this config -- the JavaScript comes from babel and only the declarations come from tsc -- so dropping it changes no shipped file. |
Xavier Guimard <yadd@debian.org> | not-needed | 2026-08-17 | ||
| babel8.patch | Build with Babel 8 The preset-env "bugfixes" option is gone, the bugfix plugins are always on, and @babel/register is now an ES module, so its CommonJS entry point is the namespace object rather than the register function itself. . transform-typescript lost allowDeclareFields and now always emits uninitialized class field declarations, which would define every field as undefined before the constructor runs and reorder the enumerable properties of GraphQLError. Mark those fields "declare", as upstream does since 17; the built output is then the same as with Babel 7. |
Xavier Guimard <xavier.guimard@gmail.com> | not-needed | 2026-08-30 |
