n8n-core 2.45.3 → 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.
Files changed (63) hide show
  1. package/dist/binary-data/binary-data.config.d.ts +4 -3
  2. package/dist/binary-data/binary-data.config.js +5 -1
  3. package/dist/binary-data/binary-data.config.js.map +1 -1
  4. package/dist/binary-data/binary-data.service.js +20 -24
  5. package/dist/binary-data/binary-data.service.js.map +1 -1
  6. package/dist/binary-data/blob.manager.js +14 -4
  7. package/dist/binary-data/blob.manager.js.map +1 -1
  8. package/dist/binary-data/index.d.ts +2 -2
  9. package/dist/binary-data/index.js +3 -2
  10. package/dist/binary-data/index.js.map +1 -1
  11. package/dist/binary-data/types.d.ts +1 -1
  12. package/dist/build.tsbuildinfo +1 -1
  13. package/dist/constants.d.ts +0 -1
  14. package/dist/constants.js +1 -3
  15. package/dist/constants.js.map +1 -1
  16. package/dist/execution-engine/eval-mock-fixtures.js +1 -2
  17. package/dist/execution-engine/eval-mock-fixtures.js.map +1 -1
  18. package/dist/execution-engine/eval-mock-helpers.d.ts +1 -0
  19. package/dist/execution-engine/eval-mock-helpers.js +33 -0
  20. package/dist/execution-engine/eval-mock-helpers.js.map +1 -1
  21. package/dist/execution-engine/index.d.ts +3 -1
  22. package/dist/execution-engine/index.js.map +1 -1
  23. package/dist/execution-engine/node-execution-context/base-execute-context.js +2 -0
  24. package/dist/execution-engine/node-execution-context/base-execute-context.js.map +1 -1
  25. package/dist/execution-engine/node-execution-context/node-execution-context.js +2 -0
  26. package/dist/execution-engine/node-execution-context/node-execution-context.js.map +1 -1
  27. package/dist/execution-engine/node-execution-context/supply-data-context.d.ts +1 -0
  28. package/dist/execution-engine/node-execution-context/supply-data-context.js +21 -17
  29. package/dist/execution-engine/node-execution-context/supply-data-context.js.map +1 -1
  30. package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.js +0 -3
  31. package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.js.map +1 -1
  32. package/dist/execution-engine/node-execution-context/utils/execution-metadata.js +4 -1
  33. package/dist/execution-engine/node-execution-context/utils/execution-metadata.js.map +1 -1
  34. package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js +9 -6
  35. package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js.map +1 -1
  36. package/dist/execution-engine/node-execution-context/utils/request-helpers/authentication.js +2 -2
  37. package/dist/execution-engine/node-execution-context/utils/request-helpers/authentication.js.map +1 -1
  38. package/dist/execution-engine/node-execution-context/utils/request-helpers/factory.js +15 -6
  39. package/dist/execution-engine/node-execution-context/utils/request-helpers/factory.js.map +1 -1
  40. package/dist/execution-engine/node-execution-context/utils/request-helpers/oauth.js +3 -0
  41. package/dist/execution-engine/node-execution-context/utils/request-helpers/oauth.js.map +1 -1
  42. package/dist/execution-engine/node-execution-context/utils/request-helpers/pagination.js +2 -2
  43. package/dist/execution-engine/node-execution-context/utils/request-helpers/pagination.js.map +1 -1
  44. package/dist/execution-engine/routing-node.js +5 -2
  45. package/dist/execution-engine/routing-node.js.map +1 -1
  46. package/dist/execution-engine/ssh-clients-manager.d.ts +2 -1
  47. package/dist/execution-engine/ssh-clients-manager.js +22 -9
  48. package/dist/execution-engine/ssh-clients-manager.js.map +1 -1
  49. package/dist/execution-engine/workflow-execute.d.ts +1 -0
  50. package/dist/execution-engine/workflow-execute.js +28 -29
  51. package/dist/execution-engine/workflow-execute.js.map +1 -1
  52. package/dist/storage-path-conflict.error.d.ts +1 -0
  53. package/dist/storage-path-conflict.error.js +4 -1
  54. package/dist/storage-path-conflict.error.js.map +1 -1
  55. package/dist/storage.config.d.ts +2 -3
  56. package/dist/storage.config.js +7 -10
  57. package/dist/storage.config.js.map +1 -1
  58. package/dist/utils/convert-binary-data.js +1 -4
  59. package/dist/utils/convert-binary-data.js.map +1 -1
  60. package/dist/utils/serialized-buffer.d.ts +8 -1
  61. package/dist/utils/serialized-buffer.js +24 -6
  62. package/dist/utils/serialized-buffer.js.map +1 -1
  63. package/package.json +17 -17
@@ -1,16 +1,34 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeBuffer = serializeBuffer;
3
4
  exports.toBuffer = toBuffer;
4
5
  exports.isSerializedBuffer = isSerializedBuffer;
5
6
  const backend_common_1 = require("@n8n/backend-common");
6
- function toBuffer(serializedBuffer) {
7
- return Buffer.from(serializedBuffer.data);
7
+ const n8n_workflow_1 = require("n8n-workflow");
8
+ function serializeBuffer(buffer) {
9
+ return { type: 'Buffer', base64: buffer.toString('base64') };
8
10
  }
9
- function isSerializedBuffer(candidate) {
10
- return ((0, backend_common_1.isObjectLiteral)(candidate) &&
11
- 'type' in candidate &&
12
- 'data' in candidate &&
11
+ function isBase64Buffer(candidate) {
12
+ return ('type' in candidate &&
13
+ candidate.type === 'Buffer' &&
14
+ 'base64' in candidate &&
15
+ typeof candidate.base64 === 'string' &&
16
+ Object.keys(candidate).length === 2);
17
+ }
18
+ function isByteArrayBuffer(candidate) {
19
+ return ('type' in candidate &&
13
20
  candidate.type === 'Buffer' &&
21
+ 'data' in candidate &&
14
22
  Array.isArray(candidate.data));
15
23
  }
24
+ function toBuffer(serializedBuffer) {
25
+ if (isBase64Buffer(serializedBuffer))
26
+ return Buffer.from(serializedBuffer.base64, 'base64');
27
+ if (isByteArrayBuffer(serializedBuffer))
28
+ return Buffer.from(serializedBuffer.data);
29
+ throw new n8n_workflow_1.UnexpectedError('Invalid serialized buffer');
30
+ }
31
+ function isSerializedBuffer(candidate) {
32
+ return (0, backend_common_1.isObjectLiteral)(candidate) && (isBase64Buffer(candidate) || isByteArrayBuffer(candidate));
33
+ }
16
34
  //# sourceMappingURL=serialized-buffer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"serialized-buffer.js","sourceRoot":"","sources":["../../src/utils/serialized-buffer.ts"],"names":[],"mappings":";;;;AAAA,wDAAsD;AAStD,kBAAyB,gBAAkC;IAC1D,OAAO,MAAM,CAAC,IAAI,CAAC,gBAAg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gB,CAAC,IAAI,CAAC,CAAC;IAEnF,MAAM,IAAI,8BAAe,CAAC,2BAA2B,CAAC,CAAC;AACxD,CAAC;AAED,4BAAmC,SAAkB;IACpD,OAAO,IAAA,gCAAe,EAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,IAAI,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;AAClG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-core",
3
- "version": "2.45.3",
3
+ "version": "3.0.0",
4
4
  "description": "Core functionality of n8n",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "@n8n/eslint-config": "0.0.1",
21
21
  "@n8n/oxlint-config": "0.0.1",
22
22
  "@n8n/playwright-janitor": "0.1.0",
23
- "@n8n/typescript-config": "1.12.0",
24
- "@n8n/typeorm": "0.12.0",
23
+ "@n8n/typescript-config": "2.0.0",
24
+ "@n8n/typeorm": "1.0.0",
25
25
  "@types/express": "^5.0.1",
26
26
  "@types/jsonwebtoken": "9.0.10",
27
27
  "@types/lodash": "4.17.17",
@@ -30,7 +30,7 @@
30
30
  "@types/ms": "2.1.0",
31
31
  "@types/ssh2": "1.15.0",
32
32
  "@types/uuid": "^11.0.0",
33
- "@n8n/vitest-config": "1.24.0",
33
+ "@n8n/vitest-config": "2.0.0",
34
34
  "@vitest/coverage-istanbul": "5.0.1",
35
35
  "@vitest/coverage-v8": "5.0.1",
36
36
  "axios": "1.20.0",
@@ -39,7 +39,7 @@
39
39
  "oxlint-tsgolint": "^0.21.1",
40
40
  "reflect-metadata": "0.2.2",
41
41
  "typescript": "7.0.2",
42
- "vite": "^8.0.2",
42
+ "vite": "^8.1.6",
43
43
  "vitest": "5.0.1",
44
44
  "vitest-mock-extended": "^3.1.0",
45
45
  "zod": "3.25.76"
@@ -49,17 +49,17 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@langchain/core": "1.2.8",
52
- "@n8n/backend-common": "1.45.3",
53
- "@n8n/backend-network": "1.19.3",
54
- "@n8n/blob-storage": "1.13.3",
55
- "@n8n/client-oauth2": "1.27.3",
56
- "@n8n/config": "2.43.1",
57
- "@n8n/constants": "0.43.0",
58
- "@n8n/decorators": "1.45.3",
59
- "@n8n/di": "0.17.0",
60
- "@n8n/errors": "0.15.0",
61
- "@n8n/utils": "1.52.0",
62
- "@n8n/workflow-sdk": "0.38.1",
52
+ "@n8n/backend-common": "2.0.0",
53
+ "@n8n/backend-network": "2.0.0",
54
+ "@n8n/blob-storage": "2.0.0",
55
+ "@n8n/client-oauth2": "2.0.0",
56
+ "@n8n/config": "3.0.0",
57
+ "@n8n/constants": "1.0.0",
58
+ "@n8n/decorators": "2.0.0",
59
+ "@n8n/di": "1.0.0",
60
+ "@n8n/errors": "1.0.0",
61
+ "@n8n/utils": "2.0.0",
62
+ "@n8n/workflow-sdk": "1.0.0",
63
63
  "@sentry/core": "10.70.0",
64
64
  "@sentry/node": "10.70.0",
65
65
  "@sentry/node-native": "10.70.0",
@@ -75,7 +75,7 @@
75
75
  "luxon": "3.7.2",
76
76
  "mime-types": "3.0.2",
77
77
  "ms": "2.1.3",
78
- "n8n-workflow": "2.45.1",
78
+ "n8n-workflow": "3.0.0",
79
79
  "nanoid": "3.3.18",
80
80
  "oauth-1.0a": "2.2.6",
81
81
  "p-cancelable": "2.1.1",