Skip to content

Commit 93c1abd

Browse files
authored
fix: update versions for several packages (#6558)
* fix: update versions for several packages * fix: review feedback * fix: lock file * fix: ci * fix: ci * fix: test coverage
1 parent b98ff81 commit 93c1abd

10 files changed

Lines changed: 1983 additions & 4167 deletions

File tree

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,20 @@
8686
"rollup": "4.45.0",
8787
"semver": "7.7.1",
8888
"set-value": "4.1.0",
89-
"solid-js": "1.9.7",
90-
"tar-fs": "3.1.0",
89+
"solid-js": "1.9.11",
90+
"protobufjs": ">=7.5.5",
91+
"tar-fs": "3.1.1",
9192
"unset-value": "2.0.1",
9293
"webpack-dev-middleware": "7.4.2",
9394
"ws": "8.18.3",
9495
"xlsx": "0.18.5",
9596
"uuid": "^10.0.0",
96-
"request>uuid": "^3.4.0"
97+
"request>uuid": "^3.4.0",
98+
"@tootallnate/once": ">=3.0.1",
99+
"tmp": ">=0.2.4",
100+
"@elastic/transport": ">=8.9.3",
101+
"@modelcontextprotocol/sdk": ">=1.25.2",
102+
"multer": ">=2.1.1"
97103
}
98104
},
99105
"engines": {
@@ -107,7 +113,7 @@
107113
"@langchain/core": "1.1.20",
108114
"@qdrant/openapi-typescript-fetch": "1.2.6",
109115
"openai": "6.19.0",
110-
"protobufjs": "7.4.0",
116+
"protobufjs": "7.5.5",
111117
"uuid": "^10.0.0"
112118
},
113119
"eslintIgnore": [

packages/components/jest.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ module.exports = {
2121
// multer-azure-blob-storage transitively pulls in azure-storage -> request@2.88.2 -> uuid/v4.
2222
// The uuid/v4 sub-path no longer exists in modern uuid versions, breaking module resolution.
2323
// Tests don't exercise Azure storage, so stubbing it out avoids the chain entirely.
24-
'^multer-azure-blob-storage$': '<rootDir>/__mocks__/esm-stub.js'
24+
'^multer-azure-blob-storage$': '<rootDir>/__mocks__/esm-stub.js',
25+
// @tootallnate/once@3+ ships ESM-only; it is pulled in transitively by
26+
// http-proxy-agent → jsdom. Jest cannot parse its `export default` syntax
27+
// in the default CJS environment, so stub it out.
28+
'^@tootallnate/once$': '<rootDir>/__mocks__/esm-stub.js'
2529
}
2630
}

packages/components/nodes/documentloaders/S3Directory/S3Directory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ICommonObject, INode, INodeData, INodeOptionsValue, INodeOutputsValue, INodeParams } from '../../../src/Interface'
22
import { handleDocumentLoaderDocuments, handleDocumentLoaderMetadata, handleDocumentLoaderOutput } from '../../../src/utils'
3-
import { getAWSCredentialConfig } from '../../../src/awsToolsUtils'
3+
import { getAWSCredentialConfig, AWSCredentials } from '../../../src/awsToolsUtils'
44
import { getSafeFilePath } from '../../../src/validator'
55
import { S3Client, GetObjectCommand, S3ClientConfig, ListObjectsV2Command, ListObjectsV2Output } from '@aws-sdk/client-s3'
66
import { getRegions, MODEL_TYPE } from '../../../src/modelLoader'
@@ -153,7 +153,7 @@ class S3_DocumentLoaders implements INode {
153153
const _omitMetadataKeys = nodeData.inputs?.omitMetadataKeys as string
154154
const output = nodeData.outputs?.output as string
155155

156-
let credentials: S3ClientConfig['credentials'] | undefined
156+
let credentials: AWSCredentials | undefined
157157
if (nodeData.credential) {
158158
const credentialConfig = await getAWSCredentialConfig(nodeData, options, region)
159159
credentials = credentialConfig.credentials

packages/components/nodes/documentloaders/S3File/S3File.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
HiResModelName
99
} from '@langchain/community/document_loaders/fs/unstructured'
1010
import { handleDocumentLoaderDocuments, handleDocumentLoaderMetadata, handleDocumentLoaderOutput } from '../../../src/utils'
11-
import { getAWSCredentialConfig } from '../../../src/awsToolsUtils'
11+
import { getAWSCredentialConfig, AWSCredentials } from '../../../src/awsToolsUtils'
1212
import { getSafeFilePath } from '../../../src/validator'
1313
import { S3Client, GetObjectCommand, HeadObjectCommand, S3ClientConfig } from '@aws-sdk/client-s3'
1414
import { getRegions, MODEL_TYPE } from '../../../src/modelLoader'
@@ -576,7 +576,7 @@ class S3_DocumentLoaders implements INode {
576576
omitMetadataKeys = _omitMetadataKeys.split(',').map((key) => key.trim())
577577
}
578578

579-
let credentials: S3ClientConfig['credentials'] | undefined
579+
let credentials: AWSCredentials | undefined
580580
if (nodeData.credential) {
581581
const credentialConfig = await getAWSCredentialConfig(nodeData, options, region)
582582
credentials = credentialConfig.credentials

packages/components/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
"@anthropic-ai/sdk": "^0.73.0",
3535
"@apidevtools/json-schema-ref-parser": "^11.7.0",
3636
"@arizeai/openinference-instrumentation-langchain": "^2.0.0",
37-
"@aws-sdk/client-bedrock": "3.966.0",
38-
"@aws-sdk/client-bedrock-runtime": "3.966.0",
39-
"@aws-sdk/client-dynamodb": "^3.360.0",
40-
"@aws-sdk/client-kendra": "^3.750.0",
41-
"@aws-sdk/client-s3": "^3.844.0",
42-
"@aws-sdk/client-secrets-manager": "^3.699.0",
43-
"@aws-sdk/client-sns": "^3.699.0",
44-
"@aws-sdk/client-sts": "^3.699.0",
37+
"@aws-sdk/client-bedrock": "^3.1014.0",
38+
"@aws-sdk/client-bedrock-runtime": "^3.1014.0",
39+
"@aws-sdk/client-dynamodb": "^3.1014.0",
40+
"@aws-sdk/client-kendra": "^3.1014.0",
41+
"@aws-sdk/client-s3": "^3.1014.0",
42+
"@aws-sdk/client-secrets-manager": "^3.1014.0",
43+
"@aws-sdk/client-sns": "^3.1014.0",
44+
"@aws-sdk/client-sts": "^3.1014.0",
4545
"@azure/storage-blob": "^12.29.0",
4646
"@brave/brave-search-mcp-server": "2.0.80",
4747
"@datastax/astra-db-ts": "1.5.0",
4848
"@dqbd/tiktoken": "^1.0.21",
4949
"@e2b/code-interpreter": "^1.5.1",
50-
"@elastic/elasticsearch": "^8.9.0",
50+
"@elastic/elasticsearch": "^8.16.0",
5151
"@elevenlabs/elevenlabs-js": "^2.8.0",
5252
"@getzep/zep-cloud": "~1.0.7",
5353
"@getzep/zep-js": "^0.9.0",
@@ -108,7 +108,7 @@
108108
"@opentelemetry/sdk-trace-base": "1.27.0",
109109
"@opentelemetry/semantic-conventions": "1.27.0",
110110
"@pinecone-database/pinecone": "4.0.0",
111-
"@qdrant/js-client-rest": "^1.17.0",
111+
"@qdrant/js-client-rest": "^1.18.0",
112112
"@stripe/agent-toolkit": "^0.1.20",
113113
"@supabase/supabase-js": "^2.29.0",
114114
"@types/js-yaml": "^4.0.5",
@@ -178,7 +178,7 @@
178178
"sanitize-filename": "^1.6.3",
179179
"srt-parser-2": "^1.2.3",
180180
"supergateway": "3.0.1",
181-
"typeorm": "^0.3.6",
181+
"typeorm": "^0.3.28",
182182
"uuid": "^10.0.0",
183183
"vm2": "3.11.2",
184184
"weaviate-client": "3.12.0",

packages/components/src/storage/S3StorageProvider.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,12 @@ export class S3StorageProvider extends BaseStorageProvider {
4343
}
4444

4545
const s3Config: S3ClientConfig = {
46-
region: region,
47-
forcePathStyle: forcePathStyle
48-
}
49-
50-
// Only include endpoint if customURL is not empty
51-
if (customURL && customURL.trim() !== '') {
52-
s3Config.endpoint = customURL
53-
}
54-
55-
if (accessKeyId && accessKeyId.trim() !== '' && secretAccessKey && secretAccessKey.trim() !== '') {
56-
s3Config.credentials = {
57-
accessKeyId: accessKeyId,
58-
secretAccessKey: secretAccessKey
59-
}
46+
region,
47+
forcePathStyle,
48+
...(customURL && customURL.trim() !== '' ? { endpoint: customURL } : {}),
49+
...(accessKeyId && accessKeyId.trim() !== '' && secretAccessKey && secretAccessKey.trim() !== ''
50+
? { credentials: { accessKeyId, secretAccessKey } }
51+
: {})
6052
}
6153

6254
const s3Client = new S3Client(s3Config)

packages/server/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
},
6363
"license": "SEE LICENSE IN LICENSE.md",
6464
"dependencies": {
65-
"@aws-sdk/client-secrets-manager": "^3.699.0",
65+
"@aws-sdk/client-secrets-manager": "^3.1014.0",
6666
"@bull-board/api": "^6.11.0",
6767
"@bull-board/express": "^6.11.0",
68-
"@modelcontextprotocol/sdk": "^1.10.1",
68+
"@modelcontextprotocol/sdk": "1.29.0",
6969
"@google-cloud/logging-winston": "^6.0.0",
7070
"@keyv/redis": "^4.2.0",
7171
"@oclif/core": "4.0.7",
@@ -121,7 +121,7 @@
121121
"lodash": "^4.17.21",
122122
"moment": "^2.29.3",
123123
"moment-timezone": "^0.5.34",
124-
"multer": "^2.0.2",
124+
"multer": "^2.1.1",
125125
"multer-azure-blob-storage": "^1.2.0",
126126
"multer-cloud-storage": "^4.0.0",
127127
"multer-s3": "^3.0.1",
@@ -148,7 +148,7 @@
148148
"sqlite3": "^5.1.6",
149149
"stripe": "^15.6.0",
150150
"turndown": "^7.2.0",
151-
"typeorm": "^0.3.6",
151+
"typeorm": "^0.3.28",
152152
"uuid": "^10.0.0",
153153
"winston": "^3.9.0",
154154
"winston-azure-blob": "^1.5.0",

packages/server/src/controllers/webhook/index.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ jest.mock('../../utils/logger', () => ({
4747
__esModule: true,
4848
default: { error: jest.fn(), warn: jest.fn(), info: jest.fn(), debug: jest.fn() }
4949
}))
50+
jest.mock('flowise-components', () => ({
51+
redactSensitiveHeaders: (headers: Record<string, any> | null | undefined): Record<string, any> => {
52+
if (!headers) return {}
53+
const SENSITIVE = new Set([
54+
'authorization',
55+
'proxy-authorization',
56+
'cookie',
57+
'set-cookie',
58+
'x-api-key',
59+
'x-auth-token',
60+
'x-amz-security-token'
61+
])
62+
return Object.fromEntries(Object.entries(headers).map(([k, v]) => [k, SENSITIVE.has(k.toLowerCase()) ? '[REDACTED]' : v]))
63+
}
64+
}))
5065

5166
import webhookController from './index'
5267

packages/server/src/services/validation/validateFlowData.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
jest.mock('flowise-components', () => ({}))
2+
jest.mock('../../utils/getRunningExpressApp', () => ({ getRunningExpressApp: jest.fn() }))
3+
jest.mock('../../utils/logger', () => ({
4+
__esModule: true,
5+
default: { error: jest.fn(), warn: jest.fn(), info: jest.fn(), debug: jest.fn() }
6+
}))
7+
18
import { validateFlowData, IValidationResult } from './index'
29
import type { IComponentNodes, IReactFlowNode, IReactFlowEdge } from '../../Interface'
310

0 commit comments

Comments
 (0)