Skip to content

Commit

Permalink
chore(deps): update all non-major dependencies (#406)
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 | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm)) | packageManager | patch | [`9.0.4` -> `9.0.5`](https://renovatebot.com/diffs/npm/pnpm/9.0.4/9.0.5) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/pnpm/pnpm/badge)](https://securityscorecards.dev/viewer/?uri=github.com/pnpm/pnpm) |
| [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm)) | engines | patch | [`9.0.4` -> `9.0.5`](https://renovatebot.com/diffs/npm/pnpm/9.0.4/9.0.5) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/pnpm/pnpm/badge)](https://securityscorecards.dev/viewer/?uri=github.com/pnpm/pnpm) |
| [type-fest](https://github.com/sindresorhus/type-fest) | devDependencies | minor | [`4.15.0` -> `4.16.0`](https://renovatebot.com/diffs/npm/type-fest/4.15.0/4.16.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/sindresorhus/type-fest/badge)](https://securityscorecards.dev/viewer/?uri=github.com/sindresorhus/type-fest) |
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | dependencies | minor | [`3.22.5` -> `3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/colinhacks/zod/badge)](https://securityscorecards.dev/viewer/?uri=github.com/colinhacks/zod) |

---

### Release Notes

<details>
<summary>pnpm/pnpm (pnpm)</summary>

### [`v9.0.5`](https://github.com/pnpm/pnpm/compare/v9.0.4...v9.0.5)

[Compare Source](https://github.com/pnpm/pnpm/compare/v9.0.4...v9.0.5)

</details>

<details>
<summary>sindresorhus/type-fest (type-fest)</summary>

### [`v4.16.0`](https://github.com/sindresorhus/type-fest/releases/tag/v4.16.0)

[Compare Source](https://github.com/sindresorhus/type-fest/compare/v4.15.0...v4.16.0)

##### New types

-   [`IsInteger`](https://github.com/sindresorhus/type-fest/blob/main/source/is-integer.d.ts)
-   [`IsFloat`](https://github.com/sindresorhus/type-fest/blob/main/source/is-float.d.ts)

##### Fixes

-   `Integer`: Fix handling of some edge-cases ([#&#8203;857](https://github.com/sindresorhus/type-fest/issues/857))  [`f5b09de`](https://github.com/sindresorhus/type-fest/commit/f5b09de)
-   `Float`: Fix handling of some edge-cases ([#&#8203;857](https://github.com/sindresorhus/type-fest/issues/857))  [`f5b09de`](https://github.com/sindresorhus/type-fest/commit/f5b09de)

</details>

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

### [`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)! [colinhacks/zod#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)! [colinhacks/zod#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)! [colinhacks/zod#3265

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

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

Thanks [@&#8203;bchrobot](https://github.com/bchrobot) [colinhacks/zod#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)! [colinhacks/zod#3391

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

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

#### Docs and ecosystem

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

#### New Contributors

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

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

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday,before 4am on Thursday" (UTC), Automerge - At any time (no schedule defined).

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

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] 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/weareinreach/TransMascFutures).



PR-URL: #406
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
kodiakhq[bot] and renovate[bot] committed Apr 22, 2024
2 parents 310e5f2 + c1edeac commit 5da09c2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"slugify": "1.6.6",
"superjson": "2.2.1",
"ws": "8.16.0",
"zod": "3.22.5"
"zod": "3.23.0"
},
"devDependencies": {
"@faker-js/faker": "7.6.0",
Expand Down Expand Up @@ -123,13 +123,13 @@
"storybook": "8.0.8",
"tsx": "4.7.2",
"turbo": "1.13.2",
"type-fest": "4.15.0",
"type-fest": "4.16.0",
"typescript": "5.4.5"
},
"packageManager": "pnpm@9.0.4",
"packageManager": "pnpm@9.0.5",
"engines": {
"node": "20.12.2",
"pnpm": "9.0.4"
"pnpm": "9.0.5"
},
"ct3aMetadata": {
"initVersion": "7.3.2"
Expand Down
38 changes: 19 additions & 19 deletions pnpm-lock.yaml

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

0 comments on commit 5da09c2

Please sign in to comment.