Skip to content

[Snyk] Upgrade typeorm from 0.2.30 to 0.3.23 #21563

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

snyk-matt
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade typeorm from 0.2.30 to 0.3.23.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 624 versions ahead of your current version.

  • The recommended version was released 22 days ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
medium severity Prototype Pollution
SNYK-JS-XML2JS-5414874
586 Proof of Concept
Release notes
Package name: typeorm
  • 0.3.23 - 2025-05-07

    ⚠️ 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'

    An alternative method for deleting all rows is to use:

    await repository.clear()
    // executes: TRUNCATE TABLE table_name

    What's Changed

    New Contributors

    Full Changelog: 0.3.22...0.3.23

  • 0.3.23-dev.fe71a0c - 2025-04-15
  • 0.3.23-dev.fadad1a - 2025-05-01
  • 0.3.23-dev.cebd63b - 2025-04-03
  • 0.3.23-dev.c15cb07 - 2025-04-05
  • 0.3.23-dev.b9ddd14 - 2025-04-25
  • 0.3.23-dev.b9842e3 - 2025-04-30
  • 0.3.23-dev.b94dfb3 - 2025-05-06
  • 0.3.23-dev.a61654e - 2025-04-29
  • 0.3.23-dev.9464e65 - 2025-04-30
  • 0.3.23-dev.7c5ea99 - 2025-04-04
  • 0.3.23-dev.6ebae3b - 2025-04-03
  • 0.3.23-dev.6c5668b - 2025-04-03
  • 0.3.23-dev.673f065 - 2025-04-15
  • 0.3.23-dev.61a6f97 - 2025-04-25
  • 0.3.23-dev.56f1898 - 2025-04-15
  • 0.3.23-dev.4c8fc3a - 2025-04-16
  • 0.3.23-dev.45577df - 2025-04-14
  • 0.3.23-dev.3ffeea5 - 2025-05-05
  • 0.3.23-dev.274bdf2 - 2025-05-02
  • 0.3.23-dev.24a0369 - 2025-04-17
  • 0.3.23-dev.184f463 - 2025-04-15
  • 0.3.23-dev.055eafd - 2025-04-03
  • 0.3.23-dev.04f3d3f - 2025-04-04
  • 0.3.22 - 2025-04-03

    What's Changed

    New Contributors

    Full Changelog: 0.3.21...0.3.22

  • 0.3.22-dev.fb06662 - 2025-03-29
  • 0.3.22-dev.ecae9f5 - 2025-03-20
  • 0.3.22-dev.deb0e81 - 2025-03-12
  • 0.3.22-dev.de8eb04 - 2025-03-20
  • 0.3.22-dev.c3bebdc - 2025-04-01
  • 0.3.22-dev.bcaa0bf - 2025-04-01
  • 0.3.22-dev.ba47b62 - 2025-03-12
  • 0.3.22-dev.b0ea913 - 2025-03-19
  • 0.3.22-dev.ae96f87 - 2025-03-14
  • 0.3.22-dev.a29e047 - 2025-03-31
  • 0.3.22-dev.8c2b2ae - 2025-03-20
  • 0.3.22-dev.863caf1 - 2025-04-01
  • 0.3.22-dev.8429e8f - 2025-03-13
  • 0.3.22-dev.834e856 - 2025-03-25
  • 0.3.22-dev.81bb9d5 - 2025-03-30
  • 0.3.22-dev.7b242e1 - 2025-04-01
  • 0.3.22-dev.72c6991 - 2025-04-02
  • 0.3.22-dev.72beb26 - 2025-04-02
  • 0.3.22-dev.72145b8 - 2025-03-10
  • 0.3.22-dev.6ba4082 - 2025-03-26
  • 0.3.22-dev.673b6ce - 2025-03-03
  • 0.3.22-dev.5d6d893 - 2025-03-14
  • 0.3.22-dev.5a276a4 - 2025-03-10
  • 0.3.22-dev.513be33 - 2025-03-04
  • 0.3.22-dev.4e31a86 - 2025-03-26
  • 0.3.22-dev.460ef02 - 2025-04-01
  • 0.3.22-dev.40cc688 - 2025-03-05
  • 0.3.22-dev.3d79786 - 2025-04-01
  • 0.3.22-dev.27b4207 - 2025-03-06
  • 0.3.22-dev.206af0a - 2025-03-03
  • 0.3.22-dev.04ca83a - 2025-03-06
  • 0.3.22-dev.03dbc7a - 2025-03-30
  • 0.3.22-dev.00d5639 - 2025-03-21
  • 0.3.22-dev.5922519 - 2025-04-01
  • 0.3.21 - 2025-03-03

    What's Changed

    • docs: update the custom-repository.md file in the docs/zh_CN directory by @ OrangeSheepCool in

Snyk has created this PR to upgrade typeorm from 0.2.30 to 0.3.23.

See this package in npm:
typeorm

See this project in Snyk:
https://app.snyk.io/org/snyk-platform/project/438ecf63-493d-4811-a229-8ce7f83afeed?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants