Skip to content

Commit

Permalink
Update dependency zod to v3.23.4 (#62)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.4` ->
`3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-
[`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7)
Add 3.23 announcement
-
[`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1)
Revert change to default Input
-
[`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4)
v3.23.4

###
[`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

###
[`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-
[`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3)
Update protocol
-
[`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0)
Fix t3env
-
[`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df)
3.23.2

###
[`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://github.com/colinhacks/zod/compare/e7a9b9b3033991be6b4225f1be21da39c250bbb0...v3.23.0)

Zod 3.23 is now available. This is the final `3.x` release before Zod
4.0. To try it out:

```sh
npm install zod
```

#### Features

##### `z.string().date()`

Zod can now validate ISO 8601 date strings. Thanks
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://github.com/colinhacks/zod/pull/1766)

```ts
const schema = z.string().date();
schema.parse("2022-01-01"); // OK
```

##### `z.string().time()`

Zod can now validate ISO 8601 time strings. Thanks
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://github.com/colinhacks/zod/pull/1766)

```ts
const schema = z.string().time();
schema.parse("12:00:00"); // OK
```

You can specify sub-second precision using the `precision` option:

```ts
const schema = z.string().time({ precision: 3 });
schema.parse("12:00:00.123"); // OK
schema.parse("12:00:00.123456"); // Error
schema.parse("12:00:00"); // Error
```

##### `z.string().duration()`

Zod can now validate ISO 8601 duration strings. Thanks
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)

You can now allow *unqualified* (timezone-less) datetimes using the
`local: true` flag.

```ts
const schema = z.string().datetime({ local: true });
schema.parse("2022-01-01T12:00:00"); // OK
```

Plus, Zod now validates the day-of-month correctly to ensure no invalid
dates (e.g. February 30th) pass validation. Thanks
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://github.com/colinhacks/zod/pull/3047)

```ts
const schema = z.string().base64();
schema.parse("SGVsbG8gV29ybGQ="); // OK
```

##### Improved discriminated unions

The following can now be used as discriminator keys in
`z.discriminatedUnion()`:

-   `ZodOptional`
-   `ZodNullable`
-   `ZodReadonly`
-   `ZodBranded`
-   `ZodCatch`

```ts
const schema = z.discriminatedUnion("type", [
  z.object({ type: z.literal("A").optional(), value: z.number() }),
  z.object({ type: z.literal("B").nullable(), value: z.string() }),
  z.object({ type: z.literal("C").readonly(), value: z.boolean() }),
  z.object({ type: z.literal("D").brand<"D">(), value: z.boolean() }),
  z.object({ type: z.literal("E").catch("E"), value: z.unknown() }),
]);
```

##### Misc

- feature: allow falsy error message by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://github.com/colinhacks/zod/pull/3169)

#### Breaking changes

There are no breaking changes to the public API of Zod. However some
changes can impact ecosystem tools that rely on Zod internals.

##### `ZodFirstPartySchemaTypes`

Three new types have been added to the `ZodFirstPartySchemaTypes` union.
This may impact some codegen libraries.
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)

```diff
+  | ZodPipeline<any, any>
+  | ZodReadonly<any>
+  | ZodSymbol;
```

##### Default generics in `ZodType`

The third argument of the `ZodType` base class now defaults to
`unknown`. This makes it easier to define recursive schemas and write
generic functions that accept Zod schemas.

```diff
- class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {}
+ class ZodType<Output = unknown, Def extends ZodTypeDef = ZodTypeDef, Input = unknown> {}
```

##### Unrecognized keys in `.pick()` and `.omit()`

This version fixes a bug where unknown keys were accidentally accepted
in `.pick()` and `omit()`. This has been fixed, which could cause
compiler errors in some user code.
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)

```ts
z.object({ 
  name: z.string() 
}).pick({
  notAKey: true // no longer allowed
})
```

#### Bugfixes and performance

- Bugfix: Enum.extract/exclude should not remove error mapping by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

###
[`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Chicago, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/autoblocksai/cli).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nicole White <[email protected]>
  • Loading branch information
renovate[bot] and Nicole White authored May 3, 2024
1 parent 6a84048 commit d96113c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/handlers/testing/align/util/hono-app.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { zValidator } from '@hono/zod-validator';
import { Hono, type Context } from 'hono';
import { SafeParseReturnType, z } from 'zod';
import { type ZodError, z } from 'zod';
import { Language } from './models';
import { SessionManager } from './session-manager';

const handleValidationResult = (
result: SafeParseReturnType<unknown, unknown>,
result: { success: boolean; error?: ZodError<unknown> },
c: Context,
) => {
if (!result.success) {
Expand Down
6 changes: 3 additions & 3 deletions src/handlers/testing/exec/util/hono-app.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { zValidator } from '@hono/zod-validator';
import { Hono, type Context } from 'hono';
import { SafeParseReturnType, z } from 'zod';
import { type ZodError, z } from 'zod';
import { EventName, emitter } from './emitter';
import { RunManager } from './run-manager';

Expand All @@ -23,7 +23,7 @@ export function createHonoApp(runManager: RunManager): Hono {
});

const handleValidationResult = (
result: SafeParseReturnType<unknown, unknown>,
result: { success: boolean; error?: ZodError<unknown> },
c: Context,
) => {
if (!result.success) {
Expand Down Expand Up @@ -134,7 +134,7 @@ export function createHonoApp(runManager: RunManager): Hono {
z.object({
testExternalId: z.string(),
testCaseHash: z.string(),
testCaseBody: z.unknown(),
testCaseBody: z.record(z.string(), z.unknown()),
testCaseOutput: z.unknown(),
testCaseDurationMs: z.number().min(0).nullish(),
testCaseRevisionUsage: z
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/testing/exec/util/run-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export class RunManager {
async handleTestCaseResult(args: {
testExternalId: string;
testCaseHash: string;
testCaseBody?: unknown;
testCaseBody: Record<string, unknown>;
testCaseOutput?: unknown;
testCaseDurationMs?: number | null;
testCaseRevisionUsage?:
Expand Down

2 comments on commit d96113c

@github-actions
Copy link

Choose a reason for hiding this comment

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

FAILED  •  🕐 6s  •  🏗️ E2E / ts (#534)  •  ➡️ View in Autoblocks


🔴  typescript-e2e-test-suite-1

Evaluators            Test Cases
-------------------------------------------
has-all-substrings    3 PASSED     1 FAILED
is-friendly           4 PASSED     0 FAILED

🔴  typescript-e2e-test-suite-2

Evaluators            Test Cases
--------------------------------------------
has-all-substrings     7 PASSED     3 FAILED
is-friendly           10 PASSED     0 FAILED

Generated by Autoblocks against d96113c

@github-actions
Copy link

Choose a reason for hiding this comment

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

FAILED  •  🕐 6s  •  🏗️ E2E / py (#534)  •  ➡️ View in Autoblocks


🔴  python-e2e-test-suite-1

Evaluators            Test Cases
-------------------------------------------
has-all-substrings    2 PASSED     2 FAILED
is-friendly           4 PASSED     0 FAILED

🔴  python-e2e-test-suite-2

Evaluators            Test Cases
--------------------------------------------
has-all-substrings     9 PASSED     1 FAILED
is-friendly           10 PASSED     0 FAILED

Generated by Autoblocks against d96113c

Please sign in to comment.