Skip to content

Bump typeorm from 0.3.22 to 0.3.24#244

Merged
tbantle22 merged 1 commit into
mainfrom
dependabot/npm_and_yarn/typeorm-0.3.24
Jun 2, 2025
Merged

Bump typeorm from 0.3.22 to 0.3.24#244
tbantle22 merged 1 commit into
mainfrom
dependabot/npm_and_yarn/typeorm-0.3.24

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 1, 2025

Bumps typeorm from 0.3.22 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)

Bumps [typeorm](https://github.com/typeorm/typeorm) from 0.3.22 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.22...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] <support@github.com>
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jun 1, 2025

The reviewers field in the dependabot.yml file will be removed soon. Please use the code owners file to specify reviewers for Dependabot PRs. For more information, see this blog post.

@dependabot dependabot Bot requested a review from tbantle22 June 1, 2025 13:43
@tbantle22 tbantle22 merged commit 8edd3d6 into main Jun 2, 2025
1 check passed
@tbantle22 tbantle22 deleted the dependabot/npm_and_yarn/typeorm-0.3.24 branch June 2, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant