Skip to content

Commit a147fb9

Browse files
update
1 parent 919a520 commit a147fb9

File tree

10 files changed

+258
-276
lines changed

10 files changed

+258
-276
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
"postcss": "^8.4.43",
3737
"postcss-prefix-selector": "^1.16.1",
3838
"prettier": "^3.3.3",
39-
"prettier-plugin-tailwindcss": "^0.6.6",
39+
"prettier-plugin-tailwindcss": "^0.6.8",
4040
"project-tool": "https://github.com/MrWangJustToDo/project-tool.git",
4141
"rollup-plugin-postcss": "^4.0.2",
42-
"tailwindcss": "^3.4.10",
42+
"tailwindcss": "^3.4.14",
4343
"ts-node": "^10.9.2",
4444
"tslib": "^2.7.0",
45-
"typescript": "^5.3.3"
45+
"typescript": "5.4.2"
4646
}
4747
}

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"postcss-cli": "^11.0.0",
7777
"postcss-import": "^16.1.0",
7878
"react": "^18.0.0",
79-
"tailwindcss": "^3.4.10"
79+
"tailwindcss": "^3.4.14"
8080
},
8181
"peerDependencies": {
8282
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",

packages/react/src/components/DiffView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ const DiffViewWithRef = <T extends unknown>(
248248
}, [diffFile, _diffFile]);
249249

250250
// fix react strict mode error
251-
useUnmount(() => diffFile?._destroy?.(), [diffFile]);
251+
useUnmount(() => (__DEV__ ? diffFile?._destroy?.() : diffFile?.clear?.()), [diffFile]);
252252

253253
useImperativeHandle(ref, () => ({ getDiffFileInstance: () => diffFile }), [diffFile]);
254254

packages/vue/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
},
5858
"devDependencies": {
5959
"@rollup/plugin-typescript": "^11.1.6",
60-
"@vitejs/plugin-vue": "^5.1.3",
60+
"@vitejs/plugin-vue": "^5.1.4",
6161
"@vitejs/plugin-vue-jsx": "^3.1.0",
6262
"autoprefixer": "^10.4.20",
6363
"postcss": "^8.4.43",
64-
"tailwindcss": "^3.4.10",
65-
"vite": "^5.4.2",
64+
"tailwindcss": "^3.4.14",
65+
"vite": "^5.4.9",
6666
"vite-plugin-dts": "^3.9.1",
6767
"vue": "^3.4.38",
6868
"vue-tsc": "^1.8.27"

0 commit comments

Comments
 (0)