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

chore(deps): update docs-demos #4262

Merged
merged 1 commit into from
Oct 29, 2024
Merged

chore(deps): update docs-demos #4262

merged 1 commit into from
Oct 29, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 29, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-hook-form (source) 7.51.2 -> 7.53.1 age adoption passing confidence
zod (source) 3.22.4 -> 3.23.8 age adoption passing confidence

Release Notes

react-hook-form/react-hook-form (react-hook-form)

v7.53.1: Version 7.53.1

Compare Source

🔧 chore: upgrade eslint to v9 (#​12150)
🐞 fix: #​12294 ensure Invalid Date is evaluated correctly (#​12295)
🐞 fix #​12316 setValue should work for arrays of primitives to handle checkboxes (#​12316) (#​12317)
🐞 fix #​12097 Use dirty fields along with mount names for form reset with keepDirtyValues (#​12211)
🫀 fix #​12237 disabled state trigger formState dirty/dirtyFields to update (#​12239)
📝 improve flatten function with object type check (#​12306)
🐞 fix #​12291 field array remove cause undefined with FormData (#​12305)
🖐️ improve: resolve type of set function (#​12145)
📖 fix: code example input field placeholder name (#​12296)
📖 docs: fix typo in code example (#​12271)

thanks to @​rasikhq @​abnud11 @​crypt0box @​developer-bandi @​matmannion @​hasancruk & @​vismay7

v7.53.0

Compare Source

v7.52.2

Compare Source

👍 close #​12108 useController should subscribe to exact field name of form's state (#​12109)
👍 chore: upgrade app deps
🩻 fix: add useCallback for ref callback (#​12078)
🚀 fix: skip call executeBuiltInValidation if no sub-fields left (#​12054)

thanks to @​newsiberian, @​Wendystraite and @​abnud11

v7.52.1: v7.51.1

Compare Source

🐞 fix #​12024 dirty not update issue with values prop (#​12041)
🐞 fix: field array validate rules shift errors (#​12033)

thanks to @​JardelCheung

v7.52.0

Compare Source

⚛️ close #​11932 enable react 19 peer dependency (#​11935)
👮‍♀️ close #​11954 getFieldState remove unnessaried inValidating and touched subscription (#​11995)
🐞 fix #​11985 logic createFormControl check field before usage (#​11986)
⌨️ fix: enforce type safety for deps property in RegisterOptions (#​11969)
🐞 fix #​11922 keep dirty on reset with dirty fields (#​11958)
🚔 close #​11937 add validation in the cleanup process in useController (#​11938)
Revert "⌨️ close: correct type of error field in getFieldState return object (#​11831)"
📖 fix: change info.values type in WatchObserver (#​11917)

thanks to @​nakaakist, @​IdoBouskila, @​pincy and @​peinguin

v7.51.5

Compare Source

📖 fix broken link to examples in README.md (#​11805)
⌨️ close: correct type of error field in getFieldState return object (#​11831)
🐞 fix #​11842 radio buttons not disabled when multiple share a name (#​11873)
🐞 fix #​11821 set value with disabled false before mount (#​11880)
🐞 fix setError to preserve existing errors elsewhere in the object (#​11888)
⌨️ fix: add info.value type to WatchObserver (#​11872)
🫡 fix issue with internal set api (#​11915)

thanks to @​mjr2595 @​erashu212 @​SimonJTurner and @​peinguin

v7.51.4: Version 7.51.4

Compare Source

👹 close #​11778 improve unregister omit key with getValues method (#​11779)
🐞 fix #​11794 issue: Fields dirty state is not updated when passing values to useForm

v7.51.3

Compare Source

colinhacks/zod (zod)

v3.23.8

Compare Source

Commits:

v3.23.7

Compare Source

v3.23.6

Compare Source

v3.23.5

Compare Source

v3.23.4

Compare Source

Commits:

v3.23.3

Compare Source

v3.23.2

Compare Source

Commits:

v3.23.1

Compare Source

v3.23.0

Compare Source

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

npm install zod

Features

z.string().date()

Zod can now validate ISO 8601 date strings. Thanks @​igalklebanov! https://github.com/colinhacks/zod/pull/1766

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

Zod can now validate ISO 8601 time strings. Thanks @​igalklebanov! https://github.com/colinhacks/zod/pull/1766

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

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

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 @​mastermatt! https://github.com/colinhacks/zod/pull/3265

const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
Improvements to z.string().datetime()

Thanks @​bchrobot https://github.com/colinhacks/zod/pull/2522

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

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 @​szamanr! https://github.com/colinhacks/zod/pull/3391

z.string().base64()

Zod can now validate base64 strings. Thanks @​StefanTerdell! https://github.com/colinhacks/zod/pull/3047

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
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

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

+  | 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.

- 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

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

Bugfixes and performance

Docs and ecosystem

New Contributors

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

v3.22.5

Compare Source


Configuration

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

🚦 Automerge: Enabled.

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 if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) October 29, 2024 07:51
renovate-approve[bot]
renovate-approve bot previously approved these changes Oct 29, 2024
Copy link

changeset-bot bot commented Oct 29, 2024

⚠️ No Changeset found

Latest commit: 9de14f7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marigold-docs 🛑 Canceled (Inspect) Oct 29, 2024 0:26am
marigold-storybook 🛑 Canceled (Inspect) Oct 29, 2024 0:26am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
marigold-production ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Oct 29, 2024 0:26am

@github-actions github-actions bot added the type:docs Improvements or additions to documentation label Oct 29, 2024
Copy link
Contributor

github-actions bot commented Oct 29, 2024

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
99.27% (+0.12% 🔼)
8026/8085
🟢 Branches
89.53% (-0.22% 🔻)
359/401
🟢 Functions 99.24% 130/131
🟢 Lines
99.27% (+0.12% 🔼)
8026/8085
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / Checkbox.tsx
100% (+1.52% 🔼)
84.62% (-7.05% 🔻)
100%
100% (+1.52% 🔼)
🟢
... / Headline.tsx
100%
50% (-50% 🔻)
100% 100%
🟢
... / Input.tsx
98.72% (-1.28% 🔻)
80% (-20% 🔻)
100%
98.72% (-1.28% 🔻)
🟢
... / Text.tsx
100%
33.33% (-11.11% 🔻)
100% 100%

Test suite run success

576 tests passing in 78 suites.

Report generated by 🧪jest coverage report action from 9de14f7

@renovate renovate bot force-pushed the renovate/docs-demos branch 4 times, most recently from 29e59f4 to 59a7f7c Compare October 29, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants