-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update dependency typeorm to v0.3.17 #976
Conversation
36636d9
to
dd92d86
Compare
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #976 +/- ##
=======================================
Coverage 21.71% 21.71%
=======================================
Files 14 14
Lines 175 175
Branches 24 24
=======================================
Hits 38 38
Misses 116 116
Partials 21 21 ☔ View full report in Codecov by Sentry. |
e80f834
to
6da5ce7
Compare
6da5ce7
to
b854d16
Compare
5680a85
to
e39a561
Compare
e39a561
to
993833a
Compare
822c807
to
c4836c9
Compare
c4836c9
to
22ad487
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
22ad487
to
4c22814
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: supermarket-api/package-lock.json
|
7eec9bc
to
446aaf9
Compare
446aaf9
to
a25942f
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update (0.3.17). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
0.2.41
->0.3.17
Release Notes
typeorm/typeorm (typeorm)
v0.3.17
Compare Source
Bug Fixes
v0.3.16
Compare Source
Bug Fixes
trustServerCertificate
option toSqlServerConnectionOptions
(#9985) (0305805), closes #8093Features
Reverts
v0.3.15
Compare Source
Bug Fixes
Features
v0.3.14
Compare Source
Bug Fixes
Features
v0.3.13
Compare Source
Bug Fixes
Features
v0.3.12
Compare Source
Bug Fixes
FindOptionsWhere
behavior with union types (#9607) (7726f5a)where
parameter is empty array (#9691) (7df2ccf), closes #9690Features
v0.3.11
Compare Source
Fixes
init
command (#9422) (0984307)Features
v0.3.10
Compare Source
Bug Fixes
Features
v0.3.9
Compare Source
v0.3.8
Compare Source
Bug Fixes
Features
v0.3.7
Compare Source
Bug Fixes
enumName
support for EntitySchema (#9024) (676fd1b)Features
for_key_share
("FOR KEY SHARE") lock mode for postgres driver (#8879) (4687be8), closes #8878Performance Improvements
v0.3.6
Compare Source
Features
for_key_share
("FOR KEY SHARE") lock mode for postgres driver (#8879) (4687be8), closes #8878v0.3.5
Compare Source
Bug Fixes
.save
repository method not returning generated uuids for aurora-postgres (#8825) (ed06f4c)cli-ts-node-commonjs
andcli-ts-node-esm
on some linux distros (#8821) (c5dfc11), closes #8818typeorm init
command (#8820)v0.3.4
Compare Source
Bug Fixes
findOne
to throw error on missing conditions in runtime (#8801) (ee8c1ec)Features
v0.3.3
Compare Source
Bug Fixes
Features
v0.3.2
Compare Source
Bug Fixes
Features
ts-node
(#8776) (05fc744)Reverts
v0.3.1
Compare Source
Bug Fixes
v0.3.0
Compare Source
Changes in the version includes changes from the
next
branch andtypeorm@next
version.They were pending their migration from 2018. Finally, they are in the master branch and master version.
Features
compilation
target
now ises2020
. This requires Node.JS version14+
TypeORM now properly works when installed within different node_modules contexts
(often happen if TypeORM is a dependency of another library or TypeORM is heavily used in monorepo projects)
Connection
was renamed toDataSource
.Old
Connection
is still there, but now it's deprecated. It will be completely removed in next version.New API:
Previously, you could use
new Connection()
,createConnection()
,getConnectionManager().create()
, etc.They all deprecated in favour of new syntax you can see above.
New way gives you more flexibility and simplicity in usage.
Old ways of custom repository creation were dropped.
added new option on relation load strategy called
relationLoadStrategy
.Relation load strategy is used on entity load and determines how relations must be loaded when you query entities and their relations from the database.
Used on
find*
methods andQueryBuilder
. Value can be set tojoin
orquery
.join
- loads relations using SQLJOIN
expressionquery
- executes separate SQL queries for each relationDefault is
join
, but default can be set inConnectionOptions
:Also, it can be set per-query in
find*
methods:And QueryBuilder:
For queries returning big amount of data, we recommend to use
query
strategy,because it can be a more performant approach to query relations.
findOneBy
,findOneByOrFail
,findBy
,countBy
,findAndCountBy
methods toBaseEntity
,EntityManager
andRepository
:Overall
find*
andcount*
method signatures where changed, read the "breaking changes" section for more info.select
type signature inFindOptions
(used infind*
methods):Also, now it's possible to specify select columns of the loaded relations:
relations
type signature inFindOptions
(used infind*
methods):To load nested relations use a following signature:
order
type signature inFindOptions
(used infind*
methods):Now supports nested order by-s:
where
type signature inFindOptions
(used infind*
methods) now allows to build nested statements with conditional relations, for example:Gives you users who have photos in their "profile" album.
FindOperator
-s can be applied for relations inwhere
statement, for example:Gives you users with more than 10 photos.
boolean
can be applied for relations inwhere
statement, for example:BREAKING CHANGES
minimal Node.JS version requirement now is
14+
drop
ormconfig
support.ormconfig
still works if you use deprecated methods,however we do not recommend using it anymore, because it's support will be completely dropped in
0.4.0
.If you want to have your connection options defined in a separate file, you can still do it like this:
Or even more type-safe approach with
resolveJsonModule
intsconfig.json
enabled:But we do not recommend use this practice, because from
0.4.0
you'll only be able to specify entities / subscribers / migrations using direct references to entity classes / schemas (see "deprecations" section).We won't be supporting all
ormconfig
extensions (e.g.json
,js
,ts
,yaml
,xml
,env
).support for previously deprecated
migrations:*
commands was removed. Usemigration:*
commands instead.all commands were re-worked. Please refer to new CLI documentation.
cli
option fromBaseConnectionOptions
(nowBaseDataSourceOptions
options) was removed (since CLI commands were re-worked).now migrations are running before schema synchronization if you have both pending migrations and schema synchronization pending
(it works if you have both
migrationsRun
andsynchronize
enabled in connection options).aurora-data-api
driver now is calledaurora-mysql
aurora-data-api-pg
driver now is calledaurora-postgres
EntityManager.connection
is nowEntityManager.dataSource
Repository
now has a constructor (breaks classes extending Repository with custom constructor)@TransactionRepository
,@TransactionManager
,@Transaction
decorators were completely removed. These decorators do the things out of the TypeORM scope.Only junction table names shortened.
MOTIVATION: We must shorten only table names generated by TypeORM.
It's user responsibility to name tables short if their RDBMS limit table name length
since it won't make sense to have table names as random hashes.
It's really better if user specify custom table name into
@Entity
decorator.Also, for junction table it's possible to set a custom name using
@JoinTable
decorator.findOne()
signature without parameters was dropped.If you need a single row from the db you can use a following syntax:
This change was made to prevent user confusion.
See this issue for details.
findOne(id)
signature was dropped. Use following syntax instead:This change was made to provide a more type-safe approach for data querying.
Due to this change you might need to refactor the way you load entities using MongoDB driver.
findOne
,findOneOrFail
,find
,count
,findAndCount
methods now only acceptFindOptions
as parameter,Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.