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: bump versions #1271

Merged
merged 1 commit into from
Feb 4, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 1, 2024

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

Releases

@vue-flow/core@1.31.0

Minor Changes

  • #1271 1e60944 Thanks @github-actions! - Add useNodeId composable

    🧙 Example

    const nodeId = useNodeId();
    
    console.log("nodeId", nodeId); // '1'
  • #1271 299408f Thanks @github-actions! - Add updateNode action

    🧙 Example

    const { updateNode } = useVueFlow();
    
    updateNode("1", { position: { x: 100, y: 100 } });
    
    // or using a function to update the node
    updateNode("1", (node) => ({ ...node, position: { x: 100, y: 100 } }));
    
    // passing options - `replace` will replace the node instead of merging it
    updateNode(
      "1",
      { id: "1", label: "Node 1", position: { x: 100, y: 100 } },
      { replace: true }
    );
  • #1271 eae2118 Thanks @github-actions! - Call onNodesInitialized whenever areNodesInitialized is true instead of only once

  • #1271 36ffa3f Thanks @github-actions! - Omit events in nodes and edges when returning them from toObject

  • #1271 85536ed Thanks @github-actions! - Add useHandleConnections composable

    🧙 Example

    const connections = useHandleConnections({
      // type of the handle you are looking for - accepts a `MaybeRefOrGetter<string>`
      type: "source",
    
      // the id of the handle you are looking for - accepts a `MaybeRefOrGetter<string | undefined> | undefined` [OPTIONAL]
      id: "a",
    
      // if not provided, the node id from the NodeIdContext is used - accepts a `MaybeRefOrGetter<string | undefined> | undefined`
      nodeId: "1",
    
      // a cb that is called when a new connection is added
      onConnect: (params) => {
        console.log("onConnect", params);
      },
    
      // a cb that is called when a connection is removed
      onDisconnect: (params) => {
        console.log("onDisconnect", params);
      },
    });
    
    watch(
      connections,
      (next) => {
        console.log("connections", next);
      },
      { immediate: true }
    );
  • #1271 4bce8c9 Thanks @github-actions! - Find handle by id regardless of number of handles that exist

  • #1271 85536ed Thanks @github-actions! - Add connectionLookup to state

  • #1271 3b02809 Thanks @github-actions! - Add onInit hook and deprecate onPaneReady

  • #1271 299408f Thanks @github-actions! - Add updateNodeData action

    🧙 Example

    const { updateNodeData } = useVueFlow();
    
    updateNodeData("1", { foo: "bar" });
    
    // or using a function to update the data
    updateNodeData("1", (data) => ({ ...data, foo: "bar" }));
    
    // passing options - `replace` will replace the data instead of merging it
    updateNodeData("1", { foo: "bar" }, { replace: true });
  • #1271 823956e Thanks @github-actions! - Add useNodesData composable

    🧙 Example

    Single node id

    const nodeId = "1";
    
    const data = useNodesData(nodeId);
    
    console.log(data.value); // '[{ /* ... */ }]

    Array of node ids

    const nodeIds = ["1", "2", "3"];
    
    const data = useNodesData(nodeIds);
    
    console.log(data.value); // '[{ /* ... */ }]

    Asserting data type

    import type { Node } from "@vue-flow/core";
    
    interface Data {
      foo: string;
      bar: string;
    }
    
    type MyNode = Node<CustomNodeData>;
    
    const nodeId = "1";
    
    const data = useNodesData([nodeId], (node): node is MyNode => {
      return "foo" in node.data && "bar" in node.data;
    });
    
    console.log(data.value); // '[{ /* foo: string; bar: string */ }]
  • #1271 99fa4fd Thanks @github-actions! - Call fitViewOnInit when initial node dimensions are available

  • #1271 9f8607f Thanks @github-actions! - Deprecate events property on nodes and edges

  • #1278 ecff6f6 Thanks @bcakmakoglu! - Add error args to VueFlowError

  • #1271 3f60a80 Thanks @github-actions! - Replace Array.forEach loops with for...of

  • #1278 ecff6f6 Thanks @bcakmakoglu! - Export isErrorOfType typeguard to narrow the type of a VueFlowError and infer it's args

Patch Changes

  • #1295 4a5aa14 Thanks @bcakmakoglu! - When updating nodes or edges by overwriting the original array, update the nodes and edges in the state by using them as the target for Object.assign. This keeps reference in-tact and ensures reactivity when these objects are changed/updated

  • #1271 bbee266 Thanks @github-actions! - Update node dimensions on next tick

Copy link

vercel bot commented Feb 1, 2024

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

Name Status Preview Comments Updated (UTC)
vue-flow-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2024 9:12pm
vue-flow-typedoc ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2024 9:12pm

@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 1, 2024 10:30 Inactive
@bcakmakoglu bcakmakoglu self-assigned this Feb 1, 2024
@bcakmakoglu bcakmakoglu added the release Related to a release label Feb 1, 2024
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from 560b561 to fb93580 Compare February 1, 2024 10:42
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 1, 2024 10:46 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from fb93580 to 63b8cc0 Compare February 1, 2024 10:58
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 1, 2024 11:04 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from 63b8cc0 to 69f4ca6 Compare February 1, 2024 18:06
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 1, 2024 18:07 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from 69f4ca6 to 6a0ff96 Compare February 1, 2024 18:47
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 1, 2024 18:52 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from 6a0ff96 to 929f03f Compare February 1, 2024 18:57
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 1, 2024 19:08 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from 929f03f to dba967a Compare February 1, 2024 23:47
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 1, 2024 23:52 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from dba967a to 6dd065b Compare February 3, 2024 11:23
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 3, 2024 11:31 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from 6dd065b to d0a3e56 Compare February 3, 2024 12:06
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from e3ea4d3 to 679a0c7 Compare February 4, 2024 17:47
@github-actions github-actions bot force-pushed the changeset-release/next-release branch 3 times, most recently from 5368809 to c586956 Compare February 4, 2024 18:00
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 4, 2024 18:07 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from c586956 to aaaa676 Compare February 4, 2024 18:48
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 4, 2024 18:51 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from aaaa676 to de75d51 Compare February 4, 2024 19:14
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 4, 2024 19:16 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from de75d51 to 7697f04 Compare February 4, 2024 19:19
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 4, 2024 19:23 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from 7697f04 to cbedc2f Compare February 4, 2024 20:39
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 4, 2024 20:44 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from cbedc2f to 98364dd Compare February 4, 2024 21:03
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 4, 2024 21:06 Inactive
@github-actions github-actions bot force-pushed the changeset-release/next-release branch from 98364dd to 59f7a3a Compare February 4, 2024 21:06
@vercel vercel bot temporarily deployed to Preview – vue-flow-typedoc February 4, 2024 21:11 Inactive
@bcakmakoglu bcakmakoglu merged commit 4375290 into next-release Feb 4, 2024
4 checks passed
@bcakmakoglu bcakmakoglu deleted the changeset-release/next-release branch February 4, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Related to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant