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

fix: change min max and regex to not reuse a const #820

Closed

Conversation

sirtimbly
Copy link
Contributor

Status

READY

Description

Fixes #819

Related PRs

Todos

  • Tests
  • Documentation
  • Changelog Entry (unreleased)

Steps to Test or Reproduce

@vercel
Copy link

vercel bot commented Apr 7, 2023

Someone is attempting to deploy a commit to a Personal Account owned by @anymaniax on Vercel.

@anymaniax first needs to authorize it.

@sirtimbly sirtimbly force-pushed the tlb/fix-min-max-consts branch from ffc9070 to 38a54b6 Compare April 7, 2023 21:58
@anymaniax
Copy link
Collaborator

is this pull request still relevant? If you want to remove the consts maybe we can add a config for it?

@melloware
Copy link
Collaborator

There is a merge conflict

@sirtimbly sirtimbly force-pushed the tlb/fix-min-max-consts branch from 38a54b6 to 8e892fe Compare October 29, 2023 21:33
@sirtimbly
Copy link
Contributor Author

sirtimbly commented Oct 29, 2023

I'm sorry I forgot about this PR. I still think this is the correct choice, using consts for simple literal values isn't going to improve perf in a meaningful way, and it's easier to use literals than to write logic that properly created different consts for different min/max values.

Anyway, it's rebased.

@melloware
Copy link
Collaborator

@sirtimbly did you see AnyMananiax comment "Just pushed a fix" in April? Have you tried 6.19.1 and do you still get the same errors you were getting before?

@melloware
Copy link
Collaborator

also @sirtimbly can you check out this issue with Zod and two dimensional array? #1027

@sirtimbly
Copy link
Contributor Author

@sirtimbly did you see AnyMananiax comment "Just pushed a fix" in April? Have you tried 6.19.1 and do you still get the same errors you were getting before?

Tested, it seems to be fixed because the name calculation is more complete.

@sirtimbly sirtimbly closed this Nov 13, 2023
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.

Zod generator produced unnecessary consts for min and max values
3 participants