Socket
Socket
Sign inDemoInstall

@vue/server-renderer

Package Overview
Dependencies
Maintainers
2
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/server-renderer - npm Package Compare versions

Comparing version 3.5.0-alpha.5 to 3.5.0-beta.1

15

dist/server-renderer.cjs.js
/**
* @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;

7

dist/server-renderer.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc