Skip to content

Conversation

@ayushman1210
Copy link

@ayushman1210 ayushman1210 commented Nov 18, 2025

What was fixed:

  • Issue: Calling [min(Infinity, 3)]) or [max(3, -Infinity)] threw a friendly error in v2.0.4+
  • Root cause: The Zod schema for the [Number] type didn't accept [Infinity]or [-Infinity] values
  • Solution: Updated the schema to explicitly allow these special numeric values

@ayushman1210
Copy link
Author

@perminder-17 please review this Pr
Allow Infinity/-Infinity as Number parameters so [min()]) / [max()]
don't throw validation errors
add unit tests update
Typography visual baselines to match current rendering

Copy link
Collaborator

@perminder-17 perminder-17 left a comment

Choose a reason for hiding this comment

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

Hi, I don't understand the reason to add these tests. Currently out unit tests doesn't pass, you need to fix them as I mentioned on the previous comment. I also mentioned the way to make the tests pass. Please consider that.

@ksen0
Copy link
Member

ksen0 commented Nov 19, 2025

In addition to addressing @perminder-17 's comments, please ensure that your PRs clearly link to the related issue (with "Resolves ___" or "Fixes ___"). Thank you!

@ayushman1210
Copy link
Author

hi @perminder-17 still the test cases fails please help me !!
thanks

@ayushman1210
Copy link
Author

Screenshot 2025-11-20 193905 Hi @perminder-17 please see locally all the test pases but why it show error here at pull request please tell

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