@flowdrop/flowdrop 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.0.1] - 2026-08-14
11
+
12
+ ### Fixed
13
+
14
+ - `dynamicPortToNodePort()` rendered a blank port label when a dynamic port was supplied without a `label`; it now falls back to the port's `name`. `DynamicPort.label` is accordingly now optional in the type definition.
15
+
10
16
  ## [2.0.0] - 2026-08-04
11
17
 
12
18
  **FlowDrop 2.0 GA.** The `latest` dist-tag moves from 1.15.0 to 2.0.0; `npm install @flowdrop/flowdrop` now installs 2.x. Upgrading from 1.x is a breaking change — read [MIGRATION-2.0.md](./MIGRATION-2.0.md) first.
@@ -196,8 +196,8 @@ export type PortCoordinateMap = Map<string, PortCoordinate>;
196
196
  export interface DynamicPort {
197
197
  /** Unique identifier for the port (used for handle IDs and connections) */
198
198
  name: string;
199
- /** Display label shown in the UI */
200
- label: string;
199
+ /** Display label shown in the UI (optional, defaults to name) */
200
+ label?: string;
201
201
  /** Description of what this port accepts/provides */
202
202
  description?: string;
203
203
  /** Data type for the port (affects color and connection validation) */
@@ -14,7 +14,7 @@ export const DEFAULT_WORKFLOW_FORMAT = 'flowdrop';
14
14
  export function dynamicPortToNodePort(port, portType) {
15
15
  return {
16
16
  id: port.name,
17
- name: port.label,
17
+ name: port.label ?? port.name,
18
18
  type: portType,
19
19
  dataType: port.dataType,
20
20
  required: port.required ?? false,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A drop-in visual workflow editor for any web application. You own the backend. You own the data. You own the orchestration.",
4
4
  "license": "MIT",
5
5
  "private": false,
6
- "version": "2.0.0",
6
+ "version": "2.0.1",
7
7
  "author": "Shibin Das (D34dMan)",
8
8
  "bugs": {
9
9
  "url": "https://github.com/flowdrop-io/flowdrop/issues"