8000 [pull] master from formium:master by pull[bot] · Pull Request #1 · jasonnathan/formik · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[pull] master from formium:master #1

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

Open
wants to merge 712 commits into
base: master
Choose a base branch
from

Conversation

pull[bot]
Copy link
@pull pull bot commented Aug 2, 2020

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service aliv 8000 e? 💖 Please sponsor : )

@pull pull bot added ⤵️ pull merge-conflict Resolve conflicts manually labels Aug 2, 2020
jaredpalmer and others added 28 commits September 24, 2020 14:47
Previous documentation was a repeat of that for `mapPropsToValues`
Replace all instances of the deprecated React.SFC type with React.FC
jaredpalmer and others added 28 commits May 26, 2023 15:15
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…3786)

Yup by default only allows for cross-field validation within the
same field object. This is not that useful in most scenarios because
a sufficiently-complex form will have several `yup.object()` in the
schema.

```ts
const deepNestedSchema = Yup.object({
  object: Yup.object({
    nestedField: Yup.number().required(),
  }),
  object2: Yup.object({
    // this doesn't work because `object.nestedField` is outside of `object2`
    nestedFieldWithRef: Yup.number().min(0).max(Yup.ref('object.nestedField')),
  }),
});
```

However, Yup offers something called `context` which can operate across
the entire schema when using a $ prefix:

```ts
const deepNestedSchema = Yup.object({
  object: Yup.object({
    nestedField: Yup.number().required(),
  }),
  object2: Yup.object({
    // this works because of the "context" feature, enabled by $ prefix
    nestedFieldWithRef: Yup.number().min(0).max(Yup.ref('$object.nestedField')),
  }),
});
```

With this change, you may now validate against any field in the entire schema,
regardless of position when using the $ prefix.
* improved typescript support for ArrayHelpers

* change default type to unknown[]

Co-authored-by: Alperen Turkoz <alperentrkz@gmail.com>

* chore: add changeset

---------

Co-authored-by: Alexander Magana <alexander.jm28@gmail.com>
Co-authored-by: Alperen Turkoz <alperentrkz@gmail.com>
Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
…lize is falsy (#3639) (#3793)

* Fix infinite renders when initialValues prop changes (#3639)

* chore: add changeset

---------

Co-authored-by: Adam Clason <adam@mokucollective.com>
fix link to `validate` (`FieldHookConfig<Value>` field) doc

Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
add ".md" extention for `[useFormikContext](useFormikContext.md)`

Co-authored-by: Evan Jacobs <570070+probablyup@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Evan Jacobs <570070+probablyup@users.noreply.github.com>
* Fix getIn unexpected value

As described in #3181

* Add changeset #3237

* Fix formating, add some test for getIn utils function

#3181

* Correct test path getIn

#3181

---------

Co-authored-by: Evan Jacobs <570070+probablyup@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Fixed the use of generics for the `ArrayHelpers` type such that `any[]` is the default array type and for each individual method the array item type can be overridden if necessary.

Fixes #3797
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Move to turbo

* Remove lerna flags

* Rename dev -> start

* Fix prepublish
* Move to playwright for testing

* Get rid of codeql
@jaredpalmer jaredpalmer deleted the branch jasonnathan:master May 28, 2023 16:29
@jaredpalmer jaredpalmer deleted the master branch May 28, 2023 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0