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: release #3948

Merged
merged 1 commit into from
Jul 3, 2024
Merged

chore: release #3948

merged 1 commit into from
Jul 3, 2024

Conversation

scaleway-bot
Copy link
Collaborator

@scaleway-bot scaleway-bot commented Jul 3, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@ultraviolet/form@3.0.0

Major Changes

  • #3780 64af9b3 Thanks @johnrazeur! - ## Accept control prop

    Field can accept a control prop. When this prop is provided, the name prop must be present in the form and the onChange callback is typed.

    Remove defaultValues

    You must use the useForm hook to provide initial values:

    // Old
    <Form defaultValues={{ foo: 'bar' }}>
      // ...
    </Form>
    
    // New
    const methods = useForm({ defaultValues: { foo: 'bar' }})
    
    <Form methods={methods}>
      // ...
    </Form>

    Remove function as child component

    Function as child component must be remove:

    // Old
    <Form>
      {({ isSubmitting }) => (
      <Button disabled={isSubmitting}>Submit</Button>
      )}
    </Form>
    
    // New
    const methods = useForm()
    
    const { isSubmitting } = methods.formState
    
    <Form methods={methods}>
      <Button disabled={isSubmitting}>Submit</Button>
    </Form>

    onRawSubmit renamed to onSubmit

    The onRawSubmit is renamed to onSubmit.

    The return of the function is now a string if an error occurred.

    // Old
    <Form onRawSubmit={(values) => {
      return { [FORM_ERROR]: 'ERROR' }
    }}>
      // ...
    </Form>
    
    // New
    <Form onSubmit={(values) => {
        return 'ERROR'
    }}>
      // ...
    </Form>

Patch Changes

@ultraviolet/illustrations@3.1.0

Minor Changes

@ultraviolet/plus@0.18.0

Minor Changes

Patch Changes

@ultraviolet/ui@1.57.1

Patch Changes

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.64%. Comparing base (b1e5948) to head (ef82008).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3948   +/-   ##
=======================================
  Coverage   93.64%   93.64%           
=======================================
  Files         188      188           
  Lines        6030     6030           
  Branches     2676     2713   +37     
=======================================
  Hits         5647     5647           
  Misses        383      383           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1e5948...ef82008. Read the comment docs.

@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from 4c45f3c to 9918743 Compare July 3, 2024 13:29
@matthprost matthprost merged commit d61d6a2 into main Jul 3, 2024
10 checks passed
@matthprost matthprost deleted the changeset-release/main branch July 3, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants