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

bump(deps): update dependency @floating-ui/react-dom to v2 #1904

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 14, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@floating-ui/react-dom (source) ^1.3.0 -> ^2.1.2 age adoption passing confidence

Release Notes

floating-ui/floating-ui (@​floating-ui/react-dom)

v2.1.2

Compare Source

Patch Changes
  • fix(useFloating): avoid setting isPositioned to true when open is false

v2.1.1

Compare Source

Patch Changes
  • refactor: improve types and internal codebase consistency. All documented types are now exported.

v2.1.0

Compare Source

Minor Changes
  • feat: support dependency array as a second argument of all middleware. This ensures stateful options can be kept reactive when making them derived (passing a function that returns the options):
const [value, setValue] = React.useState(0);

const offset1 = offset(value); // reactive
const offset2 = offset(() => value); // NOT reactive
const offset3 = offset(() => value, [value]); // reactive

This also includes size's apply function:

size(
  {
    apply() {
      value; // reactive
    },
  },
  [value],
);

v2.0.9

Compare Source

Patch Changes
  • fix(types): replace React_2 with React in generated .d.ts files

v2.0.8

Compare Source

Patch Changes

v2.0.7

Compare Source

Patch Changes

v2.0.6

Compare Source

Patch Changes
  • d3a773b: fix: make whileElementsMounted reactive with respect from changing from a function to undefined

v2.0.5

Compare Source

Patch Changes

v2.0.4

Compare Source

Patch Changes
  • 9d22d83: fix: package type import

v2.0.3

Compare Source

Patch Changes
  • c1965f6: refactor: minor jsdoc/type improvements

v2.0.2

Compare Source

Bug Fixes

  • fix(types): import types from dom instead of core (#​2513)

v2.0.1

Compare Source

Bug Fixes

  • fix: adjust types for new function options feature in core/dom 1.3.0 (#​2359)

v2.0.0

Compare Source

This release aims to simplify the API and remove some deprecated properties. If you've been using the refs.set* functions since their addition in January (1.2.0), then you can freely upgrade without changing any of your code.

Breaking Changes

  • Default x and y coordinates to 0 instead of null (#​2300)

    isPositioned lets you know if the floating element has been positioned.

  • Remove deprecated top-level reference and floating ref setters (#​2300)

    These are in the refs object:

    • reference -> refs.setReference
    • floating -> refs.setFloating
  • whileElementsMounted type requires cleanup function (#​2300)

New Features

  • feat: floatingStyles object (#​2300)

    Pre-configured positioning styles for the majority of cases:

    const {refs, floatingStyles} = useFloating();
    return <div ref={refs.setFloating} style={floatingStyles} />;
  • feat: external element synchronization in the hook (#​2300)

    Avoid using layout effects:

    const {refs} = useFloating({
      elements: {
        // Either can be specified optionally
        reference: referenceElement,
        floating: floatingElement,
      },
    });
    
    // refs.setReference / refs.setFloating can be mix and matched

Bug Fixes

  • fix(types): allow null for arrow's element option (#​2300)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.

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


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

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

Copy link

netlify bot commented Nov 14, 2023

Deploy Preview for defi-scan failed.

Name Link
🔨 Latest commit 0dcf774
🔍 Latest deploy log https://app.netlify.com/sites/defi-scan/deploys/6707cd8bf826a5000804e7c5

@github-actions github-actions bot added the kind/dependencies Pull requests that update a dependency file label Nov 14, 2023
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch 3 times, most recently from 864fc93 to 7d8a636 Compare November 29, 2023 02:50
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch 9 times, most recently from bb26fc4 to 5ecc8be Compare December 6, 2023 07:07
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch 2 times, most recently from 7bd587a to 1c62656 Compare January 6, 2024 09:46
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch from 1c62656 to f7078d1 Compare January 16, 2024 14:27
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch 3 times, most recently from 8fdd9f3 to b1bec52 Compare February 2, 2024 03:46
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch from b1bec52 to 5ab3070 Compare February 2, 2024 04:56
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch from 5ab3070 to db5ecd0 Compare March 4, 2024 09:29
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch 2 times, most recently from 4885458 to dae73e6 Compare April 1, 2024 05:26
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch 2 times, most recently from b9d7a26 to 0b22808 Compare April 30, 2024 02:31
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch from 0b22808 to 8cd04a3 Compare May 20, 2024 06:23
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch from 8cd04a3 to 58187c8 Compare June 25, 2024 04:56
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch from 58187c8 to 8a1ee7a Compare July 5, 2024 09:43
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch from 8a1ee7a to db879f6 Compare August 27, 2024 05:59
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch 2 times, most recently from 7037bf1 to 50b850c Compare September 15, 2024 07:13
@renovate renovate bot force-pushed the renovate/floating-ui-react-dom-2.x branch from 50b850c to 0dcf774 Compare October 10, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants