n8n-workflow 2.46.0 → 3.0.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/cjs/build.tsbuildinfo +1 -1
- package/dist/cjs/constants.d.ts +1 -7
- package/dist/cjs/constants.d.ts.map +1 -1
- package/dist/cjs/constants.js +9 -24
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/expressions/removed-globals.d.ts +20 -0
- package/dist/cjs/expressions/removed-globals.d.ts.map +1 -0
- package/dist/cjs/expressions/removed-globals.js +25 -0
- package/dist/cjs/expressions/removed-globals.js.map +1 -0
- package/dist/cjs/interfaces.d.ts +6 -21
- package/dist/cjs/interfaces.d.ts.map +1 -1
- package/dist/cjs/interfaces.js +1 -0
- package/dist/cjs/interfaces.js.map +1 -1
- package/dist/cjs/node-helpers.d.ts +3 -12
- package/dist/cjs/node-helpers.d.ts.map +1 -1
- package/dist/cjs/node-helpers.js +0 -23
- package/dist/cjs/node-helpers.js.map +1 -1
- package/dist/cjs/telemetry-helpers.d.ts.map +1 -1
- package/dist/cjs/telemetry-helpers.js +2 -5
- package/dist/cjs/telemetry-helpers.js.map +1 -1
- package/dist/cjs/workflow-data-proxy.d.ts +20 -2
- package/dist/cjs/workflow-data-proxy.d.ts.map +1 -1
- package/dist/cjs/workflow-data-proxy.js +71 -53
- package/dist/cjs/workflow-data-proxy.js.map +1 -1
- package/dist/cjs/workflow.d.ts.map +1 -1
- package/dist/cjs/workflow.js +0 -4
- package/dist/cjs/workflow.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -7
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/constants.js +7 -21
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/expressions/removed-globals.d.ts +20 -0
- package/dist/esm/expressions/removed-globals.d.ts.map +1 -0
- package/dist/esm/expressions/removed-globals.js +21 -0
- package/dist/esm/expressions/removed-globals.js.map +1 -0
- package/dist/esm/interfaces.d.ts +6 -21
- package/dist/esm/interfaces.d.ts.map +1 -1
- package/dist/esm/interfaces.js +1 -0
- package/dist/esm/interfaces.js.map +1 -1
- package/dist/esm/node-helpers.d.ts +3 -12
- package/dist/esm/node-helpers.d.ts.map +1 -1
- package/dist/esm/node-helpers.js +0 -21
- package/dist/esm/node-helpers.js.map +1 -1
- package/dist/esm/telemetry-helpers.d.ts.map +1 -1
- package/dist/esm/telemetry-helpers.js +3 -6
- package/dist/esm/telemetry-helpers.js.map +1 -1
- package/dist/esm/typecheck.tsbuildinfo +1 -1
- package/dist/esm/workflow-data-proxy.d.ts +20 -2
- package/dist/esm/workflow-data-proxy.d.ts.map +1 -1
- package/dist/esm/workflow-data-proxy.js +71 -53
- package/dist/esm/workflow-data-proxy.js.map +1 -1
- package/dist/esm/workflow.d.ts.map +1 -1
- package/dist/esm/workflow.js +1 -5
- package/dist/esm/workflow.js.map +1 -1
- package/package.json +11 -11
package/dist/esm/constants.js
CHANGED
|
@@ -54,10 +54,7 @@ export const ERROR_TRIGGER_NODE_TYPE = 'n8n-nodes-base.errorTrigger';
|
|
|
54
54
|
export const EXECUTE_WORKFLOW_NODE_TYPE = 'n8n-nodes-base.executeWorkflow';
|
|
55
55
|
export const EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE = 'n8n-nodes-base.executeWorkflowTrigger';
|
|
56
56
|
export const CODE_NODE_TYPE = 'n8n-nodes-base.code';
|
|
57
|
-
export const FUNCTION_NODE_TYPE = 'n8n-nodes-base.function';
|
|
58
|
-
export const FUNCTION_ITEM_NODE_TYPE = 'n8n-nodes-base.functionItem';
|
|
59
57
|
export const MERGE_NODE_TYPE = 'n8n-nodes-base.merge';
|
|
60
|
-
export const AI_TRANSFORM_NODE_TYPE = 'n8n-nodes-base.aiTransform';
|
|
61
58
|
export const FORM_NODE_TYPE = 'n8n-nodes-base.form';
|
|
62
59
|
export const FORM_TRIGGER_NODE_TYPE = 'n8n-nodes-base.formTrigger';
|
|
63
60
|
export const WAIT_NODE_TYPE = 'n8n-nodes-base.wait';
|
|
@@ -78,12 +75,7 @@ export const STARTING_NODE_TYPES = [
|
|
|
78
75
|
EVALUATION_TRIGGER_NODE_TYPE,
|
|
79
76
|
FORM_TRIGGER_NODE_TYPE,
|
|
80
77
|
];
|
|
81
|
-
export const SCRIPTING_NODE_TYPES = [
|
|
82
|
-
FUNCTION_NODE_TYPE,
|
|
83
|
-
FUNCTION_ITEM_NODE_TYPE,
|
|
84
|
-
CODE_NODE_TYPE,
|
|
85
|
-
AI_TRANSFORM_NODE_TYPE,
|
|
86
|
-
];
|
|
78
|
+
export const SCRIPTING_NODE_TYPES = [CODE_NODE_TYPE];
|
|
87
79
|
export const DATA_TABLE_NODE_TYPES = [
|
|
88
80
|
DATA_TABLE_NODE_TYPE,
|
|
89
81
|
DATA_TABLE_TOOL_NODE_TYPE,
|
|
@@ -97,9 +89,10 @@ export const ADD_FORM_NOTICE = 'addFormPage';
|
|
|
97
89
|
*/
|
|
98
90
|
export const NODES_WITH_RENAMABLE_CONTENT = new Set([
|
|
99
91
|
CODE_NODE_TYPE,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
92
|
+
// The AI Transform node is removed in v3, but unmigrated ones survive in stored
|
|
93
|
+
// workflows until the `ai-transform-deprecated` migration rewrites them. Keep
|
|
94
|
+
// renaming their `jsCode`, or the migration produces dangling references.
|
|
95
|
+
'n8n-nodes-base.aiTransform',
|
|
103
96
|
]);
|
|
104
97
|
export const NODES_WITH_RENAMABLE_FORM_HTML_CONTENT = new Set([FORM_NODE_TYPE]);
|
|
105
98
|
export const NODES_WITH_RENAMEABLE_TOPLEVEL_HTML_CONTENT = new Set([
|
|
@@ -107,7 +100,6 @@ export const NODES_WITH_RENAMEABLE_TOPLEVEL_HTML_CONTENT = new Set([
|
|
|
107
100
|
HTML_NODE_TYPE,
|
|
108
101
|
]);
|
|
109
102
|
//@n8n/n8n-nodes-langchain
|
|
110
|
-
export const MANUAL_CHAT_TRIGGER_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.manualChatTrigger';
|
|
111
103
|
export const AGENT_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.agent';
|
|
112
104
|
export const CHAIN_LLM_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.chainLlm';
|
|
113
105
|
export const OPENAI_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.openAi';
|
|
@@ -116,8 +108,8 @@ export const CHAIN_SUMMARIZATION_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain
|
|
|
116
108
|
export const AGENT_TOOL_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.agentTool';
|
|
117
109
|
export const CODE_TOOL_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.toolCode';
|
|
118
110
|
export const WORKFLOW_TOOL_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.toolWorkflow';
|
|
111
|
+
export const HTTP_REQUEST_AS_TOOL_NODE_TYPE = 'n8n-nodes-base.httpRequestTool';
|
|
119
112
|
export const RETRIEVER_WORKFLOW_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.retrieverWorkflow';
|
|
120
|
-
export const HTTP_REQUEST_TOOL_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.toolHttpRequest';
|
|
121
113
|
export const CHAT_TRIGGER_NODE_TYPE = '@n8n/n8n-nodes-langchain.chatTrigger';
|
|
122
114
|
/** Trailing segment of the path a Chat trigger registers its webhooks under: `{webhookId}/chat`. */
|
|
123
115
|
export const CHAT_TRIGGER_PATH_SUFFIX = 'chat';
|
|
@@ -139,10 +131,7 @@ export const MINIMAX_LANGCHAIN_NODE_TYPE = '@n8n/n8n-nodes-langchain.minimax';
|
|
|
139
131
|
// Chat and MCP triggers are deliberately not listed: they only establish an
|
|
140
132
|
// identity in specific configurations (Chat Hub availability, n8n OAuth2), which
|
|
141
133
|
// `classifyTriggerIdentity` checks parameter-by-parameter (IAM-1238).
|
|
142
|
-
export const MANUAL_TRIGGER_NODE_TYPES = [
|
|
143
|
-
MANUAL_TRIGGER_NODE_TYPE,
|
|
144
|
-
MANUAL_CHAT_TRIGGER_LANGCHAIN_NODE_TYPE,
|
|
145
|
-
];
|
|
134
|
+
export const MANUAL_TRIGGER_NODE_TYPES = [MANUAL_TRIGGER_NODE_TYPE];
|
|
146
135
|
export const AI_VENDOR_NODE_TYPES = [
|
|
147
136
|
OPENAI_LANGCHAIN_NODE_TYPE,
|
|
148
137
|
ANTHROPIC_LANGCHAIN_NODE_TYPE,
|
|
@@ -160,11 +149,8 @@ export const DOCUMENT_DEFAULT_DATA_LOADER_NODE_TYPE = '@n8n/n8n-nodes-langchain.
|
|
|
160
149
|
export const LANGCHAIN_CUSTOM_TOOLS = [
|
|
161
150
|
CODE_TOOL_LANGCHAIN_NODE_TYPE,
|
|
162
151
|
WORKFLOW_TOOL_LANGCHAIN_NODE_TYPE,
|
|
163
|
-
HTTP_REQUEST_TOOL_LANGCHAIN_NODE_TYPE,
|
|
164
152
|
];
|
|
165
153
|
export const SEND_AND_WAIT_OPERATION = 'sendAndWait';
|
|
166
|
-
export const AI_TRANSFORM_CODE_GENERATED_FOR_PROMPT = 'codeGeneratedForPrompt';
|
|
167
|
-
export const AI_TRANSFORM_JS_CODE = 'jsCode';
|
|
168
154
|
/**
|
|
169
155
|
* Key for an item standing in for a manual execution data item too large to be
|
|
170
156
|
* sent live via pubsub. See {@link TRIMMED_TASK_DATA_CONNECTIONS} in constants
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,YAAY,CAAC;AACnC,MAAM,CAAC,MAAM,iBAAiB,GAAG,4BAA4B,CAAC;AAC9D,MAAM,CAAC,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,WAAW,EAAE,CAAC;AACjE,MAAM,CAAC,MA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|
+
/**
|
|
2
|
+
* Expression globals that were removed in a major version, with the API that
|
|
3
|
+
* replaces each one.
|
|
4
|
+
*
|
|
5
|
+
* An unbound global resolves to `undefined`, so a workflow calling a removed
|
|
6
|
+
* helper would keep running and feed `undefined` into its downstream data. Both
|
|
7
|
+
* engines therefore bind these names to a function that throws, which turns a
|
|
8
|
+
* silent wrong result into an error naming the replacement.
|
|
9
|
+
*
|
|
10
|
+
* The VM engine cannot read this file: its context is bundled into the isolate
|
|
11
|
+
* from `@n8n/expression-runtime`, which does not depend on this package. It
|
|
12
|
+
* keeps its own copy, and `removed-globals.test.ts` fails if the two drift.
|
|
13
|
+
*/
|
|
14
|
+
export declare const REMOVED_EXPRESSION_GLOBALS: {
|
|
15
|
+
readonly $getPairedItem: "$('Node').item, $('Node').itemMatching(n), or $('Node').pairedItem(n)";
|
|
16
|
+
};
|
|
17
|
+
export type RemovedExpressionGlobal = keyof typeof REMOVED_EXPRESSION_GLOBALS;
|
|
18
|
+
/** The message both engines raise when a removed global is called. */
|
|
19
|
+
export declare function removedGlobalMessage(name: RemovedExpressionGlobal): string;
|
|
20
|
+
//# sourceMappingURL=removed-globals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removed-globals.d.ts","sourceRoot":"","sources":["../../../src/expressions/removed-globals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0BAA0B;aACtC,cAAc,EAAE,uEAAuE;CAC9E,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,0BAA0B,CAAC;AAE9E,sEAAsE;AACtE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,uBAAuB,GAAG,MAAM,CAE1E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expression globals that were removed in a major version, with the API that
|
|
3
|
+
* replaces each one.
|
|
4
|
+
*
|
|
5
|
+
* An unbound global resolves to `undefined`, so a workflow calling a removed
|
|
6
|
+
* helper would keep running and feed `undefined` into its downstream data. Both
|
|
7
|
+
* engines therefore bind these names to a function that throws, which turns a
|
|
8
|
+
* silent wrong result into an error naming the replacement.
|
|
9
|
+
*
|
|
10
|
+
* The VM engine cannot read this file: its context is bundled into the isolate
|
|
11
|
+
* from `@n8n/expression-runtime`, which does not depend on this package. It
|
|
12
|
+
* keeps its own copy, and `removed-globals.test.ts` fails if the two drift.
|
|
13
|
+
*/
|
|
14
|
+
export const REMOVED_EXPRESSION_GLOBALS = {
|
|
15
|
+
$getPairedItem: "$('Node').item, $('Node').itemMatching(n), or $('Node').pairedItem(n)",
|
|
16
|
+
};
|
|
17
|
+
/** The message both engines raise when a removed global is called. */
|
|
18
|
+
export function removedGlobalMessage(name) {
|
|
19
|
+
return `${name} was removed. Use ${REMOVED_EXPRESSION_GLOBALS[name]} instead`;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=removed-globals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removed-globals.js","sourceRoot":"","sources":["../../../src/expressions/removed-globals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC,cAAc,EAAE,uEAAuE;CAC9E,CAAC;AAIX,sEAAsE;AACtE,MAAM,UAAU,oBAAoB,CAAC,IAA6B;IACjE,OAAO,GAAG,IAAI,qBAAqB,0BAA0B,CAAC,IAAI,CAAC,UAAU,CAAC;AAC/E,CAAC"}
|
package/dist/esm/interfaces.d.ts
CHANGED
|
@@ -664,8 +664,6 @@ export interface FileSystemHelperFunctions {
|
|
|
664
664
|
export interface BinaryHelperFunctions {
|
|
665
665
|
prepareBinaryData(binaryData: Buffer | Readable, filePath?: string, mimeType?: string): Promise<IBinaryData>;
|
|
666
666
|
setBinaryDataBuffer(data: IBinaryData, binaryData: Buffer): Promise<IBinaryData>;
|
|
667
|
-
/** @deprecated */
|
|
668
|
-
copyBinaryFile(): Promise<never>;
|
|
669
667
|
binaryToBuffer(body: Buffer | Readable): Promise<Buffer>;
|
|
670
668
|
binaryToString(body: Buffer | Readable, encoding?: BufferEncoding): Promise<string>;
|
|
671
669
|
getBinaryPath(binaryDataId: string): string;
|
|
@@ -1329,8 +1327,13 @@ export interface IPairedItemData {
|
|
|
1329
1327
|
sourceOverwrite?: ISourceData;
|
|
1330
1328
|
}
|
|
1331
1329
|
export declare const ChatNodeMessageType: {
|
|
1330
|
+
readonly MESSAGE: 'message';
|
|
1332
1331
|
readonly WITH_BUTTONS: 'with-buttons';
|
|
1333
1332
|
};
|
|
1333
|
+
export type ChatNodeMessageRegular = {
|
|
1334
|
+
type: typeof ChatNodeMessageType.MESSAGE;
|
|
1335
|
+
text: string;
|
|
1336
|
+
};
|
|
1334
1337
|
export type ChatNodeMessageButtonType = 'primary' | 'secondary';
|
|
1335
1338
|
export type ChatNodeMessageWithButtons = {
|
|
1336
1339
|
type: typeof ChatNodeMessageType.WITH_BUTTONS;
|
|
@@ -1440,8 +1443,7 @@ export type NodeParameterValueType = NodeParameterValue | INodeParameters | INod
|
|
|
1440
1443
|
export interface INodeParameters {
|
|
1441
1444
|
[key: string]: NodeParameterValueType;
|
|
1442
1445
|
}
|
|
1443
|
-
export type NodePropertyTypes = 'boolean' | '
|
|
1444
|
-
export type CodeAutocompleteTypes = 'function' | 'functionItem';
|
|
1446
|
+
export type NodePropertyTypes = 'boolean' | 'collection' | 'color' | 'dateTime' | 'fixedCollection' | 'hidden' | 'icon' | 'json' | 'callout' | 'notice' | 'multiOptions' | 'number' | 'options' | 'string' | 'credentialsSelect' | 'resourceLocator' | 'curlImport' | 'resourceMapper' | 'filter' | 'assignmentCollection' | 'credentials' | 'workflowSelector' | 'agentSelector';
|
|
1445
1447
|
export type EditorType = 'codeNodeEditor' | 'jsEditor' | 'htmlEditor' | 'sqlEditor' | 'cssEditor';
|
|
1446
1448
|
export type CodeNodeEditorLanguage = (typeof CODE_LANGUAGES)[number];
|
|
1447
1449
|
export type CodeExecutionMode = (typeof CODE_EXECUTION_MODES)[number];
|
|
@@ -1453,11 +1455,6 @@ export interface ILoadOptions {
|
|
|
1453
1455
|
request?: DeclarativeRestApiSettings.HttpRequestOptions;
|
|
1454
1456
|
};
|
|
1455
1457
|
}
|
|
1456
|
-
export type NodePropertyAction = {
|
|
1457
|
-
type: 'askAiCodeGeneration';
|
|
1458
|
-
handler?: string;
|
|
1459
|
-
target?: string;
|
|
1460
|
-
};
|
|
1461
1458
|
export interface CalloutActionBase {
|
|
1462
1459
|
type: string;
|
|
1463
1460
|
label: string;
|
|
@@ -1469,16 +1466,9 @@ export interface CalloutActionOpenSampleWorkflowTemplate extends CalloutActionBa
|
|
|
1469
1466
|
}
|
|
1470
1467
|
export type CalloutAction = CalloutActionOpenSampleWorkflowTemplate;
|
|
1471
1468
|
export interface INodePropertyTypeOptions {
|
|
1472
|
-
buttonConfig?: {
|
|
1473
|
-
action?: string | NodePropertyAction;
|
|
1474
|
-
label?: string;
|
|
1475
|
-
hasInputField?: boolean;
|
|
1476
|
-
inputFieldMaxLength?: number;
|
|
1477
|
-
};
|
|
1478
1469
|
containerClass?: string;
|
|
1479
1470
|
sectionHeader?: boolean;
|
|
1480
1471
|
alwaysOpenEditWindow?: boolean;
|
|
1481
|
-
codeAutocomplete?: CodeAutocompleteTypes;
|
|
1482
1472
|
editor?: EditorType;
|
|
1483
1473
|
editorIsReadOnly?: boolean;
|
|
1484
1474
|
sqlDialect?: SQLDialect;
|
|
@@ -2389,10 +2379,6 @@ export interface INodeOutputConfiguration {
|
|
|
2389
2379
|
}
|
|
2390
2380
|
export type ExpressionString = `={{${string}}}`;
|
|
2391
2381
|
export type NodeDefaults = Partial<{
|
|
2392
|
-
/**
|
|
2393
|
-
* @deprecated Use {@link INodeTypeBaseDescription.iconColor|iconColor} instead. `iconColor` supports dark mode and uses preset colors from n8n's design system.
|
|
2394
|
-
*/
|
|
2395
|
-
color: string;
|
|
2396
2382
|
name: string;
|
|
2397
2383
|
}>;
|
|
2398
2384
|
/**
|
|
@@ -2633,7 +2619,6 @@ export interface IWorkflowDataProxyData {
|
|
|
2633
2619
|
$thisItemIndex: number;
|
|
2634
2620
|
$now: any;
|
|
2635
2621
|
$today: any;
|
|
2636
|
-
$getPairedItem: (destinationNodeName: string, incomingSourceData: ISourceData | null, pairedItem: IPairedItemData) => INodeExecutionData | null;
|
|
2637
2622
|
constructor: any;
|
|
2638
2623
|
}
|
|
2639
2624
|
export type IWorkflowExecutionCustomData = {
|