Skip to content
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

BREAKING CHANGE: change this to HydratedDocument for default() and required(), HydratedDocument | Query for validate() #15020

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

vkarpov15
Copy link
Collaborator

Summary

Currently, this is a raw document for required(), default(), and validate(). While this type works for many cases, it isn't fully correct. And the validate() also excludes the possibility that this is a Query in the case of query validators.

Re: #14696

This is a breaking change, and should go into 9.0 if merged.

Examples

…required(), HydratedDocument | Query for validate()
@vkarpov15 vkarpov15 added this to the 9.0 milestone Nov 5, 2024
Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM, this PR should likely target branch 9.0, right?

@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Nov 6, 2024
@vkarpov15 vkarpov15 changed the base branch from master to 9.0 November 8, 2024 18:25
@vkarpov15 vkarpov15 merged commit 032aa1c into 9.0 Nov 8, 2024
5 checks passed
@vkarpov15
Copy link
Collaborator Author

Yep, I merged into 9.0

@vkarpov15 vkarpov15 deleted the vkarpov15/gh-14696-2 branch November 8, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants