Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@vue/shared

Package Overview
Dependencies
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/shared - npm Package Compare versions

Comparing version
3.6.0-beta.12
to
3.6.0-beta.13
+55
-2
dist/shared.cjs.js
/**
* @vue/shared v3.6.0-beta.12
* @vue/shared v3.6.0-beta.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -667,3 +667,7 @@ * @license MIT

"ONCE": 4,
"4": "ONCE"
"4": "ONCE",
"IS_SINGLE_NODE": 8,
"8": "IS_SINGLE_NODE",
"IS_FRAGMENT": 16,
"16": "IS_FRAGMENT"
};

@@ -678,2 +682,48 @@ const VaporBlockShape = {

};
/**
* Bit layout for vapor `createIf` flags.
*
* - bits 0-1: true branch VaporBlockShape
* - bits 2-3: false branch VaporBlockShape
* - bit 4: v-once
* - bit 5: true branch does not need EffectScope
* - bit 6: false branch does not need EffectScope
* - bits 7+: branch index + 1 for keyed dynamic fragments
*
* Examples:
* - v-once, true single-root, no false branch: 1 | ONCE = 17
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 7) = 133
*/
const VaporIfFlags = {
"BLOCK_SHAPE": 15,
"15": "BLOCK_SHAPE",
"ONCE": 16,
"16": "ONCE",
"TRUE_NO_SCOPE": 32,
"32": "TRUE_NO_SCOPE",
"FALSE_NO_SCOPE": 64,
"64": "FALSE_NO_SCOPE",
"INDEX_SHIFT": 7,
"7": "INDEX_SHIFT"
};
/**
* Flags used by vapor template factories, shared between the compiler and the
* runtime.
*/
const TemplateFlags = {
"ROOT": 1,
"1": "ROOT",
"STATIC": 2,
"2": "STATIC"
};
/**
* Flags used by vapor slot outlets, shared between the compiler and the
* runtime.
*/
const VaporSlotFlags = {
"NO_SLOTTED": 1,
"1": "NO_SLOTTED",
"ONCE": 2,
"2": "ONCE"
};
//#endregion

@@ -689,3 +739,6 @@ exports.EMPTY_ARR = EMPTY_ARR;

exports.SlotFlags = SlotFlags;
exports.TemplateFlags = TemplateFlags;
exports.VaporBlockShape = VaporBlockShape;
exports.VaporIfFlags = VaporIfFlags;
exports.VaporSlotFlags = VaporSlotFlags;
exports.VaporVForFlags = VaporVForFlags;

@@ -692,0 +745,0 @@ exports.YES = YES;

/**
* @vue/shared v3.6.0-beta.12
* @vue/shared v3.6.0-beta.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -667,3 +667,7 @@ * @license MIT

"ONCE": 4,
"4": "ONCE"
"4": "ONCE",
"IS_SINGLE_NODE": 8,
"8": "IS_SINGLE_NODE",
"IS_FRAGMENT": 16,
"16": "IS_FRAGMENT"
};

@@ -678,2 +682,48 @@ const VaporBlockShape = {

};
/**
* Bit layout for vapor `createIf` flags.
*
* - bits 0-1: true branch VaporBlockShape
* - bits 2-3: false branch VaporBlockShape
* - bit 4: v-once
* - bit 5: true branch does not need EffectScope
* - bit 6: false branch does not need EffectScope
* - bits 7+: branch index + 1 for keyed dynamic fragments
*
* Examples:
* - v-once, true single-root, no false branch: 1 | ONCE = 17
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 7) = 133
*/
const VaporIfFlags = {
"BLOCK_SHAPE": 15,
"15": "BLOCK_SHAPE",
"ONCE": 16,
"16": "ONCE",
"TRUE_NO_SCOPE": 32,
"32": "TRUE_NO_SCOPE",
"FALSE_NO_SCOPE": 64,
"64": "FALSE_NO_SCOPE",
"INDEX_SHIFT": 7,
"7": "INDEX_SHIFT"
};
/**
* Flags used by vapor template factories, shared between the compiler and the
* runtime.
*/
const TemplateFlags = {
"ROOT": 1,
"1": "ROOT",
"STATIC": 2,
"2": "STATIC"
};
/**
* Flags used by vapor slot outlets, shared between the compiler and the
* runtime.
*/
const VaporSlotFlags = {
"NO_SLOTTED": 1,
"1": "NO_SLOTTED",
"ONCE": 2,
"2": "ONCE"
};
//#endregion

@@ -689,3 +739,6 @@ exports.EMPTY_ARR = EMPTY_ARR;

exports.SlotFlags = SlotFlags;
exports.TemplateFlags = TemplateFlags;
exports.VaporBlockShape = VaporBlockShape;
exports.VaporIfFlags = VaporIfFlags;
exports.VaporSlotFlags = VaporSlotFlags;
exports.VaporVForFlags = VaporVForFlags;

@@ -692,0 +745,0 @@ exports.YES = YES;

@@ -404,3 +404,5 @@ //#region temp/packages/shared/src/makeMap.d.ts

* v-for used on component - we can skip creating child scopes for each block
* because the component itself already has a scope.
* because the component itself already has a scope. This does not guarantee
* the item block is a VaporComponentInstance: component fallback paths may
* still return a DOM Node.
*/

@@ -411,3 +413,12 @@ IS_COMPONENT = 2,

*/
ONCE = 4
ONCE = 4,
/**
* v-for item block is a single DOM Node.
*/
IS_SINGLE_NODE = 8,
/**
* v-for item block is known to be a VaporFragment, so runtime can use
* fragment-specific insert/remove helpers.
*/
IS_FRAGMENT = 16
}

@@ -419,2 +430,58 @@ export declare enum VaporBlockShape {

}
/**
* Bit layout for vapor `createIf` flags.
*
* - bits 0-1: true branch VaporBlockShape
* - bits 2-3: false branch VaporBlockShape
* - bit 4: v-once
* - bit 5: true branch does not need EffectScope
* - bit 6: false branch does not need EffectScope
* - bits 7+: branch index + 1 for keyed dynamic fragments
*
* Examples:
* - v-once, true single-root, no false branch: 1 | ONCE = 17
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 7) = 133
*/
export declare enum VaporIfFlags {
/**
* Documents the packed true/false branch shape bits. Runtime decode shifts
* to the selected branch first, then masks with 0b11 for one VaporBlockShape.
*/
BLOCK_SHAPE = 15,
/**
* Marks a branch that is created once and never updated.
*/
ONCE = 16,
/**
* The compiler proved that the true branch does not create branch-owned
* effects or disposers.
*/
TRUE_NO_SCOPE = 32,
/**
* The compiler proved that the false branch does not create branch-owned
* effects or disposers.
*/
FALSE_NO_SCOPE = 64,
/**
* Shift for keyed branch index. The encoded value is index + 1, so decoded
* zero means "not keyed" and source index 0 still round-trips.
*/
INDEX_SHIFT = 7
}
/**
* Flags used by vapor template factories, shared between the compiler and the
* runtime.
*/
export declare enum TemplateFlags {
ROOT = 1,
STATIC = 2
}
/**
* Flags used by vapor slot outlets, shared between the compiler and the
* runtime.
*/
export declare enum VaporSlotFlags {
NO_SLOTTED = 1,
ONCE = 2
}
//#endregion
/**
* @vue/shared v3.6.0-beta.12
* @vue/shared v3.6.0-beta.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -665,3 +665,7 @@ * @license MIT

"ONCE": 4,
"4": "ONCE"
"4": "ONCE",
"IS_SINGLE_NODE": 8,
"8": "IS_SINGLE_NODE",
"IS_FRAGMENT": 16,
"16": "IS_FRAGMENT"
};

@@ -676,3 +680,49 @@ const VaporBlockShape = {

};
/**
* Bit layout for vapor `createIf` flags.
*
* - bits 0-1: true branch VaporBlockShape
* - bits 2-3: false branch VaporBlockShape
* - bit 4: v-once
* - bit 5: true branch does not need EffectScope
* - bit 6: false branch does not need EffectScope
* - bits 7+: branch index + 1 for keyed dynamic fragments
*
* Examples:
* - v-once, true single-root, no false branch: 1 | ONCE = 17
* - keyed index 0, true/false single-root: 1 | (1 << 2) | (1 << 7) = 133
*/
const VaporIfFlags = {
"BLOCK_SHAPE": 15,
"15": "BLOCK_SHAPE",
"ONCE": 16,
"16": "ONCE",
"TRUE_NO_SCOPE": 32,
"32": "TRUE_NO_SCOPE",
"FALSE_NO_SCOPE": 64,
"64": "FALSE_NO_SCOPE",
"INDEX_SHIFT": 7,
"7": "INDEX_SHIFT"
};
/**
* Flags used by vapor template factories, shared between the compiler and the
* runtime.
*/
const TemplateFlags = {
"ROOT": 1,
"1": "ROOT",
"STATIC": 2,
"2": "STATIC"
};
/**
* Flags used by vapor slot outlets, shared between the compiler and the
* runtime.
*/
const VaporSlotFlags = {
"NO_SLOTTED": 1,
"1": "NO_SLOTTED",
"ONCE": 2,
"2": "ONCE"
};
//#endregion
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, VaporBlockShape, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, TemplateFlags, VaporBlockShape, VaporIfFlags, VaporSlotFlags, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
+1
-1
{
"name": "@vue/shared",
"version": "3.6.0-beta.12",
"version": "3.6.0-beta.13",
"description": "internal utils shared across @vue packages",

@@ -5,0 +5,0 @@ "main": "index.js",