mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 18:58:35 +08:00
chore: update deps (#38128)
This commit is contained in:
parent
93d6506443
commit
358cf8be33
@ -14,11 +14,31 @@
|
||||
"binName": "difyctl",
|
||||
"checksumsSuffix": "-checksums.txt",
|
||||
"targets": [
|
||||
{ "id": "linux-x64", "bunTarget": "bun-linux-x64", "exe": false },
|
||||
{ "id": "linux-arm64", "bunTarget": "bun-linux-arm64", "exe": false },
|
||||
{ "id": "darwin-x64", "bunTarget": "bun-darwin-x64", "exe": false },
|
||||
{ "id": "darwin-arm64", "bunTarget": "bun-darwin-arm64", "exe": false },
|
||||
{ "id": "windows-x64", "bunTarget": "bun-windows-x64", "exe": true }
|
||||
{
|
||||
"id": "linux-x64",
|
||||
"bunTarget": "bun-linux-x64",
|
||||
"exe": false
|
||||
},
|
||||
{
|
||||
"id": "linux-arm64",
|
||||
"bunTarget": "bun-linux-arm64",
|
||||
"exe": false
|
||||
},
|
||||
{
|
||||
"id": "darwin-x64",
|
||||
"bunTarget": "bun-darwin-x64",
|
||||
"exe": false
|
||||
},
|
||||
{
|
||||
"id": "darwin-arm64",
|
||||
"bunTarget": "bun-darwin-arm64",
|
||||
"exe": false
|
||||
},
|
||||
{
|
||||
"id": "windows-x64",
|
||||
"bunTarget": "bun-windows-x64",
|
||||
"exe": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@ -6312,9 +6312,6 @@
|
||||
},
|
||||
"ts/no-explicit-any": {
|
||||
"count": 5
|
||||
},
|
||||
"unicorn/prefer-number-properties": {
|
||||
"count": 2
|
||||
}
|
||||
},
|
||||
"web/app/components/workflow/panel/chat-variable-panel/components/object-value-list.tsx": {
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
"name": "dify",
|
||||
"type": "module",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@11.8.0",
|
||||
"packageManager": "pnpm@11.9.0",
|
||||
"devEngines": {
|
||||
"runtime": {
|
||||
"name": "node",
|
||||
|
||||
5925
pnpm-lock.yaml
generated
5925
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -51,30 +51,30 @@ overrides:
|
||||
yaml@>=2.0.0 <2.8.3: 2.9.0
|
||||
yauzl@<3.2.1: 3.2.1
|
||||
catalog:
|
||||
'@amplitude/analytics-browser': 2.44.1
|
||||
'@amplitude/plugin-session-replay-browser': 1.32.1
|
||||
'@antfu/eslint-config': 9.0.0
|
||||
'@amplitude/analytics-browser': 2.44.3
|
||||
'@amplitude/plugin-session-replay-browser': 1.32.3
|
||||
'@antfu/eslint-config': 9.1.0
|
||||
'@base-ui/react': 1.6.0
|
||||
'@chromatic-com/storybook': 5.2.1
|
||||
'@cucumber/cucumber': 13.0.0
|
||||
'@egoist/tailwindcss-icons': 1.9.2
|
||||
'@emoji-mart/data': 1.2.1
|
||||
'@eslint-react/eslint-plugin': 5.9.0
|
||||
'@eslint-react/eslint-plugin': 5.9.5
|
||||
'@eslint/js': 10.0.1
|
||||
'@floating-ui/react': 0.27.19
|
||||
'@formatjs/intl-localematcher': 0.8.10
|
||||
'@heroicons/react': 2.2.0
|
||||
'@hey-api/openapi-ts': 0.98.2
|
||||
'@hono/node-server': 2.0.5
|
||||
'@hey-api/openapi-ts': 0.99.0
|
||||
'@hono/node-server': 2.0.6
|
||||
'@iconify-json/heroicons': 1.2.3
|
||||
'@iconify-json/ri': 1.2.10
|
||||
'@lexical/code': 0.45.0
|
||||
'@lexical/link': 0.45.0
|
||||
'@lexical/list': 0.45.0
|
||||
'@lexical/react': 0.45.0
|
||||
'@lexical/selection': 0.45.0
|
||||
'@lexical/text': 0.45.0
|
||||
'@lexical/utils': 0.45.0
|
||||
'@lexical/code': 0.46.0
|
||||
'@lexical/link': 0.46.0
|
||||
'@lexical/list': 0.46.0
|
||||
'@lexical/react': 0.46.0
|
||||
'@lexical/selection': 0.46.0
|
||||
'@lexical/text': 0.46.0
|
||||
'@lexical/utils': 0.46.0
|
||||
'@mdx-js/loader': 3.1.1
|
||||
'@mdx-js/react': 3.1.1
|
||||
'@mdx-js/rollup': 3.1.1
|
||||
@ -86,10 +86,10 @@ catalog:
|
||||
'@orpc/contract': 1.14.6
|
||||
'@orpc/openapi-client': 1.14.6
|
||||
'@orpc/tanstack-query': 1.14.6
|
||||
'@playwright/test': 1.61.0
|
||||
'@playwright/test': 1.61.1
|
||||
'@remixicon/react': 4.9.0
|
||||
'@rgrove/parse-xml': 4.2.0
|
||||
'@sentry/react': 10.59.0
|
||||
'@rgrove/parse-xml': 4.2.1
|
||||
'@sentry/react': 10.62.0
|
||||
'@storybook/addon-a11y': 10.4.6
|
||||
'@storybook/addon-docs': 10.4.6
|
||||
'@storybook/addon-links': 10.4.6
|
||||
@ -105,13 +105,13 @@ catalog:
|
||||
'@tailwindcss/postcss': 4.3.1
|
||||
'@tailwindcss/typography': 0.5.20
|
||||
'@tailwindcss/vite': 4.3.1
|
||||
'@tanstack/eslint-plugin-query': 5.101.0
|
||||
'@tanstack/eslint-plugin-query': 5.101.2
|
||||
'@tanstack/form-core': 1.33.0
|
||||
'@tanstack/query-core': 5.101.0
|
||||
'@tanstack/query-core': 5.101.2
|
||||
'@tanstack/react-form': 1.33.0
|
||||
'@tanstack/react-hotkeys': 0.10.0
|
||||
'@tanstack/react-query': 5.101.0
|
||||
'@tanstack/react-virtual': 3.14.3
|
||||
'@tanstack/react-query': 5.101.2
|
||||
'@tanstack/react-virtual': 3.14.4
|
||||
'@testing-library/dom': 10.4.1
|
||||
'@testing-library/jest-dom': 6.9.1
|
||||
'@testing-library/react': 16.3.2
|
||||
@ -128,10 +128,10 @@ catalog:
|
||||
'@types/react': 19.2.17
|
||||
'@types/react-dom': 19.2.3
|
||||
'@types/sortablejs': 1.15.9
|
||||
'@typescript-eslint/eslint-plugin': 8.61.1
|
||||
'@typescript-eslint/parser': 8.61.1
|
||||
'@typescript/native-preview': 7.0.0-dev.20260620.1
|
||||
'@vitejs/plugin-react': 6.0.2
|
||||
'@typescript-eslint/eslint-plugin': 8.62.0
|
||||
'@typescript-eslint/parser': 8.62.0
|
||||
'@typescript/native-preview': 7.0.0-dev.20260627.2
|
||||
'@vitejs/plugin-react': 6.0.3
|
||||
'@vitejs/plugin-rsc': 0.5.27
|
||||
'@vitest/browser': 4.1.9
|
||||
'@vitest/browser-playwright': 4.1.9
|
||||
@ -145,10 +145,10 @@ catalog:
|
||||
cli-table3: 0.6.5
|
||||
clsx: 2.1.1
|
||||
cmdk: 1.1.1
|
||||
code-inspector-plugin: 1.6.1
|
||||
code-inspector-plugin: 1.6.2
|
||||
concurrently: ^10.0.3
|
||||
copy-to-clipboard: 4.0.2
|
||||
cron-parser: 5.6.0
|
||||
cron-parser: 5.6.1
|
||||
dayjs: 1.11.21
|
||||
decimal.js: 10.6.0
|
||||
dompurify: 3.4.11
|
||||
@ -159,8 +159,8 @@ catalog:
|
||||
embla-carousel-fade: 8.6.0
|
||||
embla-carousel-react: 8.6.0
|
||||
emoji-mart: 5.6.0
|
||||
es-toolkit: 1.47.1
|
||||
eslint: 10.5.0
|
||||
es-toolkit: 1.49.0
|
||||
eslint: 10.6.0
|
||||
eslint-markdown: 0.11.0
|
||||
eslint-plugin-better-tailwindcss: 4.6.0
|
||||
eslint-plugin-hyoban: 0.14.1
|
||||
@ -172,14 +172,14 @@ catalog:
|
||||
eslint-plugin-storybook: 10.4.6
|
||||
eventsource-parser: 3.1.0
|
||||
fast-deep-equal: 3.1.3
|
||||
foxact: 0.3.7
|
||||
foxact: 0.3.8
|
||||
fuse.js: 7.4.2
|
||||
happy-dom: 20.10.6
|
||||
hast-util-to-jsx-runtime: 2.3.6
|
||||
hono: 4.12.26
|
||||
hono: 4.12.27
|
||||
html-entities: 2.6.0
|
||||
html-to-image: 1.11.13
|
||||
i18next: 26.3.1
|
||||
i18next: 26.3.3
|
||||
i18next-resources-to-backend: 1.2.1
|
||||
iconify-import-svg: 0.2.0
|
||||
immer: 11.1.8
|
||||
@ -188,31 +188,31 @@ catalog:
|
||||
jotai-tanstack-query: 0.11.0
|
||||
js-audio-recorder: 1.0.7
|
||||
js-cookie: 3.0.8
|
||||
js-yaml: 4.2.0
|
||||
js-yaml: 4.3.0
|
||||
jsonschema: 1.5.0
|
||||
katex: 0.17.0
|
||||
knip: 6.17.1
|
||||
knip: 6.22.0
|
||||
ky: 2.0.2
|
||||
lamejs: 1.2.1
|
||||
lexical: 0.45.0
|
||||
lexical: 0.46.0
|
||||
lockfile: 1.0.4
|
||||
loro-crdt: 1.13.5
|
||||
mermaid: 11.15.0
|
||||
loro-crdt: 1.13.6
|
||||
mermaid: 11.16.0
|
||||
mime: 4.1.0
|
||||
mitt: 3.0.1
|
||||
motion: 12.40.0
|
||||
motion: 12.42.0
|
||||
negotiator: 1.0.0
|
||||
next: 16.2.9
|
||||
next-themes: 0.4.6
|
||||
nuqs: 2.8.9
|
||||
open: 11.0.0
|
||||
ora: 9.4.0
|
||||
ora: 9.4.1
|
||||
picocolors: 1.1.1
|
||||
pinyin-pro: 3.28.1
|
||||
playwright: 1.61.0
|
||||
postcss: 8.5.15
|
||||
playwright: 1.61.1
|
||||
postcss: 8.5.16
|
||||
qrcode.react: 4.2.0
|
||||
qs: 6.15.2
|
||||
qs: 6.15.3
|
||||
react: 19.2.7
|
||||
react-dom: 19.2.7
|
||||
react-easy-crop: 6.0.2
|
||||
@ -229,7 +229,7 @@ catalog:
|
||||
scheduler: 0.27.0
|
||||
server-only: 0.0.1
|
||||
sharp: 0.35.2
|
||||
shiki: 4.2.0
|
||||
shiki: 4.3.0
|
||||
socket.io-client: 4.8.3
|
||||
sortablejs: 1.15.7
|
||||
std-semver: 1.0.8
|
||||
@ -238,7 +238,7 @@ catalog:
|
||||
string-ts: 2.3.1
|
||||
tailwind-merge: 3.6.0
|
||||
tailwindcss: 4.3.1
|
||||
tldts: 7.4.3
|
||||
tldts: 7.4.4
|
||||
tsx: 4.22.4
|
||||
typescript: 6.0.3
|
||||
uglify-js: 3.19.3
|
||||
@ -246,7 +246,7 @@ catalog:
|
||||
unist-util-visit: 5.1.0
|
||||
use-context-selector: 2.0.0
|
||||
uuid: 14.0.1
|
||||
vinext: 0.1.6
|
||||
vinext: 0.1.8
|
||||
vite: npm:@voidzero-dev/vite-plus-core@0.2.1
|
||||
vite-plugin-inspect: 12.0.0-beta.3
|
||||
vite-plus: 0.2.1
|
||||
|
||||
@ -61,7 +61,7 @@ const ChatWrapper = () => {
|
||||
|
||||
const appSourceType = isInstalledApp ? AppSourceType.installedApp : AppSourceType.webApp
|
||||
const timezone = appSourceType === AppSourceType.webApp
|
||||
? Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
? new Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
: undefined
|
||||
|
||||
// Semantic variable for better code readability
|
||||
|
||||
@ -85,7 +85,7 @@ const ChatWrapper = () => {
|
||||
} as ChatConfig
|
||||
}, [appParams, currentConversationItem?.introduction])
|
||||
const timezone = appSourceType === AppSourceType.webApp
|
||||
? Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
? new Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
: undefined
|
||||
const {
|
||||
chatList,
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import type { CSSProperties } from 'react'
|
||||
|
||||
export function hexToRGBA(hex: string, opacity: number): string {
|
||||
hex = hex.replace('#', '')
|
||||
|
||||
@ -13,11 +15,11 @@ export function hexToRGBA(hex: string, opacity: number): string {
|
||||
* Since strings cannot be directly assigned to the 'style' attribute in JSX,
|
||||
* this method transforms the string into an object representation of the styles.
|
||||
*/
|
||||
export function CssTransform(cssString: string): object {
|
||||
export function CssTransform(cssString: string): CSSProperties {
|
||||
if (cssString.length === 0)
|
||||
return {}
|
||||
|
||||
const style: object = {}
|
||||
const style: CSSProperties = {}
|
||||
const propertyValuePairs = cssString.split(';')
|
||||
for (const pair of propertyValuePairs) {
|
||||
if (pair.trim().length > 0) {
|
||||
|
||||
@ -129,7 +129,8 @@ const nodeDefault: NodeDefault<ScheduleTriggerNodeType> = {
|
||||
// Validate timezone format if provided (timezone will be auto-filled by use-config.ts if undefined)
|
||||
if (!errorMessages && payload.timezone) {
|
||||
try {
|
||||
Intl.DateTimeFormat(undefined, { timeZone: payload.timezone })
|
||||
// eslint-disable-next-line no-new
|
||||
new Intl.DateTimeFormat(undefined, { timeZone: payload.timezone })
|
||||
}
|
||||
catch {
|
||||
errorMessages = t('nodes.triggerSchedule.invalidTimezone', { ns: 'workflow' })
|
||||
|
||||
@ -9,7 +9,7 @@ const resolveTimezone = (timezone?: string): string => {
|
||||
return timezone
|
||||
|
||||
try {
|
||||
return Intl.DateTimeFormat().resolvedOptions().timeZone || DEFAULT_TIMEZONE
|
||||
return new Intl.DateTimeFormat().resolvedOptions().timeZone || DEFAULT_TIMEZONE
|
||||
}
|
||||
catch {
|
||||
return DEFAULT_TIMEZONE
|
||||
|
||||
@ -53,7 +53,7 @@ const ObjectValueItem: FC<Props> = ({
|
||||
const newList = produce(list, (draft) => {
|
||||
draft[index].type = type
|
||||
if (type === ChatVarType.Number)
|
||||
draft[index].value = isNaN(Number(draft[index].value)) ? undefined : Number(draft[index].value)
|
||||
draft[index].value = Number.isNaN(Number(draft[index].value)) ? undefined : Number(draft[index].value)
|
||||
else
|
||||
draft[index].value = draft[index].value ? String(draft[index].value) : undefined
|
||||
})
|
||||
@ -64,7 +64,7 @@ const ObjectValueItem: FC<Props> = ({
|
||||
const handleValueChange = useCallback((index: number) => {
|
||||
return (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const newList = produce(list, (draft: any[]) => {
|
||||
draft[index].value = draft[index].type === ChatVarType.String ? e.target.value : isNaN(Number(e.target.value)) ? undefined : Number(e.target.value)
|
||||
draft[index].value = draft[index].type === ChatVarType.String ? e.target.value : Number.isNaN(Number(e.target.value)) ? undefined : Number(e.target.value)
|
||||
})
|
||||
onChange(newList)
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ type UseTimestampOptions = {
|
||||
}
|
||||
|
||||
const getBrowserTimezone = () => {
|
||||
return Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
return new Intl.DateTimeFormat().resolvedOptions().timeZone
|
||||
}
|
||||
|
||||
const useTimestamp = ({ timezone: timezoneOverride }: UseTimestampOptions = {}) => {
|
||||
|
||||
@ -10,5 +10,5 @@ export const getBrowserTimezone = () => {
|
||||
if (typeof Intl === 'undefined')
|
||||
return undefined
|
||||
|
||||
return Intl.DateTimeFormat().resolvedOptions().timeZone || undefined
|
||||
return new Intl.DateTimeFormat().resolvedOptions().timeZone || undefined
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user