You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unify common workspace dependencies. The website (docs) is now a monorepo package.
Update all dependencies.
Extend the range of accepted peers: oracledb ^26, ioredis ^6, better-sqlite3 ^13, @google-cloud/spanner ^9.
Stop publishing v0.3.x nightlies. Since there's barely any development on the v0 branch, if there's any release needed it will be done manually (and most likely it won't be a nightly).
While we still compile the main TypeORM package for Node 20, we'll move the tests to use Node 22. Most of the development tooling already dropped support for Node 20, so if we want to use modern tooling, we need to switch to Node 22 for development.
Pull-Request Checklist
Code is up-to-date with the master branch
This pull request links a relevant issue using a closing keyword: Fixes #NNNN, Closes #NNNN, or Resolves #NNNN
There are new or updated tests validating the change (tests/**.test.ts)
Documentation has been updated to reflect this change (docs/docs/**.md)
The schedule case now emits a publish matrix containing only master, removing the v0 entry and
its nightly tag. Every scheduled run uses that matrix, so it no longer creates a job to check out
or publish the v0 branch, despite the workflow’s stated publishing strategy.
The workflow documents a scheduled v0 nightly release, but the changed schedule matrix contains only
master. The publish job takes its matrix directly from that output.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
Scheduled runs no longer publish the v0 branch under the nightly tag.
## Fix Focus Areas
- .github/workflows/publish-package.yml[62-64]
## Recommended Fix
Restore the v0 entry with its nightly tag and Node version in the schedule matrix, alongside the master entry.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
2. TypeORM no longer compiles✓ Resolved
Description
In createDatabaseConnection, the options destructuring contains a bare = null, instead of
nativeBinding = null,, making it invalid TypeScript and leaving the nativeBinding passed to `new
this.sqlite(...) undeclared. pnpm run compile` fails before the connection code runs, blocking the
TypeORM package build, packaging, CI test jobs, and publish workflows.
packages/typeorm now installs [email protected], which requires Node 22 or newer, while the
workspace enforces dependency engine requirements. A contributor using Node 20, which TypeORM still
lists as supported, cannot install the workspace dependencies to build or test the project.
The lockfile records Node >=22 for the newly selected direct dependency; the workspace enables
strict engine checks, but TypeORM's published engine range still includes Node 20.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The new development dependency resolves to a release requiring Node 22, although the TypeORM package still supports Node 20 and the workspace enforces dependency engines.
## Fix Focus Areas
- packages/typeorm/package.json[114-114]
- pnpm-workspace.yaml[15-15]
## Recommended Fix
Use a Node 20-compatible better-sqlite3 version for the shared development install, or explicitly revise Node support and its associated workflows if dropping Node 20 is intended.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
The new legacy-package build step writes PACKAGES through GITHUB_ENV, but the publish step reads
${{ env.PACKAGES }}, which does not acquire values written through GITHUB_ENV. When that build
succeeds, the publish command receives no package path from it; the new step also replaces rather
than preserves paths exported by earlier build steps.
The TypeORM and codemod steps export paths through GITHUB_ENV, the new legacy step attempts to read
the expression context and exports its own path, and the final command uses that expression context
instead of the runner environment.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The new preview build exports its package path at runner runtime, but expression-based references do not read that exported value, so publishing receives no path for the legacy package.
## Fix Focus Areas
- .github/workflows/preview.yml[69-81]
## Recommended Fix
Append package paths using the shell's `$PACKAGES` value in build steps, then pass the accumulated shell environment variable to the publish command rather than using `${{ env.PACKAGES }}`.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
copyPackageFile reads only TypeORM’s package-local manifest, so moving ts-node, typescript,
and @types/node solely to the workspace root leaves all three out of its packaged
devDependencies. When typeorm init reads that packaged manifest, it omits those dependencies
from new projects even though their generated start scripts invoke ts-node.
The packaging function filters dependencies from TypeORM’s own manifest, not the workspace root. The
init command then copies those packaged values into a generated project and writes a script that
requires ts-node.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
Moving TypeScript tooling dependencies out of TypeORM’s local manifest removes the versions used when packaging TypeORM and scaffolding new projects.
## Fix Focus Areas
- packages/typeorm/package.json[106-113]
- packages/typeorm/package.json[142-144]
- packages/typeorm/gulpfile.ts[99-106]
## Recommended Fix
Keep `@types/node`, `ts-node`, and `typescript` in TypeORM’s package-local devDependencies so the packaging step retains their versions for `typeorm init`. Verify that the packaged manifest and a generated project both contain all three dependencies.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
6. Node 20 Spanner tests use an unsupported client 🐞 Bug≡ Correctness
Description
Updating @google-cloud/spanner to 9.1.0 selects a package whose recorded engine requirement is
Node 22 or newer. The Spanner job still runs for the Node 20 Linux matrix leg and loads that client
during its test suite, while the workspace's fixed nodeVersion checks installation against Node 22
rather than that job's runtime.
The lockfile states Spanner 9.1.0's Node requirement; the workflow runs the same Spanner suite under
both matrix versions, and TypeORM loads the client by name.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The Node 20 Spanner test job executes a client version that declares Node 22 as its minimum runtime.
## Fix Focus Areas
- packages/typeorm/package.json[100-103]
- .github/workflows/tests.yml[132-141]
- pnpm-workspace.yaml[14-17]
## Recommended Fix
Use a Node 20-compatible Spanner client for the Node 20 test leg, or explicitly change the supported-runtime and test strategy so no Node 20 job loads version 9.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
7. Every CI job now installs the docs site's dependencies 🐞 Bug➹ Performance
Description
Adding docs to packages in pnpm-workspace.yaml and removing the --ignore-workspace option
from the shared setup-node action means every pnpm install --frozen-lockfile at the repo root
also installs the whole Docusaurus/React dependency tree. Every test, lint, build, codemod, sonar
and publish job that uses setup-node (each driver job in the Linux matrix, run once per Node
version) now downloads and links that unrelated tree. The docs build in turn installs the full
TypeORM driver devDependencies, which makes CI slower and adds packages that can break installs for
jobs that never touch the docs.
The removed workspace comment says docs was kept out on purpose because it has a "large, unrelated
dependency tree". setup-node now runs a plain pnpm install --frozen-lockfile, which installs
every workspace project. The test and build jobs call ./.github/actions/setup-node without
filters, so all of them pay for the docs tree.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
Now that `docs` is a workspace member, every root `pnpm install` in CI installs the Docusaurus tree, and the docs build installs every TypeORM driver.
## Fix Focus Areas
- pnpm-workspace.yaml[1-4]
- .github/actions/setup-node/action.yml[27-29]
- .github/actions/build-docs/action.yml[7-9]
## Recommended Fix
Add an optional `filter` input to `setup-node` and pass it through to `pnpm install --frozen-lockfile --filter <pkg>...`. Use `--filter @typeorm/docs...` in build-docs, and exclude docs (`--filter '!@typeorm/docs'`) in the test, lint and build jobs. The other option is to take docs back out of the workspace.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
8. Docs lockfile changes skip the docs build and deploy✓ Resolved
Description
Because docs is now in the root workspace, its resolved dependencies live only in the root
pnpm-lock.yaml, and docs/pnpm-lock.yaml is deleted. The docs path filter in tests.yml
(docs/**/*) and the deploy-docs-cloudflare-pages.yml push paths (docs/**) still don't watch
pnpm-lock.yaml or pnpm-workspace.yaml. So a lockfile-only update, such as a transitive bump, a
dedupe or a minimumReleaseAge-driven re-resolve, changes what the docs build installs without
running the docs build check or redeploying the site.
9. Native-binding test may point at a missing file 🐞 Bug≡ Correctness
Description
pathToBetterSqliteNode joins ../prebuilds/-.node to require.resolve("better-sqlite3"), an
entry-file path, producing lib/prebuilds/... rather than a path rooted at the package directory.
If the installed binary is not at that computed path, the value passed as nativeBinding points to
a nonexistent file when the test opens a connection, affecting sqlite CI jobs that run the test.
The changed expression uses the resolved module entry as the first argument to join, so
../prebuilds resolves from the entry file's directory; the result is passed directly as
nativeBinding when test connections are created. The lockfile lists node-addon-api for
better-sqlite3 13.2.0, and the workspace allows its install build, suggesting that the binary may
instead be under build/Release; the installed copy must be checked to confirm its location.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The native-binding test constructs a binary path from the better-sqlite3 JavaScript entry file rather than the package directory. This produces a `lib/prebuilds` path that may not contain the installed better-sqlite3 13 binary.
## Fix Focus Areas
- packages/typeorm/test/functional/driver/better-sqlite3/better-sqlite3-native-binding.test.ts[12-15]
## Recommended Fix
Resolve the package directory, for example with `dirname(require.resolve("better-sqlite3/package.json"))`, then join it with the binary's actual location in an installed better-sqlite3 13 copy, whether `build/Release/better_sqlite3.node` or a shipped `prebuilds` path. Verify that the resulting file exists and run the native-binding test.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
View review recommended (7) 10. Manual v0 publishes run with no dist-tag or Node version✓ Resolved
Description
The workflow_dispatch branch of the publish matrix no longer has the else arm that set
TAG="nightly" and NODE="20", but the target input still offers v0. Choosing v0 builds the
matrix entry {"ref":"v0","tag":"","node":""}. The job then runs pnpm view typeorm@"" (which
looks up latest), falls back to Node 26 for a branch built for Node 20, and runs `pnpm publish
--tag ""`, so the publish either fails or goes out under the wrong dist-tag.
11. CI no longer tests the oldest supported Node version 🐞 Bug☼ Reliability
Description
The Linux test matrix changes from [20, 26] to [22, 26], so no CI job runs on Node 20 anymore.
packages/typeorm, codemod and legacy-naming-strategies still declare Node 20 support
(^20.19.0 || ... / >=20), so Node 20 regressions, including from the driver majors this PR
bumps, can ship without any CI signal.
The typeorm package manifest still lists Node 20 in its engines field, and so do the codemod and
legacy-naming-strategies manifests. The only Linux test matrix now runs Node 22 and 26.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The CI matrix dropped Node 20, but the published packages still declare Node 20 support in their engines fields.
## Fix Focus Areas
- .github/workflows/tests.yml[138-138]
- packages/typeorm/package.json[199-201]
## Recommended Fix
Either add 20 back to the matrix (e.g. `[20, 22, 26]`), or deliberately drop Node 20 by updating the engines fields, the `@tsconfig/node20` and `@types/node` baselines, and the docs.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
12. Widened peer ranges ship without any docs update 📘 Rule violation⚙ Maintainability
Description
The peerDependencies of typeorm now accept new major versions: @google-cloud/spanner gains
^9.0.0, better-sqlite3 gains ^13.0.0, ioredis gains ^6.0.0, and oracledb gains
^26.0.0. Users choosing driver versions for their projects are affected by these ranges, yet the
PR changes no file under docs/, and the PR description leaves the documentation checkbox
unchecked. Users who read the docs will not learn that these driver majors are now supported, and
the engines removal in the root and package manifests is not documented either.
The peerDependencies diff widens supported driver versions, which is a user-facing change in what
the published package accepts. The PR file list contains no docs file, and the PR description's
documentation checkbox is unchecked, so the docs-update rule's failure criteria are met.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
Issue description
The `typeorm` package now declares peer ranges that accept `@google-cloud/spanner` ^9, `better-sqlite3` ^13, `ioredis` ^6, and `oracledb` ^26, and the root and package manifests no longer declare `engines`. None of these user-facing changes are reflected in the docs.
Fix Focus Areas
- packages/typeorm/package.json[136-139]
- package.json[27-56]
Recommended Fix
Update the relevant documentation under `docs/docs/**` to list the supported driver versions and the Node.js requirement, or confirm in the PR that no doc change is needed. Then tick the documentation item in the PR checklist.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
The root lint-staged upgrade resolves to version 17.6.0, whose recorded minimum Node version is
22.22.1. The repository still advertises Node 20 support, but its pre-commit hook invokes that
version on every commit without a runtime-version guard.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The pre-commit hook runs a lint-staged version that does not support the repository's advertised Node 20 runtime.
## Fix Focus Areas
- package.json[37-37]
- package.json[48-51]
- .husky/pre-commit[1-2]
## Recommended Fix
Pin a lint-staged release that supports Node 20, or update the repository's supported Node versions and contributor hook environment together.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
14. Engine checks are pinned to Node 22 while CI tests Node 20 🐞 Bug☼ Reliability
Description
The new nodeVersion: 22.23.5 setting makes pnpm check dependency engines against Node 22.23.5
instead of the Node version that is actually running, so engineStrict: true never checks anything
against Node 20. A dependency bump that drops Node 20 support (exactly what the tedious override
is guarding against) will install without complaint and then fail at runtime in the Node 20 test
matrix or for users on Node 20.
The root engines allow ^20.19.0, and tests.yml runs the matrix node-version: [20, 26]. The
tedious override comment says Node 20 support matters. But nodeVersion tells pnpm to treat the
runtime as 22.23.5 when it checks engines, so packages that need Node >=22 are accepted.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
`nodeVersion: 22.23.5` makes pnpm check engines against Node 22, so `engineStrict` cannot catch dependencies that drop Node 20, even though Node 20 is still supported and tested.
## Fix Focus Areas
- pnpm-workspace.yaml[15-17]
## Recommended Fix
Remove `nodeVersion`, or set it to the lowest supported version (e.g. `20.19.0`), so engine checks match the oldest Node the project supports.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
15. Preview releases never start for naming-strategy changes 🐞 Bug≡ Correctness
Description
The preview workflow’s on.pull_request.paths lists typeorm and codemod paths but omits
packages/legacy-naming-strategies/**, even though the workflow has a filter and build step for
that package. A PR changing only the legacy-naming-strategies package never starts the workflow, so
it cannot reach change detection or the new build and publish steps.
The workflow trigger paths at lines 4–15 exclude the legacy-naming-strategies package. Its added
change filter and build step run only after the workflow starts, so a legacy-only PR cannot reach
them.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The preview workflow does not start for PRs that change only `packages/legacy-naming-strategies`, leaving its new change filter and build/publish steps unreachable for those PRs.
## Fix Focus Areas
- .github/workflows/preview.yml[3-15]
- .github/workflows/preview.yml[43-46]
## Recommended Fix
Add `packages/legacy-naming-strategies/**` to the workflow-level `on.pull_request.paths` list so changes to its source, `package.json`, and `tsconfig*.json` can start the workflow and reach change detection.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
16. Naming-strategy preview build fails when core is unchanged 🐞 Bug☼ Reliability
Description
The build legacy-naming-strategies step compiles imports from typeorm, but the step that
generates TypeORM’s build/package output runs only when the separate typeorm filter matches.
When a PR changes the legacy package without changing TypeORM, including alongside codemod changes,
the legacy step runs against a workspace link with no generated package and the preview job fails.
TypeORM sets publishConfig.directory to build/package, which is where the legacy package’s
typeorm imports resolve through its workspace link. The regular test workflow explicitly downloads
that generated build for the legacy package, while the preview workflow gates TypeORM packaging and
the legacy build on independent filters; codemod changes can trigger the workflow without causing
the TypeORM packaging step to run.
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The legacy-naming-strategies preview build requires TypeORM’s generated `build/package` output, but its change filter can match when the TypeORM packaging step does not.
## Fix Focus Areas
- .github/workflows/preview.yml[53-58]
- .github/workflows/preview.yml[72-78]
## Recommended Fix
Ensure TypeORM packaging runs before the legacy build whenever the legacy-naming-strategies filter matches. Either run `pnpm --filter typeorm run package` in the legacy step when the TypeORM filter did not match, or extend the TypeORM build step’s condition to include the legacy filter, while preserving the intended package list for preview publication.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Author self-review: I have reviewed the code review findings, and addressed the relevant ones.
Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link
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
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.
Description of change
Unify common workspace dependencies. The website (docs) is now a monorepo package.
Update all dependencies.
Extend the range of accepted peers:
oracledb ^26,ioredis ^6,better-sqlite3 ^13,@google-cloud/spanner ^9.Stop publishing v0.3.x nightlies. Since there's barely any development on the
v0branch, if there's any release needed it will be done manually (and most likely it won't be a nightly).While we still compile the main TypeORM package for Node 20, we'll move the tests to use Node 22. Most of the development tooling already dropped support for Node 20, so if we want to use modern tooling, we need to switch to Node 22 for development.
Pull-Request Checklist
masterbranchFixes #NNNN,Closes #NNNN, orResolves #NNNNtests/**.test.ts)docs/docs/**.md)