@vue/server-renderer
Advanced tools
Comparing version 3.5.0-alpha.5 to 3.5.0-beta.1
/** | ||
* @vue/server-renderer v3.5.0-alpha.5 | ||
* @vue/server-renderer v3.5.0-beta.1 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -91,2 +91,3 @@ * @license MIT | ||
const { ensureValidVNode } = Vue.ssrUtils; | ||
function ssrRenderSlot(slots, slotName, slotProps, fallbackRenderFn, push, parentComponent, slotScopeId) { | ||
@@ -119,3 +120,13 @@ push(`<!--[-->`); | ||
if (shared.isArray(ret)) { | ||
renderVNodeChildren(push, ret, parentComponent, slotScopeId); | ||
const validSlotContent = ensureValidVNode(ret); | ||
if (validSlotContent) { | ||
renderVNodeChildren( | ||
push, | ||
validSlotContent, | ||
parentComponent, | ||
slotScopeId | ||
); | ||
} else if (fallbackRenderFn) { | ||
fallbackRenderFn(); | ||
} | ||
} else { | ||
@@ -122,0 +133,0 @@ let isEmptySlot = true; |
/** | ||
* @vue/server-renderer v3.5.0-alpha.5 | ||
* @vue/server-renderer v3.5.0-beta.1 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -91,2 +91,3 @@ * @license MIT | ||
const { ensureValidVNode } = Vue.ssrUtils; | ||
function ssrRenderSlot(slots, slotName, slotProps, fallbackRenderFn, push, parentComponent, slotScopeId) { | ||
@@ -119,3 +120,13 @@ push(`<!--[-->`); | ||
if (shared.isArray(ret)) { | ||
renderVNodeChildren(push, ret, parentComponent, slotScopeId); | ||
const validSlotContent = ensureValidVNode(ret); | ||
if (validSlotContent) { | ||
renderVNodeChildren( | ||
push, | ||
validSlotContent, | ||
parentComponent, | ||
slotScopeId | ||
); | ||
} else if (fallbackRenderFn) { | ||
fallbackRenderFn(); | ||
} | ||
} else { | ||
@@ -122,0 +133,0 @@ let isEmptySlot = true; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { VNode, ComponentInternalInstance, App, Slots, Component, ComponentPublicInstance, Directive } from 'vue'; | ||
@@ -61,9 +60,7 @@ import { Readable, Writable } from 'node:stream'; | ||
export declare function ssrGetDynamicModelProps(existingProps: any, model: unknown): { | ||
checked: boolean; | ||
value?: undefined; | ||
checked: true; | ||
} | { | ||
value: unknown; | ||
checked?: undefined; | ||
value: any; | ||
} | null; | ||
export { renderVNode as ssrRenderVNode }; |
/** | ||
* @vue/server-renderer v3.5.0-alpha.5 | ||
* @vue/server-renderer v3.5.0-beta.1 | ||
* (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
* @license MIT | ||
**/ | ||
import { createVNode, ssrContextKey, ssrUtils, warn as warn$2, Fragment, Static, Comment, Text, mergeProps, createApp, initDirectivesForSSR } from 'vue'; | ||
import { createVNode, ssrUtils, ssrContextKey, warn as warn$2, Fragment, Static, Comment, Text, mergeProps, createApp, initDirectivesForSSR } from 'vue'; | ||
import { isOn, isRenderableAttrValue, isSVGTag, propsToAttrMap, isBooleanAttr, includeBooleanAttr, isSSRSafeAttrName, escapeHtml, normalizeClass, isString, normalizeStyle, stringifyStyle, makeMap, isArray, toDisplayString, extend, isFunction, EMPTY_OBJ, getGlobalThis, NOOP, isObject, looseEqual, looseIndexOf, isPromise, escapeHtmlComment, isVoidTag } from '@vue/shared'; | ||
@@ -74,2 +74,3 @@ export { includeBooleanAttr as ssrIncludeBooleanAttr } from '@vue/shared'; | ||
const { ensureValidVNode } = ssrUtils; | ||
function ssrRenderSlot(slots, slotName, slotProps, fallbackRenderFn, push, parentComponent, slotScopeId) { | ||
@@ -102,3 +103,13 @@ push(`<!--[-->`); | ||
if (isArray(ret)) { | ||
renderVNodeChildren(push, ret, parentComponent, slotScopeId); | ||
const validSlotContent = ensureValidVNode(ret); | ||
if (validSlotContent) { | ||
renderVNodeChildren( | ||
push, | ||
validSlotContent, | ||
parentComponent, | ||
slotScopeId | ||
); | ||
} else if (fallbackRenderFn) { | ||
fallbackRenderFn(); | ||
} | ||
} else { | ||
@@ -263,5 +274,11 @@ let isEmptySlot = true; | ||
const targetMap = /* @__PURE__ */ new WeakMap(); | ||
Symbol(!!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""); | ||
Symbol(!!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : ""); | ||
Symbol(!!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""); | ||
Symbol( | ||
!!(process.env.NODE_ENV !== "production") ? "Object iterate" : "" | ||
); | ||
Symbol( | ||
!!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : "" | ||
); | ||
Symbol( | ||
!!(process.env.NODE_ENV !== "production") ? "Array iterate" : "" | ||
); | ||
function track(target, type, key) { | ||
@@ -268,0 +285,0 @@ if (shouldTrack && activeSub) { |
{ | ||
"name": "@vue/server-renderer", | ||
"version": "3.5.0-alpha.5", | ||
"version": "3.5.0-beta.1", | ||
"description": "@vue/server-renderer", | ||
@@ -49,8 +49,8 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"vue": "3.5.0-alpha.5" | ||
"vue": "3.5.0-beta.1" | ||
}, | ||
"dependencies": { | ||
"@vue/shared": "3.5.0-alpha.5", | ||
"@vue/compiler-ssr": "3.5.0-alpha.5" | ||
"@vue/shared": "3.5.0-beta.1", | ||
"@vue/compiler-ssr": "3.5.0-beta.1" | ||
} | ||
} |
@@ -14,3 +14,3 @@ # @vue/server-renderer | ||
input: App | VNode, | ||
context?: SSRContext | ||
context?: SSRContext, | ||
): Promise<string> | ||
@@ -27,3 +27,3 @@ ``` | ||
data: () => ({ msg: 'hello' }), | ||
template: `<div>{{ msg }}</div>` | ||
template: `<div>{{ msg }}</div>`, | ||
}) | ||
@@ -79,3 +79,3 @@ | ||
context: SSRContext = {}, | ||
writable: Writable | ||
writable: Writable, | ||
): void | ||
@@ -100,3 +100,3 @@ ``` | ||
input: App | VNode, | ||
context?: SSRContext | ||
context?: SSRContext, | ||
): ReadableStream | ||
@@ -124,3 +124,3 @@ ``` | ||
context: SSRContext = {}, | ||
writable: WritableStream | ||
writable: WritableStream, | ||
): void | ||
@@ -152,3 +152,3 @@ ``` | ||
context: SSRContext, | ||
options: SimpleReadable | ||
options: SimpleReadable, | ||
): SimpleReadable | ||
@@ -181,5 +181,5 @@ | ||
// error encountered | ||
} | ||
} | ||
}, | ||
}, | ||
) | ||
``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
412704
11815
+ Added@vue/compiler-core@3.5.0-beta.1(transitive)
+ Added@vue/compiler-dom@3.5.0-beta.1(transitive)
+ Added@vue/compiler-sfc@3.5.0-beta.1(transitive)
+ Added@vue/compiler-ssr@3.5.0-beta.1(transitive)
+ Added@vue/reactivity@3.5.0-beta.1(transitive)
+ Added@vue/runtime-core@3.5.0-beta.1(transitive)
+ Added@vue/runtime-dom@3.5.0-beta.1(transitive)
+ Added@vue/shared@3.5.0-beta.1(transitive)
+ Addedentities@5.0.0(transitive)
+ Addedvue@3.5.0-beta.1(transitive)
- Removed@vue/compiler-core@3.5.0-alpha.5(transitive)
- Removed@vue/compiler-dom@3.5.0-alpha.5(transitive)
- Removed@vue/compiler-sfc@3.5.0-alpha.5(transitive)
- Removed@vue/compiler-ssr@3.5.0-alpha.5(transitive)
- Removed@vue/reactivity@3.5.0-alpha.5(transitive)
- Removed@vue/runtime-core@3.5.0-alpha.5(transitive)
- Removed@vue/runtime-dom@3.5.0-alpha.5(transitive)
- Removed@vue/shared@3.5.0-alpha.5(transitive)
- Removedentities@4.5.0(transitive)
- Removedvue@3.5.0-alpha.5(transitive)
Updated@vue/shared@3.5.0-beta.1