Skip to content

chore(deps): bump typeorm from 0.3.21 to 0.3.24 #454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 26, 2025

Bumps typeorm from 0.3.21 to 0.3.24.

Release notes

Sourced from typeorm's releases.

0.3.24

What's Changed

New Contributors

Full Changelog: typeorm/typeorm@0.3.23...0.3.24

0.3.23

⚠️ Note on a breaking change

This release includes a technically breaking change (from this PR) in the behaviour of the delete and update methods of the EntityManager and Repository APIs, when an empty object is supplied as the criteria:

await repository.delete({})
await repository.update({}, { foo: 'bar' })
  • Old behaviour was to delete or update all rows in the table
  • New behaviour is to throw an error: Empty criteria(s) are not allowed for the delete/update method.

Why?

This behaviour was not documented and is considered dangerous as it can allow a badly-formed object (e.g. with an undefined id) to inadvertently delete or update the whole table.

When the intention actually was to delete or update all rows, such queries can be rewritten using the QueryBuilder API:

await repository.createQueryBuilder().delete().execute()
// executes: DELETE FROM table_name
await repository.createQueryBuilder().update().set({ foo: 'bar' }).execute()
// executes: UPDATE table_name SET foo = 'bar'

... (truncated)

Changelog

Sourced from typeorm's changelog.

0.3.24 (2025-05-14)

Bug Fixes

  • capacitor use query to run PRAGMA statements (#11467) (d325d9e)
  • ci: resolve pkg.pr.new publish failure (2168441)
  • mssql: avoid mutating input parameter array values (#11476) (b8dbca5)

Features

  • add tagged template for executing raw SQL queries (#11432) (c464ff8)
  • add updateAll and deleteAll methods to EntityManager and Repository APIs (#11459) (23bb1ee)
  • spanner: support insert returning (#11460) (144634d), closes #11453

Performance Improvements

  • improve save performance during entities update (15de733)

0.3.23 (2025-05-05)

⚠️ Note on a breaking change

This release includes a technically breaking change (from this PR) in the behaviour of the delete and update methods of the EntityManager and Repository APIs, when an empty object is supplied as the criteria:

await repository.delete({})
await repository.update({}, { foo: 'bar' })
  • Old behaviour was to delete or update all rows in the table
  • New behaviour is to throw an error: Empty criteria(s) are not allowed for the delete/update method.

Why?

This behaviour was not documented and is considered dangerous as it can allow a badly-formed object (e.g. with an undefined id) to inadvertently delete or update the whole table.

When the intention actually was to delete or update all rows, such queries can be rewritten using the QueryBuilder API:

await repository.createQueryBuilder().delete().execute()
// executes: DELETE FROM table_name
await repository.createQueryBuilder().update().set({ foo: 'bar' }).execute()
// executes: UPDATE table_name SET foo = 'bar'

... (truncated)

Commits
  • 12a71e4 chore: version 0.3.24 (#11478)
  • d325d9e fix: capacitor driver PRAGMA bug (#11467)
  • b8dbca5 fix(mssql): avoid mutating input parameter array values (#11476)
  • 9f889b3 chore: clarify commit practices (#11472)
  • 144634d feat(spanner): support insert returning (#11460)
  • e9eaf79 Fix/11466 mssql find operator (#11468)
  • 23bb1ee feat: add updateAll and deleteAll methods to EntityManager and Repository API...
  • a6b61f7 chore: include warning about update({}) in changelog (#11471)
  • 6d1c4f0 build: ensure coveralls flag-name is unique by db, node and client versions (...
  • 1198dc2 chore: add note about breaking change in 0.3.23 (#11469)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels May 26, 2025
Copy link

vercel bot commented May 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tnc-blue-carbon-cost-tool-ghps ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 27, 2025 3:14pm

Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.21 to 0.3.24.
- [Release notes](https://github.com/typeorm/typeorm/releases)
- [Changelog](https://github.com/typeorm/typeorm/blob/master/CHANGELOG.md)
- [Commits](typeorm/typeorm@0.3.21...0.3.24)

---
updated-dependencies:
- dependency-name: typeorm
  dependency-version: 0.3.24
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/typeorm-0.3.24 branch from 4968393 to cc13725 Compare May 27, 2025 15:10
Copy link
Contributor Author

dependabot bot commented on behalf of github Jun 24, 2025

Superseded by #475.

@dependabot dependabot bot closed this Jun 24, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/typeorm-0.3.24 branch June 24, 2025 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant