Skip to content

Commit

Permalink
Merge branch 'main' into fix/resolve-react-devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
Asuka109 committed Dec 27, 2023
2 parents 16d42ba + e364925 commit 673b591
Show file tree
Hide file tree
Showing 64 changed files with 1,307 additions and 691 deletions.
6 changes: 6 additions & 0 deletions .changeset/breezy-falcons-jog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/runtime': patch
---

fix(ssr): support stream ssr inline asserts
fix(ssr): 支持 stream ssr 内链静态文件
6 changes: 6 additions & 0 deletions .changeset/cuddly-owls-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/generator-plugin': patch
---

feat(generator-plugin): `addManyFiles` supports config to include dotfiles
feat(generator-plugin): `addManyFiles` 支持配置允许包含 dotfiles
10 changes: 10 additions & 0 deletions .changeset/famous-mayflies-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'ssr-base-test': patch
'@modern-js/runtime-utils': patch
'@modern-js/prod-server': patch
'@modern-js/main-doc': patch
'@modern-js/types': patch
---

fix: SSR cache container spell
fix: SSR 缓存相关 container 拼写修正
7 changes: 7 additions & 0 deletions .changeset/hungry-donkeys-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@modern-js/plugin-server': patch
'@modern-js/app-tools': patch
---

fix: server dir compile only server/cache exsits
fix: 只有存在 server/cache 才默认编译
6 changes: 6 additions & 0 deletions .changeset/mighty-fireants-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/module-tools': patch
---

fix(module-tools): When dealing with dts file alias, explicitly declare the extension when calling matchPath to avoid the problem of not being able to find the module.
fix(module-tools): 处理类型描述文件别名过程中,在调用 matchPath 时显式声明后缀名,避免无法找到模块的问题
8 changes: 8 additions & 0 deletions .changeset/sharp-drinks-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@modern-js/module-tools': patch
'@modern-js/builder': patch
---

chore(module-tools): bump SVGR to v8.1.0

chore(module-tools): 升级 SVGR 到 v8.1.0
8 changes: 8 additions & 0 deletions .changeset/slow-snakes-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@modern-js/builder-webpack-provider': patch
'@modern-js/builder-rspack-provider': patch
---

chore(deps): bump rspack to 0.4.5 and bump rsbuild to 0.2.11

chore(deps): 升级 rspack 到 0.4.5 & 升级 rsbuild 到 0.2.11
6 changes: 6 additions & 0 deletions .changeset/ten-goats-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/server': patch
---

fix(hmr-client): make hmr-client isomorphic
fix(hmr-client): hmr-client 支持跨环境
2 changes: 1 addition & 1 deletion .github/workflows/build-builder-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-main-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-module-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration-test-Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-builder-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-garfish-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
id: nx-cache
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.ref_name }}-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
if: ${{steps.skip-ci.outputs.RESULT != 'true'}}
uses: actions/cache@v3
with:
path: .nx-cache
path: .nx/cache
key: nx-${{ github.base_ref }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
nx-${{ github.base_ref }}-${{ github.ref_name }}-
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ website/**/.temp

.wireit/
.nx-cache/
.nx/
playground/

# Local Netlify folder
Expand Down
13 changes: 1 addition & 12 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": [
"^build"
],
Expand All @@ -14,18 +15,6 @@
]
}
},
"tasksRunnerOptions": {
"default": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": [
"build"
],
"cacheDirectory": ".nx-cache",
"accessToken": "MGQ1ZmJlYmItNDg2YS00YzhjLTllOWMtYTgxYTVjN2M5NjdhfHJlYWQtd3JpdGU="
}
}
},
"affected": {
"defaultBase": "main"
}
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
"check-dependencies": "check-dependency-version-consistency .",
"update-codesmith": "cd ./scripts/update-codesmith && pnpm start",
"update-rspress": "cd ./scripts/update-rspress && pnpm start",
"update-rsbuild": "cd ./scripts/update-rsbuild && pnpm start",
"update-nx-cache": "cross-env NX_DAEMON=false nx reset && npm run prepare-build"
"update-rsbuild": "cd ./scripts/update-rsbuild && pnpm start"
},
"engines": {
"node": ">=14.17.6",
Expand Down Expand Up @@ -86,8 +85,7 @@
"eslint": "^8.28.0",
"husky": "^8.0.0",
"lint-staged": "~13.1.0",
"nx": "16.5.1",
"nx-cloud": "^16.5.2",
"nx": "^17.0.1",
"vitest": "0.33.0"
},
"pnpm": {
Expand Down
6 changes: 3 additions & 3 deletions packages/builder/builder-rspack-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"@modern-js/types": "workspace:*",
"@modern-js/utils": "workspace:*",
"@babel/preset-typescript": "^7.22.15",
"@rspack/core": "0.4.4",
"@rspack/plugin-react-refresh": "0.4.4",
"@rspack/plugin-html": "0.4.4",
"@rspack/core": "0.4.5",
"@rspack/plugin-react-refresh": "0.4.5",
"@rspack/plugin-html": "0.4.5",
"@swc/helpers": "0.5.3",
"rspack-manifest-plugin": "5.0.0-alpha0",
"caniuse-lite": "^1.0.30001520",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = `
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.NODE_ENV": "\\"development\\"",
},
"affectedHooks": undefined,
"affectedHooks": "compilation",
"name": "DefinePlugin",
},
ProgressPlugin {
Expand Down Expand Up @@ -1461,7 +1461,7 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.NODE_ENV": "\\"production\\"",
},
"affectedHooks": undefined,
"affectedHooks": "compilation",
"name": "DefinePlugin",
},
RemoveCssSourcemapPlugin {
Expand Down Expand Up @@ -1946,7 +1946,7 @@ exports[`applyDefaultPlugins > should apply default plugins correctyly when targ
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.NODE_ENV": "\\"test\\"",
},
"affectedHooks": undefined,
"affectedHooks": "compilation",
"name": "DefinePlugin",
},
ProgressPlugin {
Expand Down Expand Up @@ -2679,7 +2679,7 @@ exports[`tools.rspack > should match snapshot 1`] = `
"process.env.ASSET_PREFIX": "\\"\\"",
"process.env.NODE_ENV": "\\"development\\"",
},
"affectedHooks": undefined,
"affectedHooks": "compilation",
"name": "DefinePlugin",
},
ProgressPlugin {
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/builder-webpack-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"@modern-js/types": "workspace:*",
"@modern-js/utils": "workspace:*",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@rsbuild/babel-preset": "0.2.8",
"@rsbuild/babel-preset": "0.2.11",
"@swc/helpers": "0.5.3",
"babel-plugin-import": "1.13.5",
"babel-plugin-styled-components": "1.13.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/builder/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
"dependencies": {
"@modern-js/builder-shared": "workspace:*",
"@modern-js/utils": "workspace:*",
"@rsbuild/monorepo-utils": "0.2.8",
"@svgr/webpack": "8.0.1",
"@rsbuild/monorepo-utils": "0.2.11",
"@svgr/webpack": "8.1.0",
"@swc/helpers": "0.5.3",
"deepmerge": "^4.3.1",
"jiti": "^1.20.0"
Expand Down
32 changes: 16 additions & 16 deletions packages/builder/uni-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@
"@modern-js/server": "workspace:*",
"@modern-js/prod-server": "workspace:*",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
"@rsbuild/babel-preset": "0.2.8",
"@rsbuild/core": "0.2.8",
"@rsbuild/plugin-assets-retry": "0.2.8",
"@rsbuild/plugin-babel": "0.2.8",
"@rsbuild/plugin-check-syntax": "0.2.8",
"@rsbuild/plugin-css-minimizer": "0.2.8",
"@rsbuild/plugin-pug": "0.2.8",
"@rsbuild/plugin-react": "0.2.8",
"@rsbuild/plugin-rem": "0.2.8",
"@rsbuild/plugin-source-build": "0.2.8",
"@rsbuild/plugin-styled-components": "0.2.8",
"@rsbuild/plugin-svgr": "0.2.8",
"@rsbuild/plugin-type-check": "0.2.8",
"@rsbuild/shared": "0.2.8",
"@rsbuild/webpack": "0.2.8",
"@rsbuild/babel-preset": "0.2.11",
"@rsbuild/core": "0.2.11",
"@rsbuild/plugin-assets-retry": "0.2.11",
"@rsbuild/plugin-babel": "0.2.11",
"@rsbuild/plugin-check-syntax": "0.2.11",
"@rsbuild/plugin-css-minimizer": "0.2.11",
"@rsbuild/plugin-pug": "0.2.11",
"@rsbuild/plugin-react": "0.2.11",
"@rsbuild/plugin-rem": "0.2.11",
"@rsbuild/plugin-source-build": "0.2.11",
"@rsbuild/plugin-styled-components": "0.2.11",
"@rsbuild/plugin-svgr": "0.2.11",
"@rsbuild/plugin-type-check": "0.2.11",
"@rsbuild/shared": "0.2.11",
"@rsbuild/webpack": "0.2.11",
"@swc/helpers": "0.5.3",
"babel-loader": "9.1.3",
"babel-plugin-import": "1.13.5",
Expand All @@ -72,7 +72,7 @@
"webpack-subresource-integrity": "5.1.0"
},
"devDependencies": {
"@rsbuild/plugin-swc": "0.2.8",
"@rsbuild/plugin-swc": "0.2.11",
"@scripts/build": "workspace:*",
"@scripts/vitest-config": "workspace:*",
"@types/lodash": "^4.14.202",
Expand Down
Loading

0 comments on commit 673b591

Please sign in to comment.