@vue/compiler-ssr
Advanced tools
Comparing version 3.4.23 to 3.4.24
/** | ||
* @vue/compiler-ssr v3.4.23 | ||
* @vue/compiler-ssr v3.4.24 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -140,10 +140,16 @@ * @license MIT | ||
let method = SSR_RENDER_SLOT; | ||
const parent = context.parent; | ||
let componentType; | ||
if (parent && parent.type === 1 && parent.tagType === 1 && ((componentType = compilerDom.resolveComponentType(parent, context, true)) === compilerDom.TRANSITION || componentType === compilerDom.TRANSITION_GROUP) && parent.children.filter((c) => c.type === 1).length === 1) { | ||
method = SSR_RENDER_SLOT_INNER; | ||
if (!(context.scopeId && context.slotted !== false)) { | ||
args.push("null"); | ||
let parent = context.parent; | ||
if (parent) { | ||
const children = parent.children; | ||
if (parent.type === 10) { | ||
parent = context.grandParent; | ||
} | ||
args.push("true"); | ||
let componentType; | ||
if (parent.type === 1 && parent.tagType === 1 && ((componentType = compilerDom.resolveComponentType(parent, context, true)) === compilerDom.TRANSITION || componentType === compilerDom.TRANSITION_GROUP) && children.filter((c) => c.type === 1).length === 1) { | ||
method = SSR_RENDER_SLOT_INNER; | ||
if (!(context.scopeId && context.slotted !== false)) { | ||
args.push("null"); | ||
} | ||
args.push("true"); | ||
} | ||
} | ||
@@ -374,3 +380,6 @@ node.ssrCodegenNode = compilerDom.createCallExpression(context.helper(method), args); | ||
if (prop.name === "html" && prop.exp) { | ||
rawChildrenMap.set(node, prop.exp); | ||
rawChildrenMap.set( | ||
node, | ||
compilerDom.createCompoundExpression([`(`, prop.exp, `) ?? ''`]) | ||
); | ||
} else if (prop.name === "text" && prop.exp) { | ||
@@ -377,0 +386,0 @@ node.children = [compilerDom.createInterpolation(prop.exp, prop.loc)]; |
{ | ||
"name": "@vue/compiler-ssr", | ||
"version": "3.4.23", | ||
"version": "3.4.24", | ||
"description": "@vue/compiler-ssr", | ||
@@ -31,5 +31,5 @@ "main": "dist/compiler-ssr.cjs.js", | ||
"dependencies": { | ||
"@vue/shared": "3.4.23", | ||
"@vue/compiler-dom": "3.4.23" | ||
"@vue/shared": "3.4.24", | ||
"@vue/compiler-dom": "3.4.24" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46551
1358
+ Added@vue/compiler-core@3.4.24(transitive)
+ Added@vue/compiler-dom@3.4.24(transitive)
+ Added@vue/shared@3.4.24(transitive)
- Removed@vue/compiler-core@3.4.23(transitive)
- Removed@vue/compiler-dom@3.4.23(transitive)
- Removed@vue/shared@3.4.23(transitive)
Updated@vue/compiler-dom@3.4.24
Updated@vue/shared@3.4.24