@runtypelabs/react-flow 0.3.62 → 0.4.0

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.
@@ -1,7 +1,4 @@
1
-
2
- > @runtypelabs/react-flow@0.3.62 build /home/runner/_work/core/core/packages/react-flow
3
- > tsup
4
-
1
+ $ tsup
5
2
  CLI Building entry: src/index.ts
6
3
  CLI Using tsconfig: tsconfig.json
7
4
  CLI tsup v8.5.1
@@ -10,7 +7,7 @@
10
7
  CLI Cleaning output folder
11
8
  CJS Build start
12
9
  ESM Build start
13
- ESM dist/index.mjs 101.50 KB
14
- ESM ⚡️ Build success in 364ms
15
- CJS dist/index.js 105.55 KB
16
- CJS ⚡️ Build success in 367ms
10
+ CJS dist/index.js 105.62 KB
11
+ CJS ⚡️ Build success in 514ms
12
+ ESM dist/index.mjs 101.56 KB
13
+ ESM ⚡️ Build success in 515ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # @runtypelabs/react-flow
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fa6d18a: feat(flow-steps): add `get-record` and `list-records` step types, deprecate `retrieve-record`
8
+
9
+ `retrieve-record` derives its return shape (single object vs. array) from the lookup method, which is unintuitive and a common source of `{{var.field}}` resolving to `undefined`. Cardinality is now a property of the step **type**: `get-record` always returns a single record object (fails if no match), `list-records` always returns an array (newest-first, `limit` default 50 / max 1000, `onEmpty: 'succeed' | 'fail'`).
10
+ - **Engine (api + runtime)**: `retrieve-record` is resolved to its successor by a single pure alias (`resolveRetrieveRecordAlias`) at the normalizer seam, so both legacy executors are removed and saved / published / inline flows execute through the new `get-record` / `list-records` executors with behavior preserved (query mode → `list-records` with `limit: 1000` + `onEmpty: 'fail'`; id mode → `get-record`). SSE step events emit the resolved type for aliased steps.
11
+ - **Validation**: `validate_flow` emits a non-blocking `DEPRECATED_STEP_TYPE` warning for `retrieve-record` naming the successor its config resolves to, and the array/object-access warning code was renamed `RETRIEVE_RECORD_ARRAY_OBJECT_ACCESS` → `LIST_RECORDS_OBJECT_ACCESS`.
12
+ - **MCP**: `create_flow` / `update_flow` / `validate_flow` step-config guidance now documents both new types and marks `retrieve-record` as deprecated.
13
+ - **Client SDK**: `FlowBuilder`/`RuntypeFlowBuilder` gain `getRecord()` and `listRecords()` methods (plus `GetRecordStepConfig` / `ListRecordsStepConfig` types); `retrieveRecord()` is marked `@deprecated` but continues to work unchanged.
14
+ - **react-flow**: `get-record` and `list-records` are added to `FlowStepType` with display labels ("Get record" / "List records").
15
+
16
+ `retrieve-record` is still accepted everywhere for backward compatibility — this is additive, no breaking changes.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [1422e92]
21
+ - Updated dependencies [d0df6a8]
22
+ - Updated dependencies [de60a30]
23
+ - Updated dependencies [4c17349]
24
+ - Updated dependencies [f89cb41]
25
+ - Updated dependencies [9736850]
26
+ - Updated dependencies [8f13a37]
27
+ - Updated dependencies [fa6d18a]
28
+ - Updated dependencies [9002f51]
29
+ - Updated dependencies [4520c60]
30
+ - Updated dependencies [49d599f]
31
+ - Updated dependencies [9cbdba8]
32
+ - Updated dependencies [b82d8f1]
33
+ - Updated dependencies [edae98b]
34
+ - @runtypelabs/sdk@5.8.0
35
+
36
+ ## 0.3.63
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [fd2e18e]
41
+ - @runtypelabs/sdk@5.7.0
42
+
3
43
  ## 0.3.62
4
44
 
5
45
  ### Patch Changes
package/dist/index.js CHANGED
@@ -300,6 +300,8 @@ function getDefaultStepName(type) {
300
300
  crawl: "Crawl Website",
301
301
  "fetch-url": "Fetch URL",
302
302
  "retrieve-record": "Retrieve Record",
303
+ "get-record": "Get Record",
304
+ "list-records": "List Records",
303
305
  "fetch-github": "Fetch GitHub",
304
306
  "api-call": "API Call",
305
307
  "transform-data": "Transform Data",
package/dist/index.mjs CHANGED
@@ -298,6 +298,8 @@ function getDefaultStepName(type) {
298
298
  crawl: "Crawl Website",
299
299
  "fetch-url": "Fetch URL",
300
300
  "retrieve-record": "Retrieve Record",
301
+ "get-record": "Get Record",
302
+ "list-records": "List Records",
301
303
  "fetch-github": "Fetch GitHub",
302
304
  "api-call": "API Call",
303
305
  "transform-data": "Transform Data",
@@ -1,5 +1,34 @@
1
1
  # @runtypelabs/react-flow-example
2
2
 
3
+ ## 0.0.112
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1422e92]
8
+ - Updated dependencies [d0df6a8]
9
+ - Updated dependencies [de60a30]
10
+ - Updated dependencies [4c17349]
11
+ - Updated dependencies [f89cb41]
12
+ - Updated dependencies [9736850]
13
+ - Updated dependencies [8f13a37]
14
+ - Updated dependencies [fa6d18a]
15
+ - Updated dependencies [9002f51]
16
+ - Updated dependencies [4520c60]
17
+ - Updated dependencies [49d599f]
18
+ - Updated dependencies [9cbdba8]
19
+ - Updated dependencies [b82d8f1]
20
+ - Updated dependencies [edae98b]
21
+ - @runtypelabs/sdk@5.8.0
22
+ - @runtypelabs/react-flow@0.4.0
23
+
24
+ ## 0.0.111
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies [fd2e18e]
29
+ - @runtypelabs/sdk@5.7.0
30
+ - @runtypelabs/react-flow@0.3.63
31
+
3
32
  ## 0.0.110
4
33
 
5
34
  ### Patch Changes
@@ -1,12 +1,27 @@
1
1
  #!/bin/sh
2
2
  basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+ basedir_win="$basedir"
4
+ exe=""
5
+ msys=""
3
6
 
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
7
+ case `uname -a` in
8
+ *CYGWIN*|*MINGW*|*MSYS*)
9
+ if command -v cygpath > /dev/null 2>&1; then
10
+ basedir_win=`cygpath -w "$basedir"`
11
+ fi
12
+ exe=".exe"
13
+ msys="true"
14
+ ;;
15
+ *WSL2*)
16
+ if command -v wslpath > /dev/null 2>&1; then
17
+ basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
18
+ if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
19
+ basedir_win="$basedir"
20
+ else
21
+ exe=".exe"
22
+ fi
23
+ fi
24
+ ;;
10
25
  esac
11
26
 
12
27
  if [ -z "$NODE_PATH" ]; then
@@ -14,8 +29,15 @@ if [ -z "$NODE_PATH" ]; then
14
29
  else
15
30
  export NODE_PATH="/home/runner/_work/core/core/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
16
31
  fi
17
- if [ -x "$basedir/node" ]; then
32
+ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
33
+ exec "$basedir/node.exe" "$basedir_win/../typescript/bin/tsc" "$@"
34
+ elif [ -x "$basedir/node" ]; then
18
35
  exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
36
+ elif command -v node >/dev/null 2>&1; then
37
+ exec node "$basedir/../typescript/bin/tsc" "$@"
38
+ elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
39
+ exec node.exe "$basedir_win/../typescript/bin/tsc" "$@"
19
40
  else
20
41
  exec node "$basedir/../typescript/bin/tsc" "$@"
21
42
  fi
43
+ # cmd-shim-target=/home/runner/_work/core/core/packages/react-flow/example/node_modules/typescript/bin/tsc
@@ -1,12 +1,27 @@
1
1
  #!/bin/sh
2
2
  basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+ basedir_win="$basedir"
4
+ exe=""
5
+ msys=""
3
6
 
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
7
+ case `uname -a` in
8
+ *CYGWIN*|*MINGW*|*MSYS*)
9
+ if command -v cygpath > /dev/null 2>&1; then
10
+ basedir_win=`cygpath -w "$basedir"`
11
+ fi
12
+ exe=".exe"
13
+ msys="true"
14
+ ;;
15
+ *WSL2*)
16
+ if command -v wslpath > /dev/null 2>&1; then
17
+ basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
18
+ if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
19
+ basedir_win="$basedir"
20
+ else
21
+ exe=".exe"
22
+ fi
23
+ fi
24
+ ;;
10
25
  esac
11
26
 
12
27
  if [ -z "$NODE_PATH" ]; then
@@ -14,8 +29,15 @@ if [ -z "$NODE_PATH" ]; then
14
29
  else
15
30
  export NODE_PATH="/home/runner/_work/core/core/node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/typescript@6.0.3/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
16
31
  fi
17
- if [ -x "$basedir/node" ]; then
32
+ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
33
+ exec "$basedir/node.exe" "$basedir_win/../typescript/bin/tsserver" "$@"
34
+ elif [ -x "$basedir/node" ]; then
18
35
  exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
36
+ elif command -v node >/dev/null 2>&1; then
37
+ exec node "$basedir/../typescript/bin/tsserver" "$@"
38
+ elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
39
+ exec node.exe "$basedir_win/../typescript/bin/tsserver" "$@"
19
40
  else
20
41
  exec node "$basedir/../typescript/bin/tsserver" "$@"
21
42
  fi
43
+ # cmd-shim-target=/home/runner/_work/core/core/packages/react-flow/example/node_modules/typescript/bin/tsserver
@@ -1,12 +1,27 @@
1
1
  #!/bin/sh
2
2
  basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+ basedir_win="$basedir"
4
+ exe=""
5
+ msys=""
3
6
 
4
- case `uname` in
5
- *CYGWIN*|*MINGW*|*MSYS*)
6
- if command -v cygpath > /dev/null 2>&1; then
7
- basedir=`cygpath -w "$basedir"`
8
- fi
9
- ;;
7
+ case `uname -a` in
8
+ *CYGWIN*|*MINGW*|*MSYS*)
9
+ if command -v cygpath > /dev/null 2>&1; then
10
+ basedir_win=`cygpath -w "$basedir"`
11
+ fi
12
+ exe=".exe"
13
+ msys="true"
14
+ ;;
15
+ *WSL2*)
16
+ if command -v wslpath > /dev/null 2>&1; then
17
+ basedir_win="$(wslpath -w "$basedir" 2> /dev/null)"
18
+ if [ $? -ne 0 ] || [ -z "$basedir_win" ]; then
19
+ basedir_win="$basedir"
20
+ else
21
+ exe=".exe"
22
+ fi
23
+ fi
24
+ ;;
10
25
  esac
11
26
 
12
27
  if [ -z "$NODE_PATH" ]; then
@@ -14,8 +29,15 @@ if [ -z "$NODE_PATH" ]; then
14
29
  else
15
30
  export NODE_PATH="/home/runner/_work/core/core/node_modules/.pnpm/vite@6.4.3_@types+node@25.3.3_jiti@2.7.0_lightningcss@1.32.0_terser@5.46.0_tsx@4.21.0_yaml@2.9.0/node_modules/vite/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/vite@6.4.3_@types+node@25.3.3_jiti@2.7.0_lightningcss@1.32.0_terser@5.46.0_tsx@4.21.0_yaml@2.9.0/node_modules:/home/runner/_work/core/core/node_modules/.pnpm/node_modules:$NODE_PATH"
16
31
  fi
17
- if [ -x "$basedir/node" ]; then
32
+ if [ -n "$exe" ] && [ -x "$basedir/node.exe" ]; then
33
+ exec "$basedir/node.exe" "$basedir_win/../vite/bin/vite.js" "$@"
34
+ elif [ -x "$basedir/node" ]; then
18
35
  exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
36
+ elif command -v node >/dev/null 2>&1; then
37
+ exec node "$basedir/../vite/bin/vite.js" "$@"
38
+ elif [ -n "$exe" ] && command -v node.exe >/dev/null 2>&1; then
39
+ exec node.exe "$basedir_win/../vite/bin/vite.js" "$@"
19
40
  else
20
41
  exec node "$basedir/../vite/bin/vite.js" "$@"
21
42
  fi
43
+ # cmd-shim-target=/home/runner/_work/core/core/packages/react-flow/example/node_modules/vite/bin/vite.js
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/react-flow-example",
3
- "version": "0.0.110",
3
+ "version": "0.0.112",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runtypelabs/react-flow",
3
- "version": "0.3.62",
3
+ "version": "0.4.0",
4
4
  "description": "React Flow adapter for building visual flow editors with Runtype",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,7 +16,7 @@
16
16
  "*.css"
17
17
  ],
18
18
  "dependencies": {
19
- "@runtypelabs/sdk": "5.6.0"
19
+ "@runtypelabs/sdk": "5.8.0"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@xyflow/react": "^12.0.0",
@@ -9,6 +9,8 @@ export type ContextStepType =
9
9
  | 'crawl'
10
10
  | 'fetch-url'
11
11
  | 'retrieve-record'
12
+ | 'get-record'
13
+ | 'list-records'
12
14
  | 'fetch-github'
13
15
  | 'api-call'
14
16
  | 'transform-data'
@@ -434,6 +434,8 @@ export function getDefaultStepName(type: FlowStepType): string {
434
434
  crawl: 'Crawl Website',
435
435
  'fetch-url': 'Fetch URL',
436
436
  'retrieve-record': 'Retrieve Record',
437
+ 'get-record': 'Get Record',
438
+ 'list-records': 'List Records',
437
439
  'fetch-github': 'Fetch GitHub',
438
440
  'api-call': 'API Call',
439
441
  'transform-data': 'Transform Data',