koralium / flowtide

Streaming integration engine
https://koralium.github.io/flowtide/
Apache License 2.0
28 stars 2 forks source link

[Snyk] Upgrade reactflow from 11.9.4 to 11.10.1 #176

Closed Ulimo closed 5 months ago

Ulimo commented 9 months ago

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade reactflow from 11.9.4 to 11.10.1.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is **2 versions** ahead of your current version. - The recommended version was released **24 days ago**, on 2023-11-10.
Release notes
Package name: reactflow
  • 11.10.1 - 2023-11-10

    Patch Changes

    Just a tiny fix for Typescript users who want to use the new screenToFlowPosition and flowToScreenPosition function of useReactFlow.

    • #3605 e71dec26 - fix(react-flow-instance): add screenToFlow and flowToScreen types
    • Updated dependencies [e71dec26]:
      • @ reactflow/core@11.10.1
      • @ reactflow/background@11.3.6
      • @ reactflow/controls@11.2.6
      • @ reactflow/minimap@11.7.6
      • @ reactflow/node-resizer@2.2.6
      • @ reactflow/node-toolbar@1.3.6
  • 11.10.0 - 2023-11-10

    Upcoming v12

    We want to make the migration for v12 as smooth as possible. That's why we added deprecation warnings for the following util functions:

    Deprecations / Renamings

    Rename useReactFlow.project to useReactFlow.screenToFlowPosition

    ⚠️ changes: no need to subtract react flow bounds anymore!

    before:

    const reactFlowBounds = reactFlowWrapper.current.getBoundingClientRect();
    
    const position = reactFlowInstance.project({
      x: event.clientX - reactFlowBounds.left,
      y: event.clientY - reactFlowBounds.top,
    });

    after:

    const position = reactFlowInstance.screenToFlowPosition({
      x: event.clientX,
      y: event.clientY,
    });

    Rename getTransformForBounds to getViewportForBounds

    ⚠️ changes: returns { x: number, y: number, zoom: number } instead of [number, number, number].

    before:

    const [x, y, zoom] = getTransformForBounds(bounds, width, height, 0.5, 2)

    after:

    const {x, y, zoom} = getViewportForBounds(bounds, width, height, 0.5, 2)

    Rename getRectOfNodes to getNodesBounds

    no changes, just a renaming.

    New features

    • added useReactFlow.flowToScreenPosition

    Minor Changes

    • #3597 a114c75b Thanks - chore(utils): add renamed functions and deprecations, add useReactFlow.flowToScreenPosition

    Patch Changes

  • 11.9.4 - 2023-10-16
from reactflow GitHub release notes

**Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.* For more information: 🧐 [View latest project report](https://app.snyk.io/org/ulimo/project/b461d3ea-3e00-4830-b20d-d7973a045a73?utm_source=github&utm_medium=referral&page=upgrade-pr) 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/ulimo/project/b461d3ea-3e00-4830-b20d-d7973a045a73/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/ulimo/project/b461d3ea-3e00-4830-b20d-d7973a045a73/settings/integration?pkg=reactflow&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)