vue 2.7.0-alpha.1 → 2.7.0-alpha.4

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.
@@ -0,0 +1 @@
1
+ export * from '@vue/compiler-sfc'
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "main": "index.js",
3
+ "module": "index.mjs",
3
4
  "types": "index.d.ts"
4
5
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vue.js v2.7.0-alpha.1
2
+ * Vue.js v2.7.0-alpha.4
3
3
  * (c) 2014-2022 Evan You
4
4
  * Released under the MIT License.
5
5
  */
@@ -1943,6 +1943,9 @@ function initProvide(vm) {
1943
1943
  var provided = isFunction(provideOption)
1944
1944
  ? provideOption.call(vm)
1945
1945
  : provideOption;
1946
+ if (!isObject(provided)) {
1947
+ return;
1948
+ }
1946
1949
  var keys = hasSymbol ? Reflect.ownKeys(provided) : Object.keys(provided);
1947
1950
  setCurrentInstance(vm);
1948
1951
  for (var i = 0; i < keys.length; i++) {
@@ -4552,8 +4555,16 @@ var onServerPrefetch = createLifeCycle('serverPrefetch');
4552
4555
  var onRenderTracked = createLifeCycle('renderTracked');
4553
4556
  var onRenderTriggered = createLifeCycle('renderTriggered');
4554
4557
 
4558
+ /**
4559
+ * @internal type is manually declared in <root>/types/v3-define-component.d.ts
4560
+ */
4561
+ function defineComponent(options) {
4562
+ return options;
4563
+ }
4564
+
4555
4565
  var vca = /*#__PURE__*/Object.freeze({
4556
4566
  __proto__: null,
4567
+ defineComponent: defineComponent,
4557
4568
  ref: ref$1,
4558
4569
  shallowRef: shallowRef,
4559
4570
  isRef: isRef,
@@ -4588,6 +4599,8 @@ var vca = /*#__PURE__*/Object.freeze({
4588
4599
  useSlots: useSlots,
4589
4600
  useAttrs: useAttrs,
4590
4601
  nextTick: nextTick,
4602
+ set: set,
4603
+ del: del,
4591
4604
  onBeforeMount: onBeforeMount,
4592
4605
  onMounted: onMounted,
4593
4606
  onBeforeUpdate: onBeforeUpdate,
@@ -4782,11 +4795,6 @@ function defineReactive(obj, key, val, customSetter, shallow) {
4782
4795
  });
4783
4796
  return dep;
4784
4797
  }
4785
- /**
4786
- * Set a property on an object. Adds the new property and
4787
- * triggers change notification if the property doesn't
4788
- * already exist.
4789
- */
4790
4798
  function set(target, key, val) {
4791
4799
  if ((isUndef(target) || isPrimitive(target))) {
4792
4800
  warn$2("Cannot set reactive property on undefined, null, or primitive value: ".concat(target));
@@ -4826,9 +4834,6 @@ function set(target, key, val) {
4826
4834
  }
4827
4835
  return val;
4828
4836
  }
4829
- /**
4830
- * Delete a property and trigger change if necessary.
4831
- */
4832
4837
  function del(target, key) {
4833
4838
  if ((isUndef(target) || isPrimitive(target))) {
4834
4839
  warn$2("Cannot delete reactive property on undefined, null, or primitive value: ".concat(target));
@@ -5793,7 +5798,7 @@ Object.defineProperty(Vue.prototype, '$ssrContext', {
5793
5798
  Object.defineProperty(Vue, 'FunctionalRenderContext', {
5794
5799
  value: FunctionalRenderContext
5795
5800
  });
5796
- Vue.version = '2.7.0-alpha.1';
5801
+ Vue.version = '2.7.0-alpha.4';
5797
5802
 
5798
5803
  // these are reserved for web because they are directly compiled away
5799
5804
  // during template compilation