You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rename connection to dataSource in EntityManager, Repository, QueryBuilder, QueryRunner etc. Create deprecated alias for backwards-compatibility. #12082
I don't think we should crate deprecated getter. We are heading to release 1.0 which can have breaking changes. It's the time to do it now...
@pkuczynski lesson from ESLint 9/10: if the effort to upgrade is too high, people will migrate to alternatives (in eslint's case it was oxlint/biome).
Also, TypeORM has not really followed semver, the first stable-quality version was 0.2, after which 0.3 was another stable-quality major release with a lot of changes. We've always seen them as rather 2.0 and 3.0. This upcoming release is just another major, and some minimal backwards-compatibility should be kept to avoid annoying users. This is why I wanted to be more careful with the PRs that we merged lately. ;)
This would be much less of an issue if we provide a codemod, which I was thinking to do anyway. And in this case is super easy change, so I don't think anybody would have a problem with this. And from 0.3 to 1.0 one can expect big changes...
Activity
pkuczynski commentedon Mar 12, 2026
I don't think we should crate deprecated getter. We are heading to release 1.0 which can have breaking changes. It's the time to do it now...
alumni commentedon Mar 12, 2026
@pkuczynski lesson from ESLint 9/10: if the effort to upgrade is too high, people will migrate to alternatives (in eslint's case it was oxlint/biome).
Also, TypeORM has not really followed semver, the first stable-quality version was 0.2, after which 0.3 was another stable-quality major release with a lot of changes. We've always seen them as rather 2.0 and 3.0. This upcoming release is just another major, and some minimal backwards-compatibility should be kept to avoid annoying users. This is why I wanted to be more careful with the PRs that we merged lately. ;)
pkuczynski commentedon Mar 12, 2026
This would be much less of an issue if we provide a codemod, which I was thinking to do anyway. And in this case is super easy change, so I don't think anybody would have a problem with this. And from 0.3 to 1.0 one can expect big changes...