[Snyk] Upgrade typeorm from 0.2.24 to 0.3.24 #224
Closed
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.
Snyk has created this PR to upgrade typeorm from 0.2.24 to 0.3.24.
ℹ️ 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 645 versions ahead of your current version.
The recommended version was released a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-TYPEORM-590152
SNYK-JS-HIGHLIGHTJS-1045326
SNYK-JS-HIGHLIGHTJS-1048676
SNYK-JS-XML2JS-5414874
Release notes
Package name: typeorm
What's Changed
New Contributors
Full Changelog: 0.3.23...0.3.24
This release includes a technically breaking change (from this PR) in the behaviour of the
delete
andupdate
methods of the EntityManager and Repository APIs, when an empty object is supplied as the criteria: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:
An alternative method for deleting all rows is to use:
What's Changed
aggregate
method's generic parameter to its returned cursor by @ pringon in #10754New Contributors
Full Changelog: 0.3.22...0.3.23
What's Changed
@ VirtualColumn
by @ alumni in #10927