Skip to content

chore(deps): update all minor - #12443

Merged
alumni merged 1 commit into
v0.3from
chore/update-deps
May 8, 2026
Merged

alumni merged 1 commit into
v0.3from
chore/update-deps

Conversation

@alumni

@alumni alumni commented May 8, 2026 •

Copy link
Copy Markdown
Collaborator

Description of change

Updated all minor dependencies for the next v0.3 release.

Mainly because of transitive dependencies with security issues (e.g. [email protected], which doesn't really affect us at all).

This will force the users of typeorm to update their dependencies if they haven't already done this.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links relevant issues as Fixes #00000
  • There are new or updated tests validating the change (tests/**.test.ts)
  • Documentation has been updated to reflect this change (docs/docs/**.md)

@pkg-pr-new

pkg-pr-new Bot commented May 8, 2026

Copy link
Copy Markdown
  • typeorm-sql-js-example

    npm i https://pkg.pr.new/typeorm@12443
    

commit: 55dc9dc

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented May 8, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0)

Grey Divider


Action required

1. Broken local typeorm dependency 🐞 Bug ≡ Correctness
Description
sample/playground/package.json now sets "typeorm": "file:..", which resolves to the parent sample/
directory rather than the repository’s actual TypeORM package, so installing/running the playground
from that directory will fail to resolve typeorm. This is especially risky because the repo’s
publish:preview script uses this playground as its template.
Code

sample/playground/package.json[14]

+    "typeorm": "file:.."
Evidence
The playground was changed to depend on a local path (file:..), but the actual TypeORM package is
defined at the repository root (name: "typeorm"), not in the sample/ parent folder; additionally,
the root publish:preview script explicitly uses ./sample/playground as its template, increasing
the chance this path is exercised.

sample/playground/package.json[11-15]
package.json[1-4]
package.json[79-90]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`sample/playground/package.json` uses `"typeorm": "file:.."`, which points at the `sample/` directory and not the actual TypeORM package. This makes the playground unable to install/resolve `typeorm` when run from `sample/playground`.

### Issue Context
The TypeORM package is the repository root package (`package.json` name is `typeorm`), and `publish:preview` uses `./sample/playground` as its template.

### Fix Focus Areas
- sample/playground/package.json[11-15]
- package.json[79-90]

### Suggested fix
Change the dependency to point to the repository root package (typically `"typeorm": "file:../.."`), or otherwise adjust it to the correct local path that the preview/template workflow expects.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Unused '_' lint warning 🐞 Bug ⚙ Maintainability
Description
src/error/QueryFailedError.ts now destructures name: _ without the previous eslint suppression,
introducing an unused local variable that triggers @typescript-eslint/no-unused-vars warnings. This
regresses lint cleanliness and may break CI if warnings are treated as failures.
Code

src/error/QueryFailedError.ts[22]

+            const { name: _, ...otherProperties } = driverError
Evidence
QueryFailedError introduces an unused local variable _ via destructuring. The eslint config
ignores _ only for function args and destructured arrays, and does not configure
varsIgnorePattern, so a local variable named _ is still reported by
@typescript-eslint/no-unused-vars (configured as warn).

src/error/QueryFailedError.ts[21-26]
eslint.config.mjs[43-49]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`QueryFailedError` destructures `driverError` as `const { name: _, ...otherProperties } = driverError`, which creates an unused local variable `_` and triggers `@typescript-eslint/no-unused-vars` warnings.

### Issue Context
The project’s eslint config does not ignore unused local variables by underscore name (`varsIgnorePattern` is not set), so this binding will be reported.

### Fix Focus Areas
- src/error/QueryFailedError.ts[21-26]
- eslint.config.mjs[43-49]

### Suggested fix options
- Prefer a code-only fix: rename and mark as used, e.g.:
 - `const { name: _name, ...otherProperties } = driverError; void _name;`
- Or reintroduce a targeted eslint suppression on that line if that is the preferred style.
- (Broader alternative) set `varsIgnorePattern: "^_"` in eslint config if the project wants `_`-prefixed locals ignored globally.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

  • Author self-review: I have reviewed the code review findings, and addressed the relevant ones.

Qodo Logo

@alumni
alumni merged commit 0ac8092 into v0.3 May 8, 2026
45 of 46 checks passed
@alumni
alumni deleted the chore/update-deps branch May 8, 2026 11:04
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 80.833% (-0.001%) from 80.834% — chore/update-deps into v0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants