Skip to content

Commit

Permalink
chore: merge main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
danpeen committed Nov 5, 2024
2 parents a2573c6 + e44d7fa commit 76427c2
Show file tree
Hide file tree
Showing 87 changed files with 3,234 additions and 2,221 deletions.
5 changes: 0 additions & 5 deletions .changeset/chilly-berries-look.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/cyan-emus-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/runtime': patch
---

fix(runtime): use document.defaultView to get real window object to solve csp issue
6 changes: 6 additions & 0 deletions .changeset/little-insects-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@module-federation/retry-plugin': patch
'website-new': patch
---

fix: parameter url for fetch options should not be necessary
9 changes: 9 additions & 0 deletions .changeset/ninety-dragons-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@module-federation/bridge-react-webpack-plugin': patch
'@module-federation/bridge-shared': patch
'@module-federation/bridge-react': patch
'@module-federation/bridge-vue3': patch
'@module-federation/devtools': patch
---

add license information
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/dynamic-nested-remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.25.7",
"@modern-js/runtime": "2.60.3",
"@modern-js/runtime": "2.60.6",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.60.3",
"@modern-js/app-tools": "2.60.6",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.3",
"@modern-js/tsconfig": "2.60.6",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/dynamic-remote-new-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.24.4",
"@modern-js/runtime": "2.60.3",
"@modern-js/runtime": "2.60.6",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.60.3",
"@modern-js/app-tools": "2.60.6",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.3",
"@modern-js/tsconfig": "2.60.6",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/dynamic-remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.24.4",
"@modern-js/runtime": "2.60.3",
"@modern-js/runtime": "2.60.6",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.60.3",
"@modern-js/app-tools": "2.60.6",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.3",
"@modern-js/tsconfig": "2.60.6",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/host/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.24.4",
"@modern-js/runtime": "2.60.3",
"@modern-js/runtime": "2.60.6",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.60.3",
"@modern-js/app-tools": "2.60.6",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.3",
"@modern-js/tsconfig": "2.60.6",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/nested-remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.24.4",
"@modern-js/runtime": "2.60.3",
"@modern-js/runtime": "2.60.6",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.60.3",
"@modern-js/app-tools": "2.60.6",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.3",
"@modern-js/tsconfig": "2.60.6",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/remote-new-version/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.24.4",
"@modern-js/runtime": "2.60.3",
"@modern-js/runtime": "2.60.6",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.60.3",
"@modern-js/app-tools": "2.60.6",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.3",
"@modern-js/tsconfig": "2.60.6",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/modernjs-ssr/remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
],
"dependencies": {
"@babel/runtime": "7.24.4",
"@modern-js/runtime": "2.60.3",
"@modern-js/runtime": "2.60.6",
"@module-federation/modern-js": "workspace:*",
"antd": "4.24.15",
"react": "~18.3.1",
"react-dom": "~18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.60.3",
"@modern-js/app-tools": "2.60.6",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.3",
"@modern-js/tsconfig": "2.60.6",
"@types/jest": "~29.5.0",
"@types/node": "~16.11.7",
"@types/react": "~18.2.0",
Expand Down
6 changes: 6 additions & 0 deletions apps/modernjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @module-federation/modernjsapp

## 0.1.62

### Patch Changes

- @module-federation/enhanced@0.6.16

## 0.1.61

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions apps/modernjs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@module-federation/modernjsapp",
"private": true,
"version": "0.1.61",
"version": "0.1.62",
"scripts": {
"reset": "npx rimraf ./**/node_modules",
"dev": "modern dev",
Expand All @@ -26,16 +26,16 @@
],
"dependencies": {
"@babel/runtime": "7.24.5",
"@modern-js/runtime": "2.60.3",
"@modern-js/runtime": "2.60.6",
"@module-federation/enhanced": "workspace:*",
"react": "18.3.1",
"react-dom": "18.3.1"
},
"devDependencies": {
"@modern-js-app/eslint-config": "2.59.0",
"@modern-js/app-tools": "2.60.3",
"@modern-js/app-tools": "2.60.6",
"@modern-js/eslint-config": "2.59.0",
"@modern-js/tsconfig": "2.60.3",
"@modern-js/tsconfig": "2.60.6",
"@types/jest": "~29.5.0",
"@types/node": "~20.12.12",
"@types/react": "~18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/rslib-module/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const config: StorybookConfig = {
},
addons: [
{
name: '@module-federation/storybook-addon/preset.js',
name: '@module-federation/storybook-addon/preset',
options: {
remotes: {
'rslib-module':
Expand Down
10 changes: 9 additions & 1 deletion apps/rslib-module/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@ nx serve rslib-module

Dev package

1.

```
nx serve rslib-module
```

2.

```
nx serve rslib-module & nx storybook rslib-module
nx storybook rslib-module
```

visit http://localhost:6006
4 changes: 4 additions & 0 deletions apps/website-new/docs/en/guide/framework/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { Badge } from '@theme';

# Next.js

:::danger Project Deprecation
Support for Next.js is ending [read more](https://github.com/module-federation/core/issues/3153)
:::

This plugin enables Module Federation on Next.js

## Supports
Expand Down
2 changes: 1 addition & 1 deletion apps/website-new/docs/en/plugin/plugins/retry-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ init({
// the retry resource url
url: 'http://localhost:2001/-mf-manifest.json',
// after all retried failed, set a fallback function to guarantee a fallback resource
fallback: () => 'http://localhost:2002/mf-manifest.json',
fallback: (url: string) => 'http://localhost:2002/mf-manifest.json',
},
script: {
// the retry times
Expand Down
3 changes: 3 additions & 0 deletions apps/website-new/docs/en/practice/frameworks/next/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ title: "Basic Example"

import {Steps, Tabs, Tab, Badge, SourceCode} from '@theme';

:::danger Project Deprecation
Support for Next.js is ending [read more](https://github.com/module-federation/core/issues/3153)
:::

<span className="badge-info">
<Badge text="Next 12" type="info" />
Expand Down
8 changes: 4 additions & 4 deletions apps/website-new/docs/zh/guide/start/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,8 @@ import { pluginReact } from '@rsbuild/plugin-react';
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin';

export default defineConfig({
plugins: [pluginReact()],
server: {
port: 3000,
},
plugins: [
pluginReact(),
pluginModuleFederation({
name: 'federation_provider',
exposes: {
Expand All @@ -108,6 +105,9 @@ export default defineConfig({
shared: ['react', 'react-dom'],
}),
],
server: {
port: 3000,
},
});
```

Expand Down
2 changes: 1 addition & 1 deletion apps/website-new/docs/zh/plugin/plugins/retry-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type FetchWithRetryOptions = {
options?: RequestInit;
retryTimes?: number;
retryDelay?: number;
fallback?: () => string;
fallback?: (url: string) => string;
}

type ScriptWithRetryOptions = {
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,8 @@
"unplugin": "1.9.0"
},
"devDependencies": {
"@antora/cli": "3.1.9",
"@antora/lunr-extension": "1.0.0-alpha.8",
"@antora/site-generator": "3.1.9",
"@asciidoctor/core": "3.0.4",
"@asciidoctor/tabs": "1.0.0-beta.6",
"@babel/core": "^7.24.7",
"@babel/plugin-transform-react-jsx": "7.25.7",
"@babel/plugin-transform-react-jsx": "7.25.9",
"@babel/preset-react": "^7.24.7",
"@changesets/cli": "^2.27.9",
"@chromatic-com/storybook": "^1.7.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/bridge/bridge-react-webpack-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @module-federation/bridge-react-webpack-plugin

## 0.6.16

### Patch Changes

- Updated dependencies [f779188]
- Updated dependencies [024df60]
- @module-federation/sdk@0.6.16

## 0.6.15

### Patch Changes
Expand Down
8 changes: 7 additions & 1 deletion packages/bridge/bridge-react-webpack-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"name": "@module-federation/bridge-react-webpack-plugin",
"version": "0.6.15",
"version": "0.6.16",
"publishConfig": {
"access": "public"
},
"author": "zhouxiao <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/module-federation/core",
"directory": "packages/bridge-react-webpack-plugin"
},
"main": "./dist/index.cjs.js",
"module": "./dist/index.es.js",
"types": "./dist/index.cjs.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions packages/bridge/bridge-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @module-federation/bridge-react

## 0.6.16

### Patch Changes

- Updated dependencies [f779188]
- Updated dependencies [024df60]
- @module-federation/sdk@0.6.16
- @module-federation/bridge-shared@0.6.16

## 0.6.15

### Patch Changes
Expand Down
8 changes: 7 additions & 1 deletion packages/bridge/bridge-react/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{
"name": "@module-federation/bridge-react",
"version": "0.6.15",
"version": "0.6.16",
"publishConfig": {
"access": "public"
},
"author": "zhouxiao <[email protected]>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/module-federation/core",
"directory": "packages/bridge-react"
},
"type": "module",
"main": "./dist/index.cjs.js",
"module": "./dist/index.es.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/bridge/bridge-shared/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @module-federation/bridge-shared

## 0.6.16

## 0.6.15

## 0.6.14
Expand Down
Loading

0 comments on commit 76427c2

Please sign in to comment.