fix(deps): Update dependency zod to v4 #808
Conversation
|
d3f3dc2 to
e98a216
Compare
e98a216 to
0b44fe0
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
|
down to 9 type errors. I believe they all depend on the upgrade of this dependency aws-powertools/powertools-lambda-typescript#4160 Update: thay have done it. It only needs to be released. |
|
We need to revert Notifycal/.github-private#5 once the dep bump gets reenabled. |
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
Pull request was converted to draft
3de6b74 to
99d8eb4
Compare
| "@middy/core": "^6.0.0", | ||
| "@middy/http-cors": "^6.0.0", | ||
| "@notifycal/shared": "5.1.0", | ||
| "@notifycal/shared": "file:../shared/notifycal-shared-5.1.0.tgz", |
| eventType: 'EmailToBeSentAttemptFailed' as const, | ||
| data: { | ||
| ...event.data, | ||
| errorPayload: error |
There was a problem hiding this comment.
Upgrading unmasked this bug somehow. Field errorPayload of type z.any() wasn't being set.
| eventType: 'ActionableEventReminderAttemptFailed' as const, | ||
| data: { | ||
| ...e.data, | ||
| providerErrorPayload: error |
There was a problem hiding this comment.
same here/ Upgrading unmasked this bug somehow. Field providerErrorPayload of type z.any() wasn't being set.
| subscription: z.number({ coerce: coerced }), | ||
| topup: z.number({ coerce: coerced }) | ||
| subscription: coerced ? z.coerce.number() : z.number(), | ||
| topup: coerced ? z.coerce.number() : z.number() |
There was a problem hiding this comment.
They are truly retarded. They got rid of some nice shortcut/helper
There was a problem hiding this comment.
worth creating a coercedNumberSchema somewhere in "utils"?
d477bc4 to
b3ddc2e
Compare
b3ddc2e to
5d0e8be
Compare
| if (!data || !dt.isValid) { | ||
| context.addIssue({ | ||
| code: z.ZodIssueCode.custom, | ||
| export function timezoneValidator(arg: TimeZone, ctx?: z.RefinementCtx): boolean { |
There was a problem hiding this comment.
I have adapted this cause it was already in the code base but I t not being used
| .merge(identitySchema); | ||
| export const accessTokenPayloadSchema = tokenPayloadBaseSchema.merge(ourAccessTokenClaimsSchema); | ||
| .extend(identitySchema.shape); | ||
| export const accessTokenPayloadSchema = tokenPayloadBaseSchema.extend( |
| import z from 'zod'; | ||
|
|
||
| // eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/explicit-module-boundary-types | ||
| export function dynamoDbStreamsSchema<TNewImageSchema extends z.ZodTypeAny, TConfig>( |
There was a problem hiding this comment.
do you remember the "type isntantiation is too deep and possibly infinite"? It does not happen anymore so I extracted the duplicated code that bothered me so much
| ): Promise<z.infer<typeof schema>> { | ||
| return promiseTry(() => { | ||
| const raw = queryStringToObject(objectToQueryString(queryStringFlatObject)); | ||
| // eslint-disable-next-line @typescript-eslint/no-unsafe-return |
There was a problem hiding this comment.
not needed anymore apparently

This PR contains the following updates:
^3.25.6->^4.0.0Release Notes
colinhacks/zod (zod)
v4.0.5Compare Source
v4.0.4Compare Source
v4.0.3Compare Source
v4.0.2Compare Source
v4.0.1Compare Source
Commits:
91c9ca6fix: cleanup _idmap of $ZodRegistry (#4837)9cce1c5docs: fix typo in flattenError example on error-formatting page (#4819) (#4833)a3560aev3.25.76 (#4838)5060661Release 3.25.767baee4eUpdate index.mdx (#4831)06172bfdocs: add zod2md to zodToXConverters (#4835)30e2f3eUpdate docsb748b91Add zod-openapi libraries to v4 (#4829)990e03bUpdate core.mdx (#4746)e7f20c2Fix treeifyError type for branded primitives. Add test. Closes #4840 (#4843)79d4d80v4.0.0 (#4844)00a1708Remove JSR from release.yml7c4c83cUpdate mime docsa7bd58aRemove when from paramse899016Support format in z.templateLiteralb2592114.0.1v4.0.0Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.