Skip to content

Commit 127fc10

Browse files
authored
Merge branch 'main' into feat/metro-e2e
2 parents 92bc8c5 + 586e94b commit 127fc10

File tree

44 files changed

+228
-293
lines changed

Some content is hidden

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

44 files changed

+228
-293
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/retry-plugin': patch
3+
---
4+
5+
fix(retry-plugin): prevent query parameter accumulation across retries

.github/workflows/preview.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
name: Preview Release
33

44
on:
5-
push:
6-
branches: [main]
75
workflow_dispatch:
6+
inputs:
7+
branch:
8+
description: 'Release preview version branch (confirm release branch)'
9+
required: true
10+
default: 'main'
811

912
permissions:
1013
contents: read
@@ -19,6 +22,14 @@ jobs:
1922
uses: actions/checkout@v4
2023
with:
2124
fetch-depth: 25
25+
ref: ${{ github.event.inputs.branch }}
26+
27+
# Use corepack to install pnpm
28+
- name: Setup Pnpm
29+
run: |
30+
npm install -g corepack@latest --force
31+
corepack prepare pnpm@8.11.0 --activate
32+
corepack enable
2233
2334
- name: Setup Node.js
2435
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
@@ -27,14 +38,10 @@ jobs:
2738
cache: 'pnpm'
2839

2940
# Update npm to the latest version to enable OIDC
30-
# Use corepack to install pnpm
31-
- name: Setup Package Managers
41+
- name: Update npm
3242
run: |
3343
npm install -g npm@latest
3444
npm --version
35-
npm install -g corepack@latest --force
36-
corepack prepare pnpm@8.11.0 --activate
37-
corepack enable
3845
3946
- name: Install deps
4047
run: pnpm install
@@ -47,5 +54,4 @@ jobs:
4754
4855
- name: Publish Preview
4956
run: |
50-
npm i -g pkg-pr-new@0.0.58
51-
pkg-pr-new publish --compact --pnpm ./packages/*
57+
pnpx pkg-pr-new@0.0.58 publish --compact --pnpm ./packages/*

.github/workflows/release.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 25
34+
ref: ${{ github.event.inputs.branch }}
35+
36+
# Use corepack to install pnpm
37+
- name: Setup Pnpm
38+
run: |
39+
npm install -g corepack@latest --force
40+
corepack prepare pnpm@8.11.0 --activate
41+
corepack enable
3442
3543
- name: Setup Node.js
3644
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
@@ -39,14 +47,10 @@ jobs:
3947
cache: 'pnpm'
4048

4149
# Update npm to the latest version to enable OIDC
42-
# Use corepack to install pnpm
43-
- name: Setup Package Managers
50+
- name: Update npm
4451
run: |
4552
npm install -g npm@latest
4653
npm --version
47-
npm install -g corepack@latest --force
48-
corepack prepare pnpm@8.11.0 --activate
49-
corepack enable
5054
5155
- name: Install deps
5256
run: pnpm install

apps/router-demo/router-host-2000/src/runtime-plugin/retry.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@ const retryPlugin = () =>
1313
onError: (params) => {
1414
console.log('onError', params);
1515
},
16-
manifestDomains: ['https://m1.example.com', 'https://m2.example.com'],
16+
manifestDomains: [
17+
'https://m1.example.com',
18+
'https://m2.example.com',
19+
'https://m3.example.com',
20+
],
1721
domains: [
1822
'http://localhost:2011',
1923
'http://localhost:2021',
2024
'http://localhost:2031',
2125
],
22-
addQuery: true,
26+
addQuery: ({ times, originalQuery }) => {
27+
return `${originalQuery}&retry=${times}&retryTimeStamp=${new Date().valueOf()}`;
28+
},
2329
fetchOptions: {
2430
method: 'GET',
2531
},

packages/assemble-release-plan/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"license": "MIT",
3333
"repository": {
3434
"type": "git",
35-
"url": "https://github.com/module-federation/core/",
35+
"url": "git+https://github.com/module-federation/core.git",
3636
"directory": "packages/assemble-release-plan"
3737
},
3838
"dependencies": {

packages/bridge/bridge-react-webpack-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/module-federation/core",
11+
"url": "git+https://github.com/module-federation/core.git",
1212
"directory": "packages/bridge-react-webpack-plugin"
1313
},
1414
"main": "./dist/index.cjs.js",

packages/bridge/bridge-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"license": "MIT",
1010
"repository": {
1111
"type": "git",
12-
"url": "https://github.com/module-federation/core",
12+
"url": "git+https://github.com/module-federation/core.git",
1313
"directory": "packages/bridge-react"
1414
},
1515
"main": "./dist/index.cjs.js",

packages/bridge/bridge-shared/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"license": "MIT",
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/module-federation/core",
11+
"url": "git+https://github.com/module-federation/core.git",
1212
"directory": "packages/bridge-shared"
1313
},
1414
"type": "module",

packages/bridge/vue3-bridge/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/module-federation/core",
7+
"url": "git+https://github.com/module-federation/core.git",
88
"directory": "packages/vue3-bridge"
99
},
1010
"version": "0.18.4",

packages/chrome-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/module-federation/core",
7+
"url": "git+https://github.com/module-federation/core.git",
88
"directory": "packages/chrome-devtools"
99
},
1010
"scripts": {

0 commit comments

Comments
 (0)