@vue/server-renderer 3.2.27 → 3.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -227,6 +227,12 @@ function renderComponentSubTree(instance, slotScopeId) {
|
|
|
227
227
|
shared.isString(comp.template)) {
|
|
228
228
|
comp.ssrRender = ssrCompile(comp.template, instance);
|
|
229
229
|
}
|
|
230
|
+
// perf: enable caching of computed getters during render
|
|
231
|
+
// since there cannot be state mutations during render.
|
|
232
|
+
for (const e of instance.scope.effects) {
|
|
233
|
+
if (e.computed)
|
|
234
|
+
e.computed._cacheable = true;
|
|
235
|
+
}
|
|
230
236
|
const ssrRender = instance.ssrRender || comp.ssrRender;
|
|
231
237
|
if (ssrRender) {
|
|
232
238
|
// optimized
|
|
@@ -822,7 +828,7 @@ const ErrorTypeStrings = {
|
|
|
822
828
|
[12 /* FUNCTION_REF */]: 'ref function',
|
|
823
829
|
[13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',
|
|
824
830
|
[14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +
|
|
825
|
-
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/
|
|
831
|
+
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
|
|
826
832
|
};
|
|
827
833
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
828
834
|
let res;
|
|
@@ -224,6 +224,12 @@ function renderComponentSubTree(instance, slotScopeId) {
|
|
|
224
224
|
shared.isString(comp.template)) {
|
|
225
225
|
comp.ssrRender = ssrCompile(comp.template, instance);
|
|
226
226
|
}
|
|
227
|
+
// perf: enable caching of computed getters during render
|
|
228
|
+
// since there cannot be state mutations during render.
|
|
229
|
+
for (const e of instance.scope.effects) {
|
|
230
|
+
if (e.computed)
|
|
231
|
+
e.computed._cacheable = true;
|
|
232
|
+
}
|
|
227
233
|
const ssrRender = instance.ssrRender || comp.ssrRender;
|
|
228
234
|
if (ssrRender) {
|
|
229
235
|
// optimized
|
|
@@ -196,6 +196,12 @@ function renderComponentSubTree(instance, slotScopeId) {
|
|
|
196
196
|
isString(comp.template)) {
|
|
197
197
|
comp.ssrRender = ssrCompile(comp.template);
|
|
198
198
|
}
|
|
199
|
+
// perf: enable caching of computed getters during render
|
|
200
|
+
// since there cannot be state mutations during render.
|
|
201
|
+
for (const e of instance.scope.effects) {
|
|
202
|
+
if (e.computed)
|
|
203
|
+
e.computed._cacheable = true;
|
|
204
|
+
}
|
|
199
205
|
const ssrRender = instance.ssrRender || comp.ssrRender;
|
|
200
206
|
if (ssrRender) {
|
|
201
207
|
// optimized
|
|
@@ -789,7 +795,7 @@ const ErrorTypeStrings = {
|
|
|
789
795
|
[12 /* FUNCTION_REF */]: 'ref function',
|
|
790
796
|
[13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',
|
|
791
797
|
[14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +
|
|
792
|
-
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/
|
|
798
|
+
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
|
|
793
799
|
};
|
|
794
800
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
795
801
|
let res;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/server-renderer",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.28",
|
|
4
4
|
"description": "@vue/server-renderer",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/server-renderer.esm-bundler.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/vuejs/
|
|
21
|
+
"url": "git+https://github.com/vuejs/core.git",
|
|
22
22
|
"directory": "packages/server-renderer"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"author": "Evan You",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"bugs": {
|
|
30
|
-
"url": "https://github.com/vuejs/
|
|
30
|
+
"url": "https://github.com/vuejs/core/issues"
|
|
31
31
|
},
|
|
32
|
-
"homepage": "https://github.com/vuejs/
|
|
32
|
+
"homepage": "https://github.com/vuejs/core/tree/main/packages/server-renderer#readme",
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"vue": "3.2.
|
|
34
|
+
"vue": "3.2.28"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@vue/shared": "3.2.
|
|
38
|
-
"@vue/compiler-ssr": "3.2.
|
|
37
|
+
"@vue/shared": "3.2.28",
|
|
38
|
+
"@vue/compiler-ssr": "3.2.28"
|
|
39
39
|
}
|
|
40
40
|
}
|