-
Notifications
You must be signed in to change notification settings - Fork 72
Upgrade zod to v4 and OIS to v3 #2042
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
Conversation
Siegrift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
| expect(checkWithdrawalStatus()).toBe('Withdrawal request is not fulfilled yet'); | ||
|
|
||
| const balanceBefore = await sponsorBalance(); | ||
| // Use retry for balance fetches to handle transient ECONNRESET errors in CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This must have caused headaches :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh definitely a massive headache, but I hope now the issue is behind us
| code: 'invalid_format', | ||
| format: 'regex', | ||
| pattern: | ||
| '/^(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z))|(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z))|(\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z))$/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhh, this looks quite wild.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But still acceptable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct because it is how the regex is defined:
However, given how opaque this is, I added a custom error message to the schema regex: Invalid timestamp format: must be ISO and updated the test accordingly in the latest commit.
Closes #2032.
Steps:
zodandOISyarn update-ois-versionto update the OIS version used in all of the config files