Skip to content

Conversation

@jovanadjuric
Copy link
Contributor

Description of change

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

@jovanadjuric jovanadjuric requested a review from naorpeled April 7, 2025 21:38
@alenap93
Copy link
Contributor

alenap93 commented Apr 8, 2025

I think that this PR has many breaking changes

@jovanadjuric
Copy link
Contributor Author

jovanadjuric commented Apr 8, 2025

I think that this PR has many breaking changes

Hey @alienap93, thanks for your feedback!

Would you care to elaborate? As far as I can tell, no breaking changes are featured here. The parent PR is still a draft, and it will need quite a bit of testing before we merge it to master anyway.

  • The new else-if blocks in QueryBuilder.ts are only executed if the feature flags are set to true. Otherwise, the return statement at the bottom of the method will catch all unhandled cases, just like it did before
  • I moved the if block on SelectQueryBuilder.ts:4385 up as it was unreachable because typeof null === "object" evaluates to true

Let me know if I missed something 👀

Copy link
Member

@naorpeled naorpeled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, thank you ❤️

@jovanadjuric jovanadjuric merged commit bdad413 into typeorm:feat/add-undefined-and-null-flags Apr 9, 2025
@jovanadjuric jovanadjuric deleted the fix/handle-null branch April 9, 2025 19:23
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.

3 participants