@n8n/node-engine-compatibility 0.2.2 → 0.3.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.
package/dist/io.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { JsonValue } from '@n8n/engine';
1
+ import type { StepSlots } from '@n8n/engine';
2
2
  import type { INodeExecutionData } from 'n8n-workflow';
3
- export declare function fromStepInputs(value: JsonValue): INodeExecutionData[][];
4
- export declare function toStepOutputs(outputs: INodeExecutionData[][]): JsonValue;
3
+ export declare function fromStepInputs(value: StepSlots): INodeExecutionData[][];
4
+ export declare function toStepOutputs(outputs: INodeExecutionData[][]): StepSlots;
package/dist/io.js CHANGED
@@ -4,8 +4,6 @@ exports.fromStepInputs = fromStepInputs;
4
4
  exports.toStepOutputs = toStepOutputs;
5
5
  const guards_1 = require("./guards");
6
6
  function fromStepInputs(value) {
7
- if (!Array.isArray(value))
8
- return [[]];
9
7
  return value.map((items) => {
10
8
  if (!Array.isArray(items))
11
9
  return [];
package/dist/io.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"io.js","sourceRoot":"","sources":["../src/io.ts"],"names":[],"mappings":";;;;AAGA,qCAAoC;AAEpC,wBAA+B,KAAgB;IAC9C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IAEvC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACrC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAsB,EAAE;YAC7C,IAAI,IAAA,iBAAQ,EAAC,IAAI,CAAC,IAAI,IAAA,iBAAQ,EAAC,IAAI,CAAC,IAAI,CAAC;gBAAE,OAAO,IAAqC,CAAC;YACxF,IAAI,IAAA,iBAAQ,EAAC,IAAI,CAAC;gBAAE,OAAO,EAAE,IAAI,EAAE,IAAmB,EAAE,CAAC;YACzD,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAiB,EAAE,CAAC;QACjD,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,uBAA8B,OAA+B;IAC5D,OAAO,OAA+B,CAAC;AACxC,CAAC"}
1
+ {"version":3,"file":"io.js","sourceRoot":"","sources":["../src/io.ts"],"names":[],"mappings":";;;;AAGA,qCAAoC;AAEpC,wBAA+B,KAAgB;IAC9C,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACrC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAsB,EAAE;YAC7C,IAAI,IAAA,iBAAQ,EAAC,IAAI,CAAC,IAAI,IAAA,iBAAQ,EAAC,IAAI,CAAC,IAAI,CAAC;gBAAE,OAAO,IAAqC,CAAC;YACxF,IAAI,IAAA,iBAAQ,EAAC,IAAI,CAAC;gBAAE,OAAO,EAAE,IAAI,EAAE,IAAmB,EAAE,CAAC;YACzD,OAAO,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAiB,EAAE,CAAC;QACjD,CAAC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,uBAA8B,OAA+B;IAC5D,OAAO,OAA+B,CAAC;AACxC,CAAC"}
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { JsonValue, StepExecutionContext, WorkflowGraph } from '@n8n/engine';
1
+ import type { StepExecutionContext, StepSlots, WorkflowGraph } from '@n8n/engine';
2
2
  import type { ExecuteContext } from 'n8n-core';
3
3
  import type { INode, INodeExecutionData, INodeParameters, INodeType, INodeTypes, IRunData, ISourceData, IWorkflowBase, IWorkflowExecuteAdditionalData, Workflow } from 'n8n-workflow';
4
4
  export interface V1NodeStepConfig {
@@ -12,7 +12,7 @@ export interface V1Execution extends Pick<IWorkflowBase, 'nodes' | 'connections'
12
12
  }
13
13
  export interface StepData {
14
14
  graph: WorkflowGraph;
15
- outputsByStepId: Record<string, JsonValue>;
15
+ outputsByStepId: Record<string, StepSlots>;
16
16
  }
17
17
  export type StepDataLoader = (context: StepExecutionContext) => Promise<StepData>;
18
18
  export interface V1StepExecutorDeps {
@@ -1,9 +1,9 @@
1
- import type { GraphNode, JsonValue, WorkflowGraph } from '@n8n/engine';
1
+ import type { GraphNode, StepSlots, WorkflowGraph } from '@n8n/engine';
2
2
  import { ExecuteContext } from 'n8n-core';
3
3
  import type { INode, INodeTypes, ISourceData } from 'n8n-workflow';
4
4
  import { Workflow } from 'n8n-workflow';
5
5
  import type { CreateExecuteContextParams, V1Execution, V1NodeStepConfig } from './types';
6
- export declare function toV1Execution(graph: WorkflowGraph, outputsByStepId: Record<string, JsonValue>): V1Execution;
6
+ export declare function toV1Execution(graph: WorkflowGraph, outputsByStepId: Record<string, StepSlots>): V1Execution;
7
7
  export declare function toV1Sources(graph: WorkflowGraph): Map<string, Array<ISourceData | null>>;
8
8
  export declare function toV1Workflow(workflowId: string, node: INode, execution: V1Execution, nodeTypes: INodeTypes): Workflow;
9
9
  export declare function toV1Node(graphNode: GraphNode, config: V1NodeStepConfig): INode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/node-engine-compatibility",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "Adapts v1 nodes and workflows to the Engine 2.0 execution model",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,16 +10,16 @@
10
10
  "LICENSE_EE.md"
11
11
  ],
12
12
  "dependencies": {
13
- "@n8n/engine": "0.14.0",
14
- "n8n-core": "2.34.2",
15
- "n8n-workflow": "2.34.2"
13
+ "@n8n/engine": "0.15.0",
14
+ "n8n-workflow": "2.35.0",
15
+ "n8n-core": "2.35.0"
16
16
  },
17
17
  "devDependencies": {
18
18
  "typescript": "7.0.2",
19
19
  "vitest": "^4.1.9",
20
- "@n8n/vitest-config": "1.19.0",
21
- "@n8n/typescript-config": "1.9.0",
22
- "n8n-nodes-base": "2.34.2"
20
+ "@n8n/vitest-config": "1.20.0",
21
+ "n8n-nodes-base": "2.35.0",
22
+ "@n8n/typescript-config": "1.9.0"
23
23
  },
24
24
  "license": "SEE LICENSE IN LICENSE.md",
25
25
  "homepage": "https://n8n.io",