Feat/typescript 6 migration#281
Open
weyderfs wants to merge 9 commits into
Open
Conversation
Phase 67 of TypeScript 6 migration. Bump TypeScript to ~6.0.3 across all three packages. Supported by ts-jest (peer <7) and typescript-eslint (peer <6.1.0). All 3660 tests pass.
TypeScript 6 migration complete. No tsconfig changes needed — TS6 is backwards-compatible with our existing configurations. All builds, lint checks, and 6516 tests pass.
Add ignoreDeprecations: 6.0 to all tsconfigs that use deprecated options (node/node10 moduleResolution, baseUrl). Set rootDir in base tsconfig (.) and build tsconfig (./src) — TS6 requires explicit rootDir when outDir is set. Add strictPropertyInitialization: false — TS6 enables it when individual strict checks are set. Exclude __mocks__ from build. Gitignore *.tsbuildinfo incremental files.
Root cause: TS6 changes default types resolution behavior. Without explicit `types: ["node", "jest"]` in tsconfig.json, TypeScript ESLint's projectService cannot resolve @types/jest globals, producing 44k+ no-unsafe-call warnings on every spec file. Changes: - Add `types: ["node", "jest"]` to base tsconfig.json - Switch ESLint from projectService to explicit project config - Upgrade typescript-eslint 8.63→8.64 (TS6 compat) - Restore ignoreDeprecations and strictPropertyInitialization flags - Fix DocBuilder mock type mismatch in docs-build.processor.spec - Accept eslint --fix cleanups on test files (removed unnecessary casts) Lint: 0 errors, 25 warnings. Tests: 3660 pass. Build: OK.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…error logging - Use os.networkInterfaces() to detect IPv4 loopback for Docker testcontainers - Clean only stale testcontainers, not all postgres containers - Log real error codes (NodeJS.ErrnoException) in E2E setup failures - Throw on E2E setup failure instead of silent skip - Add shared tsconfig.jest.json for TypeScript 6 compatibility - Fix tsconfig rootDir for test helpers
…e audit vulns - Clean tsconfig.build.tsbuildinfo before nest build to prevent stale cache blocking JS emission - Add brace-expansion + immutable to UPSTREAM_UNFIXABLE (transitive deps, no fix without breaking changes) - Pin fast-uri to 3.1.4 via overrides to fix high CVE - Verified: build produces dist/config/typeorm-cli.config.js, both audit checks pass, 262 unit tests pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.