| **Deprecated Feature** | **Files Affected** | **Fix** | |-------------------------|--------------------|---------| | `ts-ignore` without justification | Various | Replace with inline `@ts-expect-error` and provide a reason. | | `String.prototype.trimLeft()` and `trimRight()` | `queryString.ts` | Replace with `trimStart()` and `trimEnd()`. | | Manual `Function.prototype.bind()` calls | `apiLogger.ts`, `defaultLogger.ts` | Use arrow functions instead. | | Old-style `import * as fs from "fs"` for Node modules | `loggingOptions.ts` | Use ESM-style imports (`import { readFile } from "fs/promises";`). |
ts-ignorewithout justification@ts-expect-errorand provide a reason.String.prototype.trimLeft()andtrimRight()queryString.tstrimStart()andtrimEnd().Function.prototype.bind()callsapiLogger.ts,defaultLogger.tsimport * as fs from "fs"for Node modulesloggingOptions.tsimport { readFile } from "fs/promises";).