@vue/compiler-core 3.2.29 → 3.2.32

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.
@@ -736,13 +736,13 @@ const deprecationData = {
736
736
  message: `Platform-native elements with "is" prop will no longer be ` +
737
737
  `treated as components in Vue 3 unless the "is" value is explicitly ` +
738
738
  `prefixed with "vue:".`,
739
- link: `https://v3.vuejs.org/guide/migration/custom-elements-interop.html`
739
+ link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`
740
740
  },
741
741
  ["COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */]: {
742
742
  message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +
743
743
  `argument instead. \`v-bind:${key}.sync\` should be changed to ` +
744
744
  `\`v-model:${key}\`.`,
745
- link: `https://v3.vuejs.org/guide/migration/v-model.html`
745
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`
746
746
  },
747
747
  ["COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */]: {
748
748
  message: `.prop modifier for v-bind has been removed and no longer necessary. ` +
@@ -754,11 +754,11 @@ const deprecationData = {
754
754
  `that appears before v-bind in the case of conflict. ` +
755
755
  `To retain 2.x behavior, move v-bind to make it the first attribute. ` +
756
756
  `You can also suppress this warning if the usage is intended.`,
757
- link: `https://v3.vuejs.org/guide/migration/v-bind.html`
757
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`
758
758
  },
759
759
  ["COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */]: {
760
760
  message: `.native modifier for v-on has been removed as is no longer necessary.`,
761
- link: `https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html`
761
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`
762
762
  },
763
763
  ["COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {
764
764
  message: `v-if / v-for precedence when used on the same element has changed ` +
@@ -766,7 +766,7 @@ const deprecationData = {
766
766
  `access to v-for scope variables. It is best to avoid the ambiguity ` +
767
767
  `with <template> tags or use a computed property that filters v-for ` +
768
768
  `data source.`,
769
- link: `https://v3.vuejs.org/guide/migration/v-if-v-for.html`
769
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`
770
770
  },
771
771
  ["COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */]: {
772
772
  message: `<template> with no special directives will render as a native template ` +
@@ -774,13 +774,13 @@ const deprecationData = {
774
774
  },
775
775
  ["COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */]: {
776
776
  message: `"inline-template" has been removed in Vue 3.`,
777
- link: `https://v3.vuejs.org/guide/migration/inline-template-attribute.html`
777
+ link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
778
778
  },
779
779
  ["COMPILER_FILTER" /* COMPILER_FILTERS */]: {
780
780
  message: `filters have been removed in Vue 3. ` +
781
781
  `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +
782
782
  `Use method calls or computed properties instead.`,
783
- link: `https://v3.vuejs.org/guide/migration/filters.html`
783
+ link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
784
784
  }
785
785
  };
786
786
  function getCompatValue(key, context) {
@@ -4747,7 +4747,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
4747
4747
  }
4748
4748
  }
4749
4749
  }
4750
- else {
4750
+ else if (!shared.isBuiltInDirective(name)) {
4751
4751
  // no built-in transform, this is a user custom directive.
4752
4752
  runtimeDirectives.push(prop);
4753
4753
  // custom dirs may use beforeUpdate so they need to force blocks
@@ -5720,6 +5720,7 @@ exports.advancePositionWithMutation = advancePositionWithMutation;
5720
5720
  exports.assert = assert;
5721
5721
  exports.baseCompile = baseCompile;
5722
5722
  exports.baseParse = baseParse;
5723
+ exports.buildDirectiveArgs = buildDirectiveArgs;
5723
5724
  exports.buildProps = buildProps;
5724
5725
  exports.buildSlots = buildSlots;
5725
5726
  exports.checkCompatEnabled = checkCompatEnabled;
@@ -735,13 +735,13 @@ const deprecationData = {
735
735
  message: `Platform-native elements with "is" prop will no longer be ` +
736
736
  `treated as components in Vue 3 unless the "is" value is explicitly ` +
737
737
  `prefixed with "vue:".`,
738
- link: `https://v3.vuejs.org/guide/migration/custom-elements-interop.html`
738
+ link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`
739
739
  },
740
740
  ["COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */]: {
741
741
  message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +
742
742
  `argument instead. \`v-bind:${key}.sync\` should be changed to ` +
743
743
  `\`v-model:${key}\`.`,
744
- link: `https://v3.vuejs.org/guide/migration/v-model.html`
744
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`
745
745
  },
746
746
  ["COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */]: {
747
747
  message: `.prop modifier for v-bind has been removed and no longer necessary. ` +
@@ -753,11 +753,11 @@ const deprecationData = {
753
753
  `that appears before v-bind in the case of conflict. ` +
754
754
  `To retain 2.x behavior, move v-bind to make it the first attribute. ` +
755
755
  `You can also suppress this warning if the usage is intended.`,
756
- link: `https://v3.vuejs.org/guide/migration/v-bind.html`
756
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`
757
757
  },
758
758
  ["COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */]: {
759
759
  message: `.native modifier for v-on has been removed as is no longer necessary.`,
760
- link: `https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html`
760
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`
761
761
  },
762
762
  ["COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {
763
763
  message: `v-if / v-for precedence when used on the same element has changed ` +
@@ -765,7 +765,7 @@ const deprecationData = {
765
765
  `access to v-for scope variables. It is best to avoid the ambiguity ` +
766
766
  `with <template> tags or use a computed property that filters v-for ` +
767
767
  `data source.`,
768
- link: `https://v3.vuejs.org/guide/migration/v-if-v-for.html`
768
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`
769
769
  },
770
770
  ["COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */]: {
771
771
  message: `<template> with no special directives will render as a native template ` +
@@ -773,13 +773,13 @@ const deprecationData = {
773
773
  },
774
774
  ["COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */]: {
775
775
  message: `"inline-template" has been removed in Vue 3.`,
776
- link: `https://v3.vuejs.org/guide/migration/inline-template-attribute.html`
776
+ link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
777
777
  },
778
778
  ["COMPILER_FILTER" /* COMPILER_FILTERS */]: {
779
779
  message: `filters have been removed in Vue 3. ` +
780
780
  `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +
781
781
  `Use method calls or computed properties instead.`,
782
- link: `https://v3.vuejs.org/guide/migration/filters.html`
782
+ link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
783
783
  }
784
784
  };
785
785
  function getCompatValue(key, context) {
@@ -4622,7 +4622,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
4622
4622
  }
4623
4623
  }
4624
4624
  }
4625
- else {
4625
+ else if (!shared.isBuiltInDirective(name)) {
4626
4626
  // no built-in transform, this is a user custom directive.
4627
4627
  runtimeDirectives.push(prop);
4628
4628
  // custom dirs may use beforeUpdate so they need to force blocks
@@ -5591,6 +5591,7 @@ exports.advancePositionWithMutation = advancePositionWithMutation;
5591
5591
  exports.assert = assert;
5592
5592
  exports.baseCompile = baseCompile;
5593
5593
  exports.baseParse = baseParse;
5594
+ exports.buildDirectiveArgs = buildDirectiveArgs;
5594
5595
  exports.buildProps = buildProps;
5595
5596
  exports.buildSlots = buildSlots;
5596
5597
  exports.checkCompatEnabled = checkCompatEnabled;
@@ -100,6 +100,8 @@ export declare interface BlockStatement extends Node_2 {
100
100
  body: (JSChildNode | IfStatement)[];
101
101
  }
102
102
 
103
+ export declare function buildDirectiveArgs(dir: DirectiveNode, context: TransformContext): ArrayExpression;
104
+
103
105
  export declare function buildProps(node: ElementNode, context: TransformContext, props?: ElementNode['props'], ssr?: boolean): {
104
106
  props: PropsExpression | undefined;
105
107
  directives: DirectiveNode[];
@@ -811,7 +813,7 @@ export declare interface Property extends Node_2 {
811
813
  value: JSChildNode;
812
814
  }
813
815
 
814
- declare type PropsExpression = ObjectExpression | CallExpression | ExpressionNode;
816
+ export declare type PropsExpression = ObjectExpression | CallExpression | ExpressionNode;
815
817
 
816
818
  export declare const PUSH_SCOPE_ID: unique symbol;
817
819
 
@@ -1,4 +1,4 @@
1
- import { isString, hyphenate, NOOP, extend, isObject, NO, isArray, makeMap, isSymbol, EMPTY_OBJ, capitalize, camelize as camelize$1, PatchFlagNames, slotFlagsText, isOn, isReservedProp, toHandlerKey } from '@vue/shared';
1
+ import { isString, hyphenate, NOOP, extend, isObject, NO, isArray, makeMap, isSymbol, EMPTY_OBJ, capitalize, camelize as camelize$1, PatchFlagNames, slotFlagsText, isOn, isBuiltInDirective, isReservedProp, toHandlerKey } from '@vue/shared';
2
2
  export { generateCodeFrame } from '@vue/shared';
3
3
 
4
4
  function defaultOnError(error) {
@@ -719,13 +719,13 @@ const deprecationData = {
719
719
  message: `Platform-native elements with "is" prop will no longer be ` +
720
720
  `treated as components in Vue 3 unless the "is" value is explicitly ` +
721
721
  `prefixed with "vue:".`,
722
- link: `https://v3.vuejs.org/guide/migration/custom-elements-interop.html`
722
+ link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`
723
723
  },
724
724
  ["COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */]: {
725
725
  message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +
726
726
  `argument instead. \`v-bind:${key}.sync\` should be changed to ` +
727
727
  `\`v-model:${key}\`.`,
728
- link: `https://v3.vuejs.org/guide/migration/v-model.html`
728
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`
729
729
  },
730
730
  ["COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */]: {
731
731
  message: `.prop modifier for v-bind has been removed and no longer necessary. ` +
@@ -737,11 +737,11 @@ const deprecationData = {
737
737
  `that appears before v-bind in the case of conflict. ` +
738
738
  `To retain 2.x behavior, move v-bind to make it the first attribute. ` +
739
739
  `You can also suppress this warning if the usage is intended.`,
740
- link: `https://v3.vuejs.org/guide/migration/v-bind.html`
740
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`
741
741
  },
742
742
  ["COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */]: {
743
743
  message: `.native modifier for v-on has been removed as is no longer necessary.`,
744
- link: `https://v3.vuejs.org/guide/migration/v-on-native-modifier-removed.html`
744
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`
745
745
  },
746
746
  ["COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {
747
747
  message: `v-if / v-for precedence when used on the same element has changed ` +
@@ -749,7 +749,7 @@ const deprecationData = {
749
749
  `access to v-for scope variables. It is best to avoid the ambiguity ` +
750
750
  `with <template> tags or use a computed property that filters v-for ` +
751
751
  `data source.`,
752
- link: `https://v3.vuejs.org/guide/migration/v-if-v-for.html`
752
+ link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`
753
753
  },
754
754
  ["COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */]: {
755
755
  message: `<template> with no special directives will render as a native template ` +
@@ -757,13 +757,13 @@ const deprecationData = {
757
757
  },
758
758
  ["COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */]: {
759
759
  message: `"inline-template" has been removed in Vue 3.`,
760
- link: `https://v3.vuejs.org/guide/migration/inline-template-attribute.html`
760
+ link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
761
761
  },
762
762
  ["COMPILER_FILTER" /* COMPILER_FILTERS */]: {
763
763
  message: `filters have been removed in Vue 3. ` +
764
764
  `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +
765
765
  `Use method calls or computed properties instead.`,
766
- link: `https://v3.vuejs.org/guide/migration/filters.html`
766
+ link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
767
767
  }
768
768
  };
769
769
  function getCompatValue(key, context) {
@@ -4002,7 +4002,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
4002
4002
  }
4003
4003
  }
4004
4004
  }
4005
- else {
4005
+ else if (!isBuiltInDirective(name)) {
4006
4006
  // no built-in transform, this is a user custom directive.
4007
4007
  runtimeDirectives.push(prop);
4008
4008
  // custom dirs may use beforeUpdate so they need to force blocks
@@ -4855,4 +4855,4 @@ function baseCompile(template, options = {}) {
4855
4855
 
4856
4856
  const noopDirectiveTransform = () => ({ props: [] });
4857
4857
 
4858
- export { BASE_TRANSITION, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, OPEN_BLOCK, POP_SCOPE_ID, PUSH_SCOPE_ID, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, SET_BLOCK_TRACKING, SUSPENSE, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, UNREF, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildProps, buildSlots, checkCompatEnabled, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, extractIdentifiers, findDir, findProp, generate, getBaseTransformPreset, getInnerRange, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isBuiltInType, isCoreComponent, isFunctionType, isInDestructureAssignment, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVSlot, locStub, makeBlock, noopDirectiveTransform, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, traverseNode, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
4858
+ export { BASE_TRANSITION, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, OPEN_BLOCK, POP_SCOPE_ID, PUSH_SCOPE_ID, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, SET_BLOCK_TRACKING, SUSPENSE, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, UNREF, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, extractIdentifiers, findDir, findProp, generate, getBaseTransformPreset, getInnerRange, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isBuiltInType, isCoreComponent, isFunctionType, isInDestructureAssignment, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText, isVSlot, locStub, makeBlock, noopDirectiveTransform, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, traverseNode, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-core",
3
- "version": "3.2.29",
3
+ "version": "3.2.32",
4
4
  "description": "@vue/compiler-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/compiler-core.esm-bundler.js",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
34
34
  "dependencies": {
35
- "@vue/shared": "3.2.29",
35
+ "@vue/shared": "3.2.32",
36
36
  "@babel/parser": "^7.16.4",
37
37
  "estree-walker": "^2.0.2",
38
38
  "source-map": "^0.6.1"