Skip to content

Commit 1fb3adb

Browse files
chore: Updated dependencies (#603)
* chore: Updated dependencies * chore: update dependency overrides in development guide * chore: clean up plugin options in prepareModuleFederationPluginForSnapshot
1 parent 5ecd7b3 commit 1fb3adb

50 files changed

Lines changed: 3385 additions & 4555 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/big-buses-lead.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"@squide/firefly-module-federation": patch
3+
"@squide/firefly-rsbuild-configs": patch
4+
"@squide/firefly-webpack-configs": patch
5+
"@squide/firefly-storybook": patch
6+
"@squide/launch-darkly": patch
7+
"@squide/react-router": patch
8+
"@squide/env-vars": patch
9+
"@squide/firefly": patch
10+
"@squide/i18next": patch
11+
"@squide/fakes": patch
12+
"@squide/core": patch
13+
"@squide/msw": patch
14+
---
15+
16+
Bumped dependencies.

agent-docs/references/development.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ Samples are deployed to Netlify:
5353

5454
Use `pnpm add -D --save-exact <package>` (or `pnpm add -DE <package>`) to ensure exact versions.
5555

56+
### Pinned transitive dependencies (pnpm overrides)
57+
58+
`pnpm-workspace.yaml` has an `overrides:` block that pins transitive deps to specific versions. Each entry exists for a concrete reason — do NOT remove or relax them without verifying the underlying issue is gone (test builds AND tests, not just `pnpm install`):
59+
60+
- **`terser-webpack-plugin: 5.4.0`** — 5.6.0 leaks `extractComments` into swc-minify options, which swc rejects. `@workleap/webpack-configs` uses `TerserPlugin.swcMinify`, so without this pin the `basic-webpack` sample's webpack build fails with `unknown field 'extractComments'`.
61+
62+
**Important pnpm v11 quirk:** changing an `overrides` entry does NOT trigger re-resolution on `pnpm install` (even with `--force` or `--no-frozen-lockfile`) — pnpm reports "Already up to date" and leaves the old versions in the lockfile. To apply override changes, delete `pnpm-lock.yaml` and run `pnpm install --lockfile-only`.
63+
5664
## Adding a New Package
5765

5866
1. Create a folder under `packages/` matching the package name.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@
3636
"reset": "pnpm clean && pnpm run --sequential \"/^reset:.*/\"",
3737
"reset:modules": "pnpm -r --parallel --include-workspace-root exec pnpx rimraf node_modules pnpm-lock.yaml",
3838
"reset:templates": "cd templates/getting-started && pnpm reset:modules",
39-
"list-outdated-deps": "pnpm outdated -r --format list !eslint !@eslint/js !typescript-eslint !useless-lib !@module-federation/enhanced !@module-federation/rsbuild-plugin",
39+
"list-outdated-deps": "pnpm outdated -r --format list !eslint !@eslint/js !typescript-eslint !useless-lib",
4040
"update-outdated-deps": "pnpm run --sequential \"/^update-outdated-deps:.*/\"",
41-
"update-outdated-deps:update-versions": "pnpm update -r --latest !eslint !@eslint/js !typescript-eslint !useless-lib !@module-federation/enhanced !@module-federation/rsbuild-plugin",
41+
"update-outdated-deps:update-versions": "pnpm update -r --latest !eslint !@eslint/js !typescript-eslint !useless-lib",
4242
"update-outdated-deps:update-peers": "syncpack fix",
4343
"update-outdated-deps:fix-pkg-json": "eslint --fix --no-cache --no-ignore package.json **/package.json"
4444
},
4545
"devDependencies": {
46-
"@changesets/changelog-github": "0.6.0",
47-
"@changesets/cli": "2.30.0",
46+
"@changesets/changelog-github": "0.7.0",
47+
"@changesets/cli": "2.31.0",
4848
"@eslint/js": "9.39.2",
49-
"@types/node": "25.5.2",
50-
"@typescript-eslint/parser": "8.58.0",
51-
"@typescript/native-preview": "7.0.0-dev.20260407.1",
52-
"@workleap/eslint-configs": "2.0.1",
53-
"@workleap/typescript-configs": "4.0.0",
54-
"agent-browser": "0.25.3",
49+
"@types/node": "25.7.0",
50+
"@typescript-eslint/parser": "8.59.3",
51+
"@typescript/native-preview": "7.0.0-dev.20260512.1",
52+
"@workleap/eslint-configs": "2.0.3",
53+
"@workleap/typescript-configs": "4.0.2",
54+
"agent-browser": "0.27.0",
5555
"cross-env": "10.1.0",
5656
"eslint": "9.39.2",
57-
"pkg-pr-new": "0.0.66",
57+
"pkg-pr-new": "0.0.71",
5858
"retypeapp": "4.5.3",
59-
"syncpack": "14.3.0",
60-
"turbo": "2.9.5",
61-
"typescript": "6.0.2",
59+
"syncpack": "15.1.2",
60+
"turbo": "2.9.12",
61+
"typescript": "6.0.3",
6262
"typescript-eslint": "8.54.0"
6363
},
6464
"engines": {

packages/core/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,26 @@
4545
"react": "^18.0.0 || ^19.0.0"
4646
},
4747
"dependencies": {
48-
"@workleap/logging": "^1.3.7",
48+
"@workleap/logging": "^1.3.8",
4949
"eventemitter3": "^5.0.4",
5050
"memoize": "^11.0.0"
5151
},
5252
"devDependencies": {
5353
"@eslint/js": "9.39.2",
54-
"@rsbuild/core": "1.7.5",
55-
"@rslib/core": "0.20.3",
56-
"@types/node": "25.5.2",
54+
"@rsbuild/core": "2.0.5",
55+
"@rslib/core": "0.21.4",
56+
"@types/node": "25.7.0",
5757
"@types/react": "19.2.14",
58-
"@typescript-eslint/parser": "8.58.0",
59-
"@typescript/native-preview": "7.0.0-dev.20260407.1",
58+
"@typescript-eslint/parser": "8.59.3",
59+
"@typescript/native-preview": "7.0.0-dev.20260512.1",
6060
"@vitejs/plugin-react": "6.0.1",
61-
"@workleap/eslint-configs": "2.0.1",
62-
"@workleap/rslib-configs": "1.1.11",
63-
"@workleap/typescript-configs": "4.0.0",
61+
"@workleap/eslint-configs": "2.0.3",
62+
"@workleap/rslib-configs": "1.2.0",
63+
"@workleap/typescript-configs": "4.0.2",
6464
"eslint": "9.39.2",
65-
"typescript": "6.0.2",
65+
"typescript": "6.0.3",
6666
"typescript-eslint": "8.54.0",
67-
"vitest": "4.1.3"
67+
"vitest": "4.1.6"
6868
},
6969
"sideEffects": false
7070
}

packages/env-vars/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,26 @@
3838
},
3939
"dependencies": {
4040
"@squide/core": "workspace:^",
41-
"@workleap/logging": "^1.3.7",
41+
"@workleap/logging": "^1.3.8",
4242
"memoize": "^11.0.0"
4343
},
4444
"devDependencies": {
4545
"@eslint/js": "9.39.2",
46-
"@rsbuild/core": "1.7.5",
47-
"@rslib/core": "0.20.3",
48-
"@types/node": "25.5.2",
46+
"@rsbuild/core": "2.0.5",
47+
"@rslib/core": "0.21.4",
48+
"@types/node": "25.7.0",
4949
"@types/react": "19.2.14",
50-
"@typescript-eslint/parser": "8.58.0",
51-
"@typescript/native-preview": "7.0.0-dev.20260407.1",
50+
"@typescript-eslint/parser": "8.59.3",
51+
"@typescript/native-preview": "7.0.0-dev.20260512.1",
5252
"@vitejs/plugin-react": "6.0.1",
53-
"@workleap/eslint-configs": "2.0.1",
54-
"@workleap/rslib-configs": "1.1.11",
55-
"@workleap/typescript-configs": "4.0.0",
53+
"@workleap/eslint-configs": "2.0.3",
54+
"@workleap/rslib-configs": "1.2.0",
55+
"@workleap/typescript-configs": "4.0.2",
5656
"eslint": "9.39.2",
57-
"happy-dom": "20.8.9",
58-
"typescript": "6.0.2",
57+
"happy-dom": "20.9.0",
58+
"typescript": "6.0.3",
5959
"typescript-eslint": "8.54.0",
60-
"vitest": "4.1.3"
60+
"vitest": "4.1.6"
6161
},
6262
"sideEffects": false
6363
}

packages/fakes/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@
3737
},
3838
"devDependencies": {
3939
"@eslint/js": "9.39.2",
40-
"@rsbuild/core": "1.7.5",
41-
"@rslib/core": "0.20.3",
42-
"@types/node": "25.5.2",
43-
"@typescript-eslint/parser": "8.58.0",
44-
"@typescript/native-preview": "7.0.0-dev.20260407.1",
45-
"@workleap/eslint-configs": "2.0.1",
46-
"@workleap/rslib-configs": "1.1.11",
47-
"@workleap/typescript-configs": "4.0.0",
40+
"@rsbuild/core": "2.0.5",
41+
"@rslib/core": "0.21.4",
42+
"@types/node": "25.7.0",
43+
"@typescript-eslint/parser": "8.59.3",
44+
"@typescript/native-preview": "7.0.0-dev.20260512.1",
45+
"@workleap/eslint-configs": "2.0.3",
46+
"@workleap/rslib-configs": "1.2.0",
47+
"@workleap/typescript-configs": "4.0.2",
4848
"eslint": "9.39.2",
49-
"typescript": "6.0.2",
49+
"typescript": "6.0.3",
5050
"typescript-eslint": "8.54.0"
5151
},
5252
"sideEffects": false

packages/firefly-module-federation/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,38 +35,38 @@
3535
},
3636
"peerDependencies": {
3737
"@opentelemetry/api": "^1.9.1",
38-
"@tanstack/react-query": "^5.96.2",
39-
"msw": "^2.12.14",
38+
"@tanstack/react-query": "^5.100.10",
39+
"msw": "^2.14.6",
4040
"react": "^18.0.0 || ^19.0.0",
4141
"react-dom": "^18.0.0 || ^19.0.0",
42-
"react-router": "^7.14.0"
42+
"react-router": "^7.15.0"
4343
},
4444
"dependencies": {
45-
"@module-federation/enhanced": "0.11.4",
46-
"@rspack/core": "^1.7.11",
45+
"@module-federation/enhanced": "2.4.0",
46+
"@rspack/core": "^2.0.3",
4747
"@squide/core": "workspace:^",
4848
"@squide/firefly": "workspace:^",
49-
"@workleap/logging": "^1.3.7"
49+
"@workleap/logging": "^1.3.8"
5050
},
5151
"devDependencies": {
5252
"@eslint/js": "9.39.2",
53-
"@rsbuild/core": "1.7.5",
54-
"@rslib/core": "0.20.3",
53+
"@rsbuild/core": "2.0.5",
54+
"@rslib/core": "0.21.4",
5555
"@testing-library/react": "16.3.2",
56-
"@types/node": "25.5.2",
56+
"@types/node": "25.7.0",
5757
"@types/react": "19.2.14",
5858
"@types/react-dom": "19.2.3",
59-
"@typescript-eslint/parser": "8.58.0",
60-
"@typescript/native-preview": "7.0.0-dev.20260407.1",
59+
"@typescript-eslint/parser": "8.59.3",
60+
"@typescript/native-preview": "7.0.0-dev.20260512.1",
6161
"@vitejs/plugin-react": "6.0.1",
62-
"@workleap/eslint-configs": "2.0.1",
63-
"@workleap/rslib-configs": "1.1.11",
64-
"@workleap/typescript-configs": "4.0.0",
62+
"@workleap/eslint-configs": "2.0.3",
63+
"@workleap/rslib-configs": "1.2.0",
64+
"@workleap/typescript-configs": "4.0.2",
6565
"eslint": "9.39.2",
66-
"happy-dom": "20.8.9",
67-
"typescript": "6.0.2",
66+
"happy-dom": "20.9.0",
67+
"typescript": "6.0.3",
6868
"typescript-eslint": "8.54.0",
69-
"vitest": "4.1.3"
69+
"vitest": "4.1.6"
7070
},
7171
"sideEffects": false
7272
}

packages/firefly-rsbuild-configs/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,32 +34,32 @@
3434
"test": "vitest --config vitest.config.ts --no-watch"
3535
},
3636
"peerDependencies": {
37-
"@rsbuild/core": "^1.7.5",
38-
"@rspack/core": "^1.7.11"
37+
"@rsbuild/core": "^2.0.5",
38+
"@rspack/core": "^2.0.3"
3939
},
4040
"dependencies": {
41-
"@module-federation/enhanced": "0.11.4",
42-
"@module-federation/rsbuild-plugin": "0.11.4",
43-
"@workleap/rsbuild-configs": "^3.2.6",
41+
"@module-federation/enhanced": "2.4.0",
42+
"@module-federation/rsbuild-plugin": "2.4.0",
43+
"@workleap/rsbuild-configs": "^4.0.0",
4444
"deepmerge": "^4.3.1",
45-
"semver": "^7.7.4"
45+
"semver": "^7.8.0"
4646
},
4747
"devDependencies": {
4848
"@eslint/js": "9.39.2",
49-
"@rsbuild/core": "1.7.5",
50-
"@rslib/core": "0.20.3",
51-
"@rspack/core": "1.7.11",
52-
"@types/node": "25.5.2",
49+
"@rsbuild/core": "2.0.5",
50+
"@rslib/core": "0.21.4",
51+
"@rspack/core": "2.0.3",
52+
"@types/node": "25.7.0",
5353
"@types/semver": "7.7.1",
54-
"@typescript-eslint/parser": "8.58.0",
55-
"@typescript/native-preview": "7.0.0-dev.20260407.1",
56-
"@workleap/eslint-configs": "2.0.1",
57-
"@workleap/rslib-configs": "1.1.11",
58-
"@workleap/typescript-configs": "4.0.0",
54+
"@typescript-eslint/parser": "8.59.3",
55+
"@typescript/native-preview": "7.0.0-dev.20260512.1",
56+
"@workleap/eslint-configs": "2.0.3",
57+
"@workleap/rslib-configs": "1.2.0",
58+
"@workleap/typescript-configs": "4.0.2",
5959
"eslint": "9.39.2",
60-
"typescript": "6.0.2",
60+
"typescript": "6.0.3",
6161
"typescript-eslint": "8.54.0",
62-
"vitest": "4.1.3"
62+
"vitest": "4.1.6"
6363
},
6464
"sideEffects": false
6565
}

packages/firefly-rsbuild-configs/src/nonCacheableRemoteEntryPlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { FederationRuntimePlugin } from "@module-federation/enhanced/runtime";
1+
import type { ModuleFederationRuntimePlugin } from "@module-federation/enhanced/runtime";
22

3-
const plugin: () => FederationRuntimePlugin = () => {
3+
const plugin: () => ModuleFederationRuntimePlugin = () => {
44
return {
55
name: "non-cacheable-remote-entry-plugin",
66
createScript: function({ url }) {

packages/firefly-rsbuild-configs/src/sharedDependenciesResolutionPlugin.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ remote-1: 3.1
2121
remote-2: 2.1 <-----
2222
*/
2323

24-
import type { FederationHost, FederationRuntimePlugin } from "@module-federation/enhanced/runtime";
24+
import type { ModuleFederation, ModuleFederationRuntimePlugin } from "@module-federation/enhanced/runtime";
2525
import { minVersion, parse, rcompare } from "semver";
2626
import { HostApplicationName } from "./shared.ts";
2727

28-
type Shared = FederationHost["shareScopeMap"][string][string][string];
28+
type Shared = ModuleFederation["shareScopeMap"][string][string][string];
2929

3030
// Toggle to "true" to facilitate the debugging of this plugin.
3131
const isDebug = false;
@@ -118,7 +118,7 @@ export function resolveSharedDependency(pkgName: string, entries: Shared[], logF
118118
};
119119
}
120120

121-
const plugin: () => FederationRuntimePlugin = () => {
121+
const plugin: () => ModuleFederationRuntimePlugin = () => {
122122
return {
123123
name: "shared-dependencies-resolution-plugin",
124124
resolveShare: function(args) {
@@ -152,6 +152,8 @@ const plugin: () => FederationRuntimePlugin = () => {
152152
return args;
153153
}
154154

155+
const defaultResolver = args.resolver;
156+
155157
args.resolver = () => {
156158
log(`[squide] There's %cmore than one requested version%c for ${pkgName}:`, "color: black; background-color: pink;", "", entries.length, shareScopeMap[scope][pkgName]);
157159

@@ -161,7 +163,10 @@ const plugin: () => FederationRuntimePlugin = () => {
161163
console.log(`%c[squide] "${highestVersionEntry.from}" requested version "${highestVersionEntry.version}" of "${pkgName}". This version is higher than the major number of the version requested by the host for this dependency (${resolvedEntry.version}). The version for "${pkgName}" has been forced to "${resolvedEntry.version}".`, "color: white; background-color: red;");
162164
}
163165

164-
return resolvedEntry;
166+
return {
167+
shared: resolvedEntry,
168+
useTreesShaking: defaultResolver()?.useTreesShaking ?? false
169+
};
165170
};
166171

167172
return args;

0 commit comments

Comments
 (0)