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.
- package/compiler-sfc/index.mjs +1 -0
- package/compiler-sfc/package.json +1 -0
- package/dist/vue.common.dev.js +15 -10
- package/dist/vue.common.prod.js +3 -3
- package/dist/vue.esm.browser.js +13 -11
- package/dist/vue.esm.browser.min.js +3 -3
- package/dist/vue.esm.js +13 -11
- package/dist/vue.js +15 -10
- package/dist/vue.min.js +3 -3
- package/dist/vue.runtime.common.dev.js +15 -10
- package/dist/vue.runtime.common.prod.js +3 -3
- package/dist/vue.runtime.esm.js +13 -11
- package/dist/vue.runtime.js +15 -10
- package/dist/vue.runtime.min.js +3 -3
- package/dist/vue.runtime.mjs +8487 -0
- package/package.json +19 -2
- package/packages/compiler-sfc/package.json +1 -1
- package/{src/sfc → packages/compiler-sfc/src}/parser.ts +0 -0
- package/src/core/instance/inject.ts +4 -1
- package/src/core/observer/index.ts +6 -2
- package/src/types/component.ts +2 -1
- package/src/types/options.ts +2 -10
- package/src/v3/apiSetup.ts +9 -1
- package/src/v3/index.ts +8 -0
- package/types/common.d.ts +15 -0
- package/types/index.d.ts +32 -1
- package/types/options.d.ts +3 -23
- package/types/v3-component-options.d.ts +120 -0
- package/types/v3-component-props.d.ts +100 -0
- package/types/v3-component-proxy.d.ts +189 -0
- package/types/v3-define-component.d.ts +119 -0
- package/types/v3-generated.d.ts +18 -0
- package/types/{v3.d.ts → v3-manual-apis.d.ts} +1 -7
- package/types/v3-setup-context.d.ts +42 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@vue/compiler-sfc'
|
package/dist/vue.common.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vue.js v2.7.0-alpha.
|
|
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.
|
|
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
|