From e04ceddda1c66e6bb5a90518a97b87872e99419f Mon Sep 17 00:00:00 2001 From: yifancong Date: Fri, 1 Nov 2024 18:10:02 +0800 Subject: [PATCH 1/8] fix(plugin): multi webpack plugin setSDK error (#573) --- packages/webpack-plugin/src/plugin.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/webpack-plugin/src/plugin.ts b/packages/webpack-plugin/src/plugin.ts index 971a8109..547335f6 100644 --- a/packages/webpack-plugin/src/plugin.ts +++ b/packages/webpack-plugin/src/plugin.ts @@ -44,8 +44,6 @@ export class RsdoctorWebpackPlugin public modulesGraph: ModuleGraph; - private outsideInstance = false; - public _bootstrapTask!: Promise; protected browserIsOpened = false; @@ -69,7 +67,6 @@ export class RsdoctorWebpackPlugin brief: this.options.brief, }, }); - this.outsideInstance = Boolean(this.options.sdkInstance); this.modulesGraph = new ModuleGraph(); this.chunkGraph = new ChunkGraph(); this.isRsdoctorPlugin = true; @@ -86,9 +83,8 @@ export class RsdoctorWebpackPlugin } // External instances do not need to be injected into the global. - if (!this.outsideInstance) { - setSDK(this.sdk); - } + setSDK(this.sdk); + // TODO: to fix the TypeError: Type instantiation is excessively deep and possibly infinite. // @ts-ignore new InternalSummaryPlugin(this).apply(compiler); From f25fc1f4edbd04ad203b02c2c9fdc407ebfbc892 Mon Sep 17 00:00:00 2001 From: ChuHoMan <74137084+ChuHoMan@users.noreply.github.com> Date: Sun, 3 Nov 2024 20:54:17 +0800 Subject: [PATCH 2/8] docs: fix typo (#575) --- packages/document/docs/zh/config/options/options-shared.mdx | 2 +- packages/document/docs/zh/config/options/options.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/document/docs/zh/config/options/options-shared.mdx b/packages/document/docs/zh/config/options/options-shared.mdx index 64e2e425..8e68385d 100644 --- a/packages/document/docs/zh/config/options/options-shared.mdx +++ b/packages/document/docs/zh/config/options/options-shared.mdx @@ -35,7 +35,7 @@ features 属性是用于分析功能开关的,具体的功能项如下: - **resolver**:resolver 分析,默认关闭。 - **lite**: **(废弃,参考:[mode.lite]())** lite 模式。lite 模式和普通模式的区别就是不再缓存源码信息,只缓存打包后的代码信息,这样分析页面上的代码也将是打包后的。默认普通模式。 -所以,**默认配置是开启了 Bundle 分析能力、 Loader he Plugin 构建时分析**。没有开启 Resolver 分析能力, Rspack 暂不支持 Resolver 分析能力。 +所以,**默认配置是开启了 Bundle 分析能力、 Loader 和 Plugin 构建时分析**。没有开启 Resolver 分析能力, Rspack 暂不支持 Resolver 分析能力。 :::tip **如果出现了 out of memory 的报错,可以尝试:** diff --git a/packages/document/docs/zh/config/options/options.mdx b/packages/document/docs/zh/config/options/options.mdx index 024459f6..3a489aa3 100644 --- a/packages/document/docs/zh/config/options/options.mdx +++ b/packages/document/docs/zh/config/options/options.mdx @@ -105,7 +105,7 @@ features 属性是用于分析功能开关的,具体的功能项如下: - **resolver**:resolver 分析,默认关闭。 - **lite**: **(废弃,使用 [mode.lite](#mode))** lite 模式。lite 模式和普通模式的区别就是不再展示源码信息,只展示打包后的代码信息,这样分析页面上的代码也将是打包后的。默认普通模式。 -所以,**默认配置是开启了 Bundle 分析能力、 Loader he Plugin 构建时分析**。没有开启 Resolver 分析能力, Rspack 暂不支持 Resolver 分析能力。 +所以,**默认配置是开启了 Bundle 分析能力、 Loader 和 Plugin 构建时分析**。没有开启 Resolver 分析能力, Rspack 暂不支持 Resolver 分析能力。 :::tip **如果出现了 out of memory 的报错,可以尝试:** From d127593205aae57b4f5a2966bd24413c9ba801cf Mon Sep 17 00:00:00 2001 From: yifancong Date: Mon, 4 Nov 2024 15:50:31 +0800 Subject: [PATCH 3/8] chore: add changesets (#580) --- .changeset/lucky-otters-change.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lucky-otters-change.md diff --git a/.changeset/lucky-otters-change.md b/.changeset/lucky-otters-change.md new file mode 100644 index 00000000..86e865a9 --- /dev/null +++ b/.changeset/lucky-otters-change.md @@ -0,0 +1,5 @@ +--- +'@rsdoctor/webpack-plugin': patch +--- + +chore: add changesets. From c4b036455bc00169c50ec4af6fe9df8d053079ba Mon Sep 17 00:00:00 2001 From: yifancong Date: Mon, 4 Nov 2024 16:04:15 +0800 Subject: [PATCH 4/8] Release v0.4.8 (#581) Co-authored-by: github-actions[bot] --- .changeset/lucky-otters-change.md | 5 ----- packages/cli/package.json | 2 +- packages/client/package.json | 2 +- packages/components/package.json | 2 +- packages/core/package.json | 2 +- packages/document/package.json | 2 +- packages/graph/package.json | 2 +- packages/rspack-plugin/package.json | 2 +- packages/sdk/package.json | 2 +- packages/types/package.json | 2 +- packages/utils/package.json | 2 +- packages/webpack-plugin/package.json | 2 +- 12 files changed, 11 insertions(+), 16 deletions(-) delete mode 100644 .changeset/lucky-otters-change.md diff --git a/.changeset/lucky-otters-change.md b/.changeset/lucky-otters-change.md deleted file mode 100644 index 86e865a9..00000000 --- a/.changeset/lucky-otters-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@rsdoctor/webpack-plugin': patch ---- - -chore: add changesets. diff --git a/packages/cli/package.json b/packages/cli/package.json index 5290c812..8c62310d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/cli", - "version": "0.4.7", + "version": "0.4.8", "repository": { "type": "git", "url": "https://github.com/web-infra-dev/rsdoctor", diff --git a/packages/client/package.json b/packages/client/package.json index 97de9c2f..0ecb8911 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/client", - "version": "0.4.7", + "version": "0.4.8", "main": "dist/index.html", "repository": { "type": "git", diff --git a/packages/components/package.json b/packages/components/package.json index ffaa8bd4..717bc9d1 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/components", - "version": "0.4.7", + "version": "0.4.8", "main": "./dist/index.js", "license": "MIT", "module": "dist/index.js", diff --git a/packages/core/package.json b/packages/core/package.json index ab99c392..178ad403 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/core", - "version": "0.4.7", + "version": "0.4.8", "repository": { "type": "git", "url": "https://github.com/web-infra-dev/rsdoctor", diff --git a/packages/document/package.json b/packages/document/package.json index 42a38fb5..980422ef 100644 --- a/packages/document/package.json +++ b/packages/document/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/docs", - "version": "0.4.7", + "version": "0.4.8", "scripts": { "dev": "rspress dev", "build": "rspress build", diff --git a/packages/graph/package.json b/packages/graph/package.json index 21284bce..e5840eb3 100644 --- a/packages/graph/package.json +++ b/packages/graph/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/graph", - "version": "0.4.7", + "version": "0.4.8", "repository": { "type": "git", "url": "https://github.com/web-infra-dev/rsdoctor", diff --git a/packages/rspack-plugin/package.json b/packages/rspack-plugin/package.json index ebe8e79d..e7536bc6 100644 --- a/packages/rspack-plugin/package.json +++ b/packages/rspack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/rspack-plugin", - "version": "0.4.7", + "version": "0.4.8", "repository": { "type": "git", "url": "https://github.com/web-infra-dev/rsdoctor", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 46ab0317..038741f9 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/sdk", - "version": "0.4.7", + "version": "0.4.8", "repository": { "type": "git", "url": "https://github.com/web-infra-dev/rsdoctor", diff --git a/packages/types/package.json b/packages/types/package.json index e9caba80..78b0fcc2 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/types", - "version": "0.4.7", + "version": "0.4.8", "repository": { "type": "git", "url": "https://github.com/web-infra-dev/rsdoctor", diff --git a/packages/utils/package.json b/packages/utils/package.json index 60e9b2f2..866f22c9 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/utils", - "version": "0.4.7", + "version": "0.4.8", "repository": { "type": "git", "url": "https://github.com/web-infra-dev/rsdoctor", diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index d3bd5317..9b6a67aa 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@rsdoctor/webpack-plugin", - "version": "0.4.7", + "version": "0.4.8", "repository": { "type": "git", "url": "https://github.com/web-infra-dev/rsdoctor", From 009262e2e92cc6d7f3efc549bd22013e05a6956b Mon Sep 17 00:00:00 2001 From: ChuHoMan <74137084+ChuHoMan@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:11:42 +0800 Subject: [PATCH 5/8] feat: Automatically switch language when first visit (#574) --- .../src/components/Layout/index.tsx | 27 ++++++++++++++++--- packages/components/src/utils/locale.ts | 6 +++++ packages/components/src/utils/storage.tsx | 9 +++++++ 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/packages/components/src/components/Layout/index.tsx b/packages/components/src/components/Layout/index.tsx index c4934724..388a5809 100644 --- a/packages/components/src/components/Layout/index.tsx +++ b/packages/components/src/components/Layout/index.tsx @@ -1,8 +1,14 @@ import { PropsWithChildren, useContext, useEffect } from 'react'; import { FloatButton, Layout as L } from 'antd'; -import { MAIN_BG, Size } from '../../constants'; +import { Language, MAIN_BG, Size } from '../../constants'; import { Header } from './header'; -import { useLocale, useI18n } from '../../utils'; +import { + useLocale, + useI18n, + getFirstVisitFromStorage, + setFirstVisitToStorage, + getLanguage, +} from '../../utils'; import { Progress } from './progress'; import { ConfigContext } from '../../config'; @@ -16,8 +22,21 @@ export const Layout = (props: PropsWithChildren): JSX.Element => { const { children } = props; useEffect(() => { - if (i18n.language !== locale) { - i18n.changeLanguage(locale); + let currentLocale = locale; + // Check if the user is visiting the site for the first time + const visited = getFirstVisitFromStorage(); + if (!visited) { + setFirstVisitToStorage('1'); + const targetLang = window.navigator.language.split('-')[0]; + const userLang = getLanguage(targetLang); + + if (Object.values(Language).includes(userLang)) { + currentLocale = userLang; + } + } + + if (i18n.language !== currentLocale) { + i18n.changeLanguage(currentLocale); } }, [locale]); diff --git a/packages/components/src/utils/locale.ts b/packages/components/src/utils/locale.ts index 5b18b4ff..c566e8fa 100644 --- a/packages/components/src/utils/locale.ts +++ b/packages/components/src/utils/locale.ts @@ -1,8 +1,14 @@ import cn from 'antd/es/locale/zh_CN'; import en from 'antd/es/locale/en_GB'; import type { Locale } from 'antd/es/locale'; +import { Language } from '../constants'; export function getLocale(locale: string): Locale { const res = locale === 'cn' || locale === 'zh-CN' ? cn : en; return res; } + +export function getLanguage(locale: string): Language { + const res = locale === 'cn' || locale === 'zh' ? Language.Cn : Language.En; + return res; +} diff --git a/packages/components/src/utils/storage.tsx b/packages/components/src/utils/storage.tsx index 913080c4..b136ea34 100644 --- a/packages/components/src/utils/storage.tsx +++ b/packages/components/src/utils/storage.tsx @@ -7,6 +7,7 @@ enum Keys { Locale = 'LOCALE', ViewMode = 'VIEWMODE', APILoaderMode4Dev = 'APILOADERMODE_DEV', + FirstVisit = 'FIRST_VISIT' } export function getStorage(key: string): string | null { @@ -67,3 +68,11 @@ export function setAPILoaderModeToStorage(mode: APILoaderMode4Dev) { export function getAPILoaderModeFromStorage() { return getStorage(Keys.APILoaderMode4Dev) || APILoaderMode4Dev.Default; } + +export function getFirstVisitFromStorage() { + return getStorage(Keys.FirstVisit); +} + +export function setFirstVisitToStorage(value: '1') { + setStorage(Keys.FirstVisit, value); +} From 68eff2b99f88bd4663f18d1927f6ea1f71ce3446 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:17:27 +0800 Subject: [PATCH 6/8] chore(deps): update dependency react-error-boundary to ^4.1.2 (#570) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/client/package.json | 2 +- pnpm-lock.yaml | 33 +++++++++------------------------ 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index 0ecb8911..872e3c8d 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -43,7 +43,7 @@ "normalize.css": "8.0.1", "react": "18.3.1", "react-dom": "18.3.1", - "react-error-boundary": "^4.0.13", + "react-error-boundary": "^4.1.2", "react-router-dom": "6.4.3", "serve-static": "1.16.2", "typescript": "^5.2.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e831896..3dfaab50 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -507,8 +507,8 @@ importers: specifier: 18.3.1 version: 18.3.1(react@18.3.1) react-error-boundary: - specifier: ^4.0.13 - version: 4.0.13(react@18.3.1) + specifier: ^4.1.2 + version: 4.1.2(react@18.3.1) react-router-dom: specifier: 6.4.3 version: 6.4.3(react-dom@18.3.1)(react@18.3.1) @@ -668,7 +668,7 @@ importers: devDependencies: '@rspack/core': specifier: 1.0.11 - version: 1.0.11 + version: 1.0.11(@swc/helpers@0.5.13) '@scripts/test-helper': specifier: workspace:* version: link:../../scripts/test-helper @@ -828,7 +828,7 @@ importers: devDependencies: '@rspack/core': specifier: 1.0.11 - version: 1.0.11 + version: 1.0.11(@swc/helpers@0.5.13) '@types/lodash': specifier: ^4.17.10 version: 4.17.10 @@ -935,7 +935,7 @@ importers: devDependencies: '@rspack/core': specifier: 1.0.11 - version: 1.0.11 + version: 1.0.11(@swc/helpers@0.5.13) '@types/node': specifier: ^16 version: 16.18.104 @@ -6740,21 +6740,6 @@ packages: '@swc/helpers': 0.5.12 caniuse-lite: 1.0.30001669 - /@rspack/core@1.0.11: - resolution: {integrity: sha512-DpBPc7kDNogjXU2m+wVbdarEY366kTrZlDHxynuBY0snpB9j03vj+R/j3VfzTL84j5fqOMTb3tcu91DlVVp3UQ==} - engines: {node: '>=16.0.0'} - peerDependencies: - '@swc/helpers': '>=0.5.1' - peerDependenciesMeta: - '@swc/helpers': - optional: true - dependencies: - '@module-federation/runtime-tools': 0.5.1 - '@rspack/binding': 1.0.11 - '@rspack/lite-tapable': 1.0.1 - caniuse-lite: 1.0.30001662 - dev: true - /@rspack/core@1.0.11(@swc/helpers@0.5.13): resolution: {integrity: sha512-DpBPc7kDNogjXU2m+wVbdarEY366kTrZlDHxynuBY0snpB9j03vj+R/j3VfzTL84j5fqOMTb3tcu91DlVVp3UQ==} engines: {node: '>=16.0.0'} @@ -6768,7 +6753,7 @@ packages: '@rspack/binding': 1.0.11 '@rspack/lite-tapable': 1.0.1 '@swc/helpers': 0.5.13 - caniuse-lite: 1.0.30001669 + caniuse-lite: 1.0.30001662 /@rspack/dev-server@1.0.0(@rspack/core@1.0.0)(webpack@5.95.0): resolution: {integrity: sha512-ORrF+p31/jLS7tmXp7VLAX654NVpO0jNc9VM9ueG5LAyvf4d+Bo6zhFQTWsoW30uh/Xd1EZjfu+9zu4jn8Zv4Q==} @@ -16100,8 +16085,8 @@ packages: react: 18.3.1 scheduler: 0.23.2 - /react-error-boundary@4.0.13(react@18.3.1): - resolution: {integrity: sha512-b6PwbdSv8XeOSYvjt8LpgpKrZ0yGdtZokYwkwV2wlcZbxgopHX/hgPl5VgpnoVOWd868n1hktM8Qm4b+02MiLQ==} + /react-error-boundary@4.1.2(react@18.3.1): + resolution: {integrity: sha512-GQDxZ5Jd+Aq/qUxbCm1UtzmL/s++V7zKgE8yMktJiCQXCCFZnMZh9ng+6/Ne6PjNSXH0L9CjeOEREfRnq6Duag==} peerDependencies: react: '>=16.13.1' dependencies: @@ -19293,7 +19278,7 @@ packages: '@webassemblyjs/wasm-parser': 1.12.1 acorn: 8.12.1 acorn-import-attributes: 1.9.5(acorn@8.12.1) - browserslist: 4.24.0 + browserslist: 4.23.3 chrome-trace-event: 1.0.4 enhanced-resolve: 5.17.1 es-module-lexer: 1.5.4 From 46069face9ec096f46e274a8f440a9c26bc83128 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:17:41 +0800 Subject: [PATCH 7/8] chore(deps): update dependency @modern-js/generator-utils to ^3.7.2 (#569) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- pnpm-lock.yaml | 65 +++++++++++++++++++--------- scripts/update-packages/package.json | 2 +- 2 files changed, 45 insertions(+), 22 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3dfaab50..e0669909 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1131,8 +1131,8 @@ importers: specifier: ^2.2.2 version: 2.2.2 '@modern-js/generator-utils': - specifier: ^3.6.3 - version: 3.6.3(@modern-js/codesmith@2.6.4)(typescript@5.6.2) + specifier: ^3.7.2 + version: 3.7.2(@modern-js/codesmith@2.6.5)(typescript@5.6.2) fs-extra: specifier: ^11.1.1 version: 11.2.0 @@ -4844,23 +4844,23 @@ packages: - supports-color dev: true - /@modern-js/codesmith-formily@2.5.2(@modern-js/codesmith@2.6.4)(typescript@5.6.2): - resolution: {integrity: sha512-Oj6278W/kwAc4u/1g3QHwlfgMiQvZq1nUvNEPUCRsvWOp0+fq2kr+ocHJsBoa8xM7AFCnBml+5MHN2V5Lx2zTw==} + /@modern-js/codesmith-formily@2.6.5(@modern-js/codesmith@2.6.5)(typescript@5.6.2): + resolution: {integrity: sha512-FFbp9eBGd3Kr62O8HHBhwv8+aeTBXvvmQ0+BRt2fhbQ8Dpz0HLtIcSuAuawROQYif0VzIKBZscCvmpxkko400A==} peerDependencies: - '@modern-js/codesmith': ^2.5.2 + '@modern-js/codesmith': ^2.6.5 dependencies: '@formily/json-schema': 2.3.2(typescript@5.6.2) '@formily/validator': 2.3.2 - '@modern-js/codesmith': 2.6.4 - '@modern-js/utils': 2.60.3 + '@modern-js/codesmith': 2.6.5 + '@modern-js/codesmith-utils': 2.6.5 '@swc/helpers': 0.5.1 inquirer: 8.2.6 transitivePeerDependencies: - typescript dev: false - /@modern-js/codesmith-utils@2.6.4: - resolution: {integrity: sha512-x/n3Q00k6r+SESAy3ABnY2aGxtyd1K30QKP+sQbOgCbFbKI0elbpabYaxLGDxr3MZNKY2sezPKoq6J+jzuL8AA==} + /@modern-js/codesmith-utils@2.6.5: + resolution: {integrity: sha512-sAEqSANgO3fKb/OZuq/IO6iFt+1Mn82NgkgK5sUqdJCgSJ83fxcUB9/h7GywVAwKkogc7M+kVbscInCTqqRXow==} dependencies: '@swc/helpers': 0.5.1 chalk: 4.1.2 @@ -4877,10 +4877,10 @@ packages: semver: 7.6.0 dev: false - /@modern-js/codesmith@2.6.4: - resolution: {integrity: sha512-O/xR5rK5w86x0stoGgVWxxG1pqnruB1D2SB2hN9+tOWN+Lied3oyIJ8PHTWFIpHAWvSdk4lqigd5CAEPfD8KCQ==} + /@modern-js/codesmith@2.6.5: + resolution: {integrity: sha512-AxQuFAl63KDA8Izv0W12/IrMsPLrbc9/jU0dEzCHJKx8bpeqJiCtxdAUx7idb39zzP6xux+2qi1ETMF5WUaUQQ==} dependencies: - '@modern-js/codesmith-utils': 2.6.4 + '@modern-js/codesmith-utils': 2.6.5 '@swc/helpers': 0.5.1 axios: 1.7.7(debug@4.3.7) debug: 4.3.7 @@ -4898,24 +4898,27 @@ packages: '@swc/helpers': 0.5.13 dev: true - /@modern-js/generator-common@3.6.3(@modern-js/codesmith@2.6.4)(typescript@5.6.2): - resolution: {integrity: sha512-DnmsFO0gk43moizXze5JdOiebzl8QIzBl5cx+OBY7giVUP7zt/VRLxNFcvlAcqlIXTPCid3c0NrS7TAtaeWOvQ==} + /@modern-js/generator-common@3.7.2(@modern-js/codesmith@2.6.5)(typescript@5.6.2): + resolution: {integrity: sha512-f8OyB64AIn12dWZSrdg5q87Rxh0UC/7NzQLtz4WtXF3d73GzBpsGiSocSn3LJWsPbsyeiz/yZN3cHhPm0PCqgw==} dependencies: - '@modern-js/codesmith-formily': 2.5.2(@modern-js/codesmith@2.6.4)(typescript@5.6.2) - '@modern-js/plugin-i18n': 2.60.3 + '@modern-js/codesmith-formily': 2.6.5(@modern-js/codesmith@2.6.5)(typescript@5.6.2) + '@modern-js/plugin-i18n': 2.60.6 '@swc/helpers': 0.5.13 transitivePeerDependencies: - '@modern-js/codesmith' - typescript dev: false - /@modern-js/generator-utils@3.6.3(@modern-js/codesmith@2.6.4)(typescript@5.6.2): - resolution: {integrity: sha512-GQAa/GzbvwBztlHeiLDslRWcDqxybMDeMoEZXsXgUWmO3Mhj7XQx4RD9/v/iCKk6UgPDkS8o14cmF39oHEtQjQ==} + /@modern-js/generator-utils@3.7.2(@modern-js/codesmith@2.6.5)(typescript@5.6.2): + resolution: {integrity: sha512-qA0v2MTGjCHVNqZ68kSMahlJv/wg+EIKAYqU3tLXXffq0ktJBe94vYW2ebW9bwNiSozK2XrJ8S0NUYIigCF3CA==} dependencies: - '@modern-js/generator-common': 3.6.3(@modern-js/codesmith@2.6.4)(typescript@5.6.2) - '@modern-js/plugin-i18n': 2.60.3 - '@modern-js/utils': 2.60.3 + '@modern-js/codesmith-utils': 2.6.5 + '@modern-js/generator-common': 3.7.2(@modern-js/codesmith@2.6.5)(typescript@5.6.2) + '@modern-js/plugin-i18n': 2.60.6 '@swc/helpers': 0.5.13 + glob: 7.2.3 + js-yaml: 4.1.0 + json5: 2.2.3 transitivePeerDependencies: - '@modern-js/codesmith' - typescript @@ -5007,6 +5010,14 @@ packages: dependencies: '@modern-js/utils': 2.60.3 '@swc/helpers': 0.5.13 + dev: true + + /@modern-js/plugin-i18n@2.60.6: + resolution: {integrity: sha512-0yVbRH/bkXEs7oh75GcPaK9CqV+j+UPNVGOIvMliH3ZmHnesGDbK9huzYscBfoDb9zNLmArI9lNsDmS/074mAQ==} + dependencies: + '@modern-js/utils': 2.60.6 + '@swc/helpers': 0.5.13 + dev: false /@modern-js/plugin@2.60.3: resolution: {integrity: sha512-nWyCemxpXfngfWJamfHihBYh0sOQ3MuQleRpFTY3qMwtemmPr8SJPIZuoP/svA3mccOVmdlYNoFeRP3adqC89g==} @@ -5366,6 +5377,15 @@ packages: lodash: 4.17.21 rslog: 1.2.3 + /@modern-js/utils@2.60.6: + resolution: {integrity: sha512-rAeqAHiUUnStwBTkP1tdQSz29o/Qtoc2OUfz6TEAtEPoAxcFSc44+hwux7mQkSxXSzBjkbev5RMkwVwuM2FWtw==} + dependencies: + '@swc/helpers': 0.5.13 + caniuse-lite: 1.0.30001669 + lodash: 4.17.21 + rslog: 1.2.3 + dev: false + /@module-federation/runtime-tools@0.1.6: resolution: {integrity: sha512-7ILVnzMIa0Dlc0Blck5tVZG1tnk1MmLnuZpLOMpbdW+zl+N6wdMjjHMjEZFCUAJh2E5XJ3BREwfX8Ets0nIkLg==} dependencies: @@ -11463,6 +11483,7 @@ packages: /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported dependencies: fs.realpath: 1.0.0 inflight: 1.0.6 @@ -12642,6 +12663,7 @@ packages: /js-yaml@4.1.0: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true dependencies: argparse: 2.0.1 @@ -12693,6 +12715,7 @@ packages: /json5@2.2.3: resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} engines: {node: '>=6'} + hasBin: true /jsonc-parser@3.2.0: resolution: {integrity: sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==} diff --git a/scripts/update-packages/package.json b/scripts/update-packages/package.json index 3d0e9dd3..ab6b2c79 100644 --- a/scripts/update-packages/package.json +++ b/scripts/update-packages/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@manypkg/get-packages": "^2.2.2", - "@modern-js/generator-utils": "^3.6.3", + "@modern-js/generator-utils": "^3.7.2", "fs-extra": "^11.1.1" }, "devDependencies": { From c3a64ca911045ee41120a6d2821ca8298bac146a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:17:59 +0800 Subject: [PATCH 8/8] chore(deps): update dependency terser to ^5.36.0 (#576) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- packages/components/package.json | 2 +- pnpm-lock.yaml | 27 +++++++++++++++++++-------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index 717bc9d1..aed8b7b1 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -81,7 +81,7 @@ "react-markdown": "^9.0.1", "react-router-dom": "6.4.3", "socket.io-client": "4.6.1", - "terser": "^5.34.1", + "terser": "^5.36.0", "typescript": "^5.2.2", "url-parse": "1.5.10" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e0669909..d64c22a1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -615,8 +615,8 @@ importers: specifier: 4.6.1 version: 4.6.1 terser: - specifier: ^5.34.1 - version: 5.34.1 + specifier: ^5.36.0 + version: 5.36.0 typescript: specifier: ^5.2.2 version: 5.5.4 @@ -6155,7 +6155,7 @@ packages: dependencies: '@rsbuild/core': 1.0.14 deepmerge: 4.3.1 - terser: 5.34.1 + terser: 5.36.0 dev: true /@rsbuild/plugin-sass@0.7.10(@rsbuild/core@0.7.10): @@ -11915,7 +11915,7 @@ packages: he: 1.2.0 param-case: 3.0.4 relateurl: 0.2.7 - terser: 5.34.1 + terser: 5.36.0 dev: true /html-minifier-terser@7.2.0: @@ -11929,7 +11929,7 @@ packages: entities: 4.5.0 param-case: 3.0.4 relateurl: 0.2.7 - terser: 5.34.1 + terser: 5.36.0 dev: true /html-parse-stringify@3.0.1: @@ -18082,7 +18082,7 @@ packages: jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 - terser: 5.34.1 + terser: 5.36.0 webpack: 5.95.0(esbuild@0.17.19) dev: true @@ -18106,7 +18106,7 @@ packages: jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 - terser: 5.34.1 + terser: 5.36.0 webpack: 5.94.0(webpack-cli@5.1.4) /terser-webpack-plugin@5.3.10(webpack@5.95.0): @@ -18129,7 +18129,7 @@ packages: jest-worker: 27.5.1 schema-utils: 3.3.0 serialize-javascript: 6.0.2 - terser: 5.34.1 + terser: 5.36.0 webpack: 5.95.0 /terser@5.34.1: @@ -18141,6 +18141,17 @@ packages: acorn: 8.12.1 commander: 2.20.3 source-map-support: 0.5.21 + dev: true + + /terser@5.36.0: + resolution: {integrity: sha512-IYV9eNMuFAV4THUspIRXkLakHnV6XO7FEdtKjf/mDyrnqUg9LnlOn6/RwRvM9SZjR4GUq8Nk8zj67FzVARr74w==} + engines: {node: '>=10'} + hasBin: true + dependencies: + '@jridgewell/source-map': 0.3.6 + acorn: 8.12.1 + commander: 2.20.3 + source-map-support: 0.5.21 /text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==}