refactor(core): Refactor some imports to reduce baseline memory usage (#15916)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-06-03 11:23:44 +02:00
committed by GitHub
parent 8abd556597
commit 7c806ff532
133 changed files with 237 additions and 238 deletions

148
pnpm-lock.yaml generated
View File

@@ -37,8 +37,8 @@ catalogs:
specifier: ^9.0.9
version: 9.0.9
'@types/lodash':
specifier: ^4.14.195
version: 4.14.195
specifier: ^4.17.17
version: 4.17.17
'@types/uuid':
specifier: ^10.0.0
version: 10.0.0
@@ -326,7 +326,7 @@ importers:
version: link:../packages/@n8n/api-types
'@types/lodash':
specifier: 'catalog:'
version: 4.14.195
version: 4.17.17
eslint-plugin-cypress:
specifier: ^3.5.0
version: 3.5.0(eslint@8.57.0)
@@ -559,7 +559,7 @@ importers:
version: link:../typescript-config
'@types/lodash':
specifier: 'catalog:'
version: 4.14.195
version: 4.17.17
packages/@n8n/decorators:
dependencies:
@@ -587,7 +587,7 @@ importers:
version: 5.0.1
'@types/lodash':
specifier: 'catalog:'
version: 4.14.195
version: 4.17.17
packages/@n8n/di:
dependencies:
@@ -1059,7 +1059,7 @@ importers:
version: link:../typescript-config
'@types/lodash':
specifier: 'catalog:'
version: 4.14.195
version: 4.17.17
packages/@n8n/typescript-config: {}
@@ -1428,7 +1428,7 @@ importers:
version: 9.0.9
'@types/lodash':
specifier: 'catalog:'
version: 4.14.195
version: 4.17.17
'@types/psl':
specifier: ^1.1.0
version: 1.1.0
@@ -1594,7 +1594,7 @@ importers:
version: 9.0.9
'@types/lodash':
specifier: 'catalog:'
version: 4.14.195
version: 4.17.17
'@types/mime-types':
specifier: ^2.1.0
version: 2.1.1
@@ -1771,6 +1771,9 @@ importers:
is-emoji-supported:
specifier: ^0.0.5
version: 0.0.5
lodash:
specifier: 'catalog:'
version: 4.17.21
markdown-it:
specifier: ^13.0.2
version: 13.0.2
@@ -1823,6 +1826,9 @@ importers:
'@testing-library/vue':
specifier: catalog:frontend
version: 8.1.0(@vue/compiler-sfc@3.5.13)(vue@3.5.13(typescript@5.8.2))
'@types/lodash':
specifier: 'catalog:'
version: 4.17.17
'@types/markdown-it':
specifier: ^13.0.9
version: 13.0.9
@@ -2152,8 +2158,8 @@ importers:
jsonpath:
specifier: ^1.1.1
version: 1.1.1
lodash-es:
specifier: ^4.17.21
lodash:
specifier: 'catalog:'
version: 4.17.21
luxon:
specifier: 'catalog:'
@@ -2258,9 +2264,9 @@ importers:
'@types/jsonpath':
specifier: ^0.2.0
version: 0.2.0
'@types/lodash-es':
specifier: ^4.17.6
version: 4.17.6
'@types/lodash':
specifier: 'catalog:'
version: 4.17.17
'@types/uuid':
specifier: 'catalog:'
version: 10.0.0
@@ -2592,7 +2598,7 @@ importers:
version: 9.0.9
'@types/lodash':
specifier: 'catalog:'
version: 4.14.195
version: 4.17.17
'@types/lossless-json':
specifier: ^1.0.0
version: 1.0.1
@@ -2644,15 +2650,9 @@ importers:
ast-types:
specifier: 0.15.2
version: 0.15.2
axios:
specifier: 'catalog:'
version: 1.8.3
callsites:
specifier: 'catalog:'
version: 3.1.0
deep-equal:
specifier: 2.2.0
version: 2.2.0
esprima-next:
specifier: 5.8.4
version: 5.8.4
@@ -2678,8 +2678,8 @@ importers:
specifier: 2.3.0
version: 2.3.0
recast:
specifier: 0.21.5
version: 0.21.5
specifier: 0.22.0
version: 0.22.0
title-case:
specifier: 3.0.3
version: 3.0.3
@@ -2702,9 +2702,6 @@ importers:
'@n8n/typescript-config':
specifier: workspace:*
version: link:../@n8n/typescript-config
'@types/deep-equal':
specifier: ^1.0.1
version: 1.0.1
'@types/express':
specifier: 'catalog:'
version: 5.0.1
@@ -2713,7 +2710,7 @@ importers:
version: 0.15.0
'@types/lodash':
specifier: 'catalog:'
version: 4.14.195
version: 4.17.17
'@types/luxon':
specifier: 3.2.0
version: 3.2.0
@@ -6350,9 +6347,6 @@ packages:
'@types/debug@4.1.12':
resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==}
'@types/deep-equal@1.0.1':
resolution: {integrity: sha512-mMUu4nWHLBlHtxXY17Fg6+ucS/MnndyOWyOe7MmwkoMYxvfQU2ajtRaEvqSUv+aVkMqH/C0NCI8UoVfRNQ10yg==}
'@types/eslint@8.56.5':
resolution: {integrity: sha512-u5/YPJHo1tvkSF2CE0USEkxon82Z5DBy2xR+qfyYNszpX9qcs4sT6uq2kBbj4BXY1+DBGDPnrhMZV3pKWGNukw==}
@@ -6452,11 +6446,11 @@ packages:
'@types/linkify-it@3.0.5':
resolution: {integrity: sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==}
'@types/lodash-es@4.17.6':
resolution: {integrity: sha512-R+zTeVUKDdfoRxpAryaQNRKk3105Rrgx2CFRClIgRGaqDTdjsm8h6IYA8ir584W3ePzkZfst5xIgDwYrlh9HLg==}
'@types/lodash-es@4.17.12':
resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==}
'@types/lodash@4.14.195':
resolution: {integrity: sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==}
'@types/lodash@4.17.17':
resolution: {integrity: sha512-RRVJ+J3J+WmyOTqnz3PiBLA501eKwXl2noseKOrNo/6+XEHjTAxO4xHvxQB6QuNm+s4WRbn6rSiap8+EA+ykFQ==}
'@types/long@4.0.2':
resolution: {integrity: sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==}
@@ -11462,10 +11456,6 @@ packages:
resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
engines: {node: '>= 0.4'}
object-is@1.1.5:
resolution: {integrity: sha512-3cyDsyHgtmi7I7DfSSI2LDp6SK2lwvtbg0p0R1e0RvTqF5ceGx+K2dfSjm1bKDMVCFEDAQvy+o8c6a7VujOddw==}
engines: {node: '>= 0.4'}
object-is@1.1.6:
resolution: {integrity: sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==}
engines: {node: '>= 0.4'}
@@ -12305,10 +12295,6 @@ packages:
resolution: {integrity: sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==}
engines: {node: '>= 0.8.0'}
recast@0.21.5:
resolution: {integrity: sha512-hjMmLaUXAm1hIuTqOdeYObMslq/q+Xff6QE3Y2P+uoHAg2nmVlLBps2hzh1UJDdMtDTMXOFewK6ky51JQIeECg==}
engines: {node: '>= 4'}
recast@0.22.0:
resolution: {integrity: sha512-5AAx+mujtXijsEavc5lWXBPQqrM4+Dl5qNH96N2aNeuJFUzpiiToKPsxQD/zAIJHspz7zz0maX0PCtCTFVlixQ==}
engines: {node: '>= 4'}
@@ -15325,7 +15311,7 @@ snapshots:
dependencies:
'@azure/abort-controller': 2.0.0
'@azure/core-util': 1.7.0
tslib: 2.6.2
tslib: 2.8.1
'@azure/core-auth@1.9.0':
dependencies:
@@ -15367,11 +15353,11 @@ snapshots:
dependencies:
'@azure/abort-controller': 1.1.0
'@azure/logger': 1.0.3
tslib: 2.6.2
tslib: 2.8.1
'@azure/core-paging@1.3.0':
dependencies:
tslib: 2.6.2
tslib: 2.8.1
'@azure/core-rest-pipeline@1.20.0':
dependencies:
@@ -15395,14 +15381,14 @@ snapshots:
form-data: 4.0.2
http-proxy-agent: 5.0.0
https-proxy-agent: 5.0.1
tslib: 2.6.2
tslib: 2.8.1
uuid: 8.3.2
transitivePeerDependencies:
- supports-color
'@azure/core-tracing@1.0.1':
dependencies:
tslib: 2.6.2
tslib: 2.8.1
'@azure/core-tracing@1.2.0':
dependencies:
@@ -15419,7 +15405,7 @@ snapshots:
'@azure/core-util@1.7.0':
dependencies:
'@azure/abort-controller': 2.0.0
tslib: 2.6.2
tslib: 2.8.1
'@azure/core-xml@1.4.5':
dependencies:
@@ -19355,8 +19341,6 @@ snapshots:
dependencies:
'@types/ms': 2.1.0
'@types/deep-equal@1.0.1': {}
'@types/eslint@8.56.5':
dependencies:
'@types/estree': 1.0.0
@@ -19476,11 +19460,11 @@ snapshots:
'@types/linkify-it@3.0.5': {}
'@types/lodash-es@4.17.6':
'@types/lodash-es@4.17.12':
dependencies:
'@types/lodash': 4.14.195
'@types/lodash': 4.17.17
'@types/lodash@4.14.195': {}
'@types/lodash@4.17.17': {}
'@types/long@4.0.2': {}
@@ -20942,10 +20926,10 @@ snapshots:
call-bind@1.0.7:
dependencies:
es-define-property: 1.0.0
es-define-property: 1.0.1
es-errors: 1.3.0
function-bind: 1.1.2
get-intrinsic: 1.2.4
get-intrinsic: 1.3.0
set-function-length: 1.2.2
call-bound@1.0.4:
@@ -20965,7 +20949,7 @@ snapshots:
camel-case@4.1.2:
dependencies:
pascal-case: 3.1.2
tslib: 2.6.2
tslib: 2.8.1
camelcase-css@2.0.1: {}
@@ -20982,7 +20966,7 @@ snapshots:
capital-case@1.0.4:
dependencies:
no-case: 3.0.4
tslib: 2.6.2
tslib: 2.8.1
upper-case-first: 2.0.2
caseless@0.12.0: {}
@@ -21347,7 +21331,7 @@ snapshots:
constant-case@3.0.4:
dependencies:
no-case: 3.0.4
tslib: 2.6.2
tslib: 2.8.1
upper-case: 2.0.2
constantinople@4.0.1:
@@ -21742,14 +21726,14 @@ snapshots:
dependencies:
call-bind: 1.0.7
es-get-iterator: 1.1.3
get-intrinsic: 1.2.4
get-intrinsic: 1.3.0
is-arguments: 1.1.1
is-array-buffer: 3.0.4
is-date-object: 1.0.5
is-regex: 1.1.4
is-shared-array-buffer: 1.0.3
isarray: 2.0.5
object-is: 1.1.5
object-is: 1.1.6
object-keys: 1.1.1
object.assign: 4.1.5
regexp.prototype.flags: 1.5.2
@@ -21882,7 +21866,7 @@ snapshots:
dot-case@3.0.4:
dependencies:
no-case: 3.0.4
tslib: 2.6.2
tslib: 2.8.1
dotenv@16.3.1: {}
@@ -21945,15 +21929,15 @@ snapshots:
'@element-plus/icons-vue': 2.3.1(vue@3.5.13(typescript@5.8.2))
'@floating-ui/dom': 1.4.5
'@popperjs/core': '@sxzz/popperjs-es@2.11.7'
'@types/lodash': 4.14.195
'@types/lodash-es': 4.17.6
'@types/lodash': 4.17.17
'@types/lodash-es': 4.17.12
'@vueuse/core': 9.13.0(vue@3.5.13(typescript@5.8.2))
async-validator: 4.2.5
dayjs: 1.11.10
escape-html: 1.0.3
lodash: 4.17.21
lodash-es: 4.17.21
lodash-unified: 1.0.3(@types/lodash-es@4.17.6)(lodash-es@4.17.21)(lodash@4.17.21)
lodash-unified: 1.0.3(@types/lodash-es@4.17.12)(lodash-es@4.17.21)(lodash@4.17.21)
memoize-one: 6.0.0
normalize-wheel-es: 1.2.0
vue: 3.5.13(typescript@5.8.2)
@@ -22140,7 +22124,7 @@ snapshots:
dependencies:
call-bind: 1.0.7
get-intrinsic: 1.3.0
has-symbols: 1.0.3
has-symbols: 1.1.0
is-arguments: 1.1.1
is-map: 2.0.2
is-set: 2.0.2
@@ -23294,7 +23278,7 @@ snapshots:
header-case@2.0.4:
dependencies:
capital-case: 1.0.4
tslib: 2.6.2
tslib: 2.8.1
heap@0.2.7: {}
@@ -24681,9 +24665,9 @@ snapshots:
lodash-es@4.17.21: {}
lodash-unified@1.0.3(@types/lodash-es@4.17.6)(lodash-es@4.17.21)(lodash@4.17.21):
lodash-unified@1.0.3(@types/lodash-es@4.17.12)(lodash-es@4.17.21)(lodash@4.17.21):
dependencies:
'@types/lodash-es': 4.17.6
'@types/lodash-es': 4.17.12
lodash: 4.17.21
lodash-es: 4.17.21
@@ -25553,7 +25537,7 @@ snapshots:
no-case@3.0.4:
dependencies:
lower-case: 2.0.2
tslib: 2.6.2
tslib: 2.8.1
nock@14.0.1:
dependencies:
@@ -25769,11 +25753,6 @@ snapshots:
object-inspect@1.13.4: {}
object-is@1.1.5:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
object-is@1.1.6:
dependencies:
call-bind: 1.0.7
@@ -25785,7 +25764,7 @@ snapshots:
dependencies:
call-bind: 1.0.7
define-properties: 1.2.1
has-symbols: 1.0.3
has-symbols: 1.1.0
object-keys: 1.1.1
object.entries@1.1.5:
@@ -25978,7 +25957,7 @@ snapshots:
param-case@3.0.4:
dependencies:
dot-case: 3.0.4
tslib: 2.6.2
tslib: 2.8.1
parent-module@1.0.1:
dependencies:
@@ -26026,14 +26005,14 @@ snapshots:
pascal-case@3.1.2:
dependencies:
no-case: 3.0.4
tslib: 2.6.2
tslib: 2.8.1
path-browserify@1.0.1: {}
path-case@3.0.4:
dependencies:
dot-case: 3.0.4
tslib: 2.6.2
tslib: 2.8.1
path-exists@4.0.0: {}
@@ -26667,13 +26646,6 @@ snapshots:
readline-sync@1.4.10: {}
recast@0.21.5:
dependencies:
ast-types: 0.15.2
esprima: 4.0.1
source-map: 0.6.1
tslib: 2.6.2
recast@0.22.0:
dependencies:
assert: 2.1.0
@@ -27081,7 +27053,7 @@ snapshots:
sentence-case@3.0.4:
dependencies:
no-case: 3.0.4
tslib: 2.6.2
tslib: 2.8.1
upper-case-first: 2.0.2
seq-queue@0.0.5: {}
@@ -27316,7 +27288,7 @@ snapshots:
snake-case@3.0.4:
dependencies:
dot-case: 3.0.4
tslib: 2.6.2
tslib: 2.8.1
snowflake-sdk@2.1.0(asn1.js@5.4.1)(encoding@0.1.13):
dependencies:
@@ -28814,7 +28786,7 @@ snapshots:
available-typed-arrays: 1.0.7
call-bind: 1.0.7
for-each: 0.3.3
gopd: 1.0.1
gopd: 1.2.0
has-tostringtag: 1.0.2
which@2.0.2:
@@ -29053,7 +29025,7 @@ snapshots:
yup@0.32.11:
dependencies:
'@babel/runtime': 7.26.10
'@types/lodash': 4.14.195
'@types/lodash': 4.17.17
lodash: 4.17.21
lodash-es: 4.17.21
nanoclone: 0.2.1