Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into 3.0_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Apr 22, 2024
2 parents 108795d + 8f72368 commit 998a8d1
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/development/react-vue-3.0-upgrade-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Hippy-Vue 在升级3.0可以完全兼容之前的版本,除了升级如上依
需要升级如下版本依赖:

``` javascript
1)@hippy/vue-next 升级到 3.2.0-beta 及以上
1)@hippy/vue-next 升级到 3.2.0-beta.1 及以上
2)@hippy/vue-css-loader 升级到 3.2.0-beta 及以上
3)@hippy/vue-router-next-history 升级到 0.0.1
4)vue 和 vue-router 等vue相关依赖无需升级
Expand Down
10 changes: 6 additions & 4 deletions driver/js/examples/hippy-vue-next-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"@hippy/vue-next": "latest",
"@hippy/vue-router-next-history": "latest",
"@hippy/web-renderer": "latest",
"@vue/runtime-core": "^3.2.21",
"vue": "^3.2.21",
"@vue/runtime-core": "^3.2.46",
"@vue/shared": "^3.2.46",
"vue": "^3.2.46",
"vue-router": "^4.0.12"
},
"devDependencies": {
Expand All @@ -42,7 +43,7 @@
"@hippy/vue-css-loader": "^2.0.1",
"@vitejs/plugin-vue": "^1.9.4",
"@vue/cli-service": "^4.5.19",
"@vue/compiler-sfc": "^3.2.21",
"@vue/compiler-sfc": "^3.2.46",
"babel-loader": "^8.1.0",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"clean-webpack-plugin": "^4.0.0",
Expand All @@ -58,6 +59,7 @@
"url-loader": "^4.0.0",
"vue-loader": "^17.0.0",
"webpack": "^4.46.0",
"webpack-cli": "^4.7.2"
"webpack-cli": "^4.7.2",
"webpack-bundle-analyzer": "^4.10.2"
}
}
7 changes: 6 additions & 1 deletion driver/js/packages/hippy-vue-next-compiler-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
"dist/index.d.ts",
"README.md"
],
"dependencies": {
"peerDependencies": {
"@vue/compiler-core": "^3.2.46",
"@vue/compiler-dom": "^3.2.46",
"@vue/shared": "^3.2.46"
},
"devDependencies": {
"@vue/compiler-core": "^3.2.46",
"@vue/compiler-dom": "^3.2.46",
"@vue/shared": "^3.2.46"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
"dist/index.d.ts",
"README.md"
],
"dependencies": {
"peerDependencies": {
"@vue/server-renderer": "^3.2.46",
"@vue/runtime-core": "^3.2.46",
"@vue/shared": "^3.2.46"
},
"devDependencies": {
"@vue/server-renderer": "^3.2.46",
"@vue/runtime-core": "^3.2.46",
"@vue/shared": "^3.2.46",
"vue": "^3.2.46"
},
"jest": {
Expand Down
5 changes: 4 additions & 1 deletion driver/js/packages/hippy-vue-next-style-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"bugs": {
"url": "https://github.com/Tencent/Hippy/issues"
},
"dependencies": {
"peerDependencies": {
"@vue/shared": "^3.2.46"
},
"devDependencies": {
"@vue/shared": "^3.2.46"
},
"entry": "./src/index.ts",
Expand Down
6 changes: 5 additions & 1 deletion driver/js/packages/hippy-vue-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
"dist/index.d.ts",
"README.md"
],
"dependencies": {
"peerDependencies": {
"@vue/runtime-core": "^3.2.46",
"@vue/shared": "^3.2.46"
},
"devDependencies": {
"@vue/runtime-core": "^3.2.46",
"@vue/shared": "^3.2.46"
},
Expand Down
4 changes: 2 additions & 2 deletions driver/js/packages/hippy-vue/src/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ function whitespaceFilter(str: string) {
// "trimWhitespace": default behavior is true.
// It will trim leading / ending whitespace including all special unicode such as \xA0( ).
if (!_Vue || typeof _Vue.config.trimWhitespace === 'undefined' || _Vue.config.trimWhitespace) {
return str.trim().replace(/Â/g, ' ');
return str.trim().replace(/( |Â)/g, ' ');
}
return str.replace(/Â/g, ' ');
return str.replace(/( |Â)/g, ' ');
}

export {
Expand Down

0 comments on commit 998a8d1

Please sign in to comment.