提交 51223cb8 编写于 作者: fxy060608's avatar fxy060608

build(deps): bump vue from 3.1.0-beta.7 to 3.1.1

上级 e623d378
......@@ -81,8 +81,8 @@
"semver": "^7.3.4",
"ts-jest": "^26.4.4",
"typescript": "~4.1.3",
"vite": "^2.3.6",
"vue": "^3.1.0-beta.5",
"vite": "^2.3.7",
"vue": "^3.1.1",
"yorkie": "^2.0.0"
},
"name": "uni-app-next"
......
......@@ -16,8 +16,8 @@
"@dcloudio/uni-h5-vue": "../../uni-h5-vue",
"@dcloudio/uni-i18n": "../../uni-i18n",
"@dcloudio/uni-shared": "../../uni-shared",
"@vue/shared": "^3.1.0-beta.7",
"vue": "^3.1.0-beta.7",
"@vue/shared": "^3.1.1",
"vue": "^3.1.1",
"vue-router": "^4.0.8",
"vuex": "^4.0.1"
},
......@@ -26,11 +26,11 @@
"@dcloudio/uni-h5-vite": "../../uni-h5-vite",
"@dcloudio/vite-plugin-uni": "../../vite-plugin-uni",
"@vitejs/plugin-vue": "^1.2.3",
"@vue/compiler-sfc": "^3.1.0-beta.7",
"@vue/server-renderer": "^3.1.0-beta.7",
"@vue/compiler-sfc": "^3.1.1",
"@vue/server-renderer": "^3.1.1",
"compression": "^1.7.4",
"cypress": "^7.3.0",
"serve-static": "^1.14.1",
"vite": "^2.3.6"
"vite": "^2.3.7"
}
}
......@@ -750,7 +750,7 @@ function shallowRef(value) {
return createRef(value, true);
}
class RefImpl {
constructor(_rawValue, _shallow = false) {
constructor(_rawValue, _shallow) {
this._rawValue = _rawValue;
this._shallow = _shallow;
this.__v_isRef = true;
......@@ -1871,11 +1871,12 @@ function emit(instance, event, ...rawArgs) {
const onceHandler = props[handlerName + `Once`];
if (onceHandler) {
if (!instance.emitted) {
(instance.emitted = {})[handlerName] = true;
instance.emitted = {};
}
else if (instance.emitted[handlerName]) {
return;
}
instance.emitted[handlerName] = true;
callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
}
}
......@@ -2786,7 +2787,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
}
else if (arguments.length > 1) {
return treatDefaultAsFactory && shared.isFunction(defaultValue)
? defaultValue()
? defaultValue.call(instance.proxy)
: defaultValue;
}
else {
......@@ -4951,6 +4952,7 @@ function createAppAPI(render, hydrate) {
_props: rootProps,
_container: null,
_context: context,
_instance: null,
version,
get config() {
return context.config;
......@@ -5038,6 +5040,7 @@ function createAppAPI(render, hydrate) {
app._container = rootContainer;
rootContainer.__vue_app__ = app;
{
app._instance = vnode.component;
devtoolsInitApp(app, version);
}
return vnode.component.proxy;
......@@ -5053,6 +5056,7 @@ function createAppAPI(render, hydrate) {
if (isMounted) {
render(null, app._container);
{
app._instance = null;
devtoolsUnmountApp(app);
}
delete app._container.__vue_app__;
......@@ -5906,7 +5910,7 @@ function baseCreateRenderer(options, createHydrationFns) {
const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));
const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
if (patchFlag > 0) {
if (dynamicChildren) {
optimized = true;
}
// check if this is a slot fragment with :slotted scope ids
......@@ -8503,7 +8507,7 @@ function initCustomFormatter() {
}
// Core API ------------------------------------------------------------------
const version = "3.1.0-beta.7";
const version = "3.1.1";
const _ssrUtils = {
createComponentInstance,
setupComponent,
......
......@@ -1048,7 +1048,7 @@ function shallowRef(value) {
return createRef(value, true);
}
class RefImpl {
constructor(_rawValue, _shallow = false) {
constructor(_rawValue, _shallow) {
this._rawValue = _rawValue;
this._shallow = _shallow;
this.__v_isRef = true;
......@@ -2353,11 +2353,12 @@ function emit$1(instance, event, ...rawArgs) {
const onceHandler = props[handlerName + `Once`];
if (onceHandler) {
if (!instance.emitted) {
(instance.emitted = {})[handlerName] = true;
instance.emitted = {};
}
else if (instance.emitted[handlerName]) {
return;
}
instance.emitted[handlerName] = true;
callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
}
{
......@@ -3294,7 +3295,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
}
else if (arguments.length > 1) {
return treatDefaultAsFactory && isFunction(defaultValue)
? defaultValue()
? defaultValue.call(instance.proxy)
: defaultValue;
}
else {
......@@ -5663,7 +5664,7 @@ function createCompatVue(createApp, createSingletonApp) {
return vm;
}
}
Vue.version = "3.1.0-beta.7";
Vue.version = "3.1.1";
Vue.config = singletonApp.config;
Vue.use = (p, ...options) => {
if (p && isFunction(p.install)) {
......@@ -6105,6 +6106,7 @@ function createAppAPI(render, hydrate) {
_props: rootProps,
_container: null,
_context: context,
_instance: null,
version,
get config() {
return context.config;
......@@ -6192,6 +6194,7 @@ function createAppAPI(render, hydrate) {
app._container = rootContainer;
rootContainer.__vue_app__ = app;
{
app._instance = vnode.component;
devtoolsInitApp(app, version);
}
return vnode.component.proxy;
......@@ -6207,6 +6210,7 @@ function createAppAPI(render, hydrate) {
if (isMounted) {
render(null, app._container);
{
app._instance = null;
devtoolsUnmountApp(app);
}
delete app._container.__vue_app__;
......@@ -7104,7 +7108,7 @@ function baseCreateRenderer(options, createHydrationFns) {
const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));
const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
if (patchFlag > 0) {
if (dynamicChildren) {
optimized = true;
}
// check if this is a slot fragment with :slotted scope ids
......@@ -9396,6 +9400,14 @@ function installCompatInstanceProperties(map) {
extend(map, {
// needed by many libs / render fns
$vnode: i => i.vnode,
// inject addtional properties into $options for compat
// e.g. vuex needs this.$options.parent
$options: i => {
const res = extend({}, resolveMergedOptions(i));
res.parent = i.proxy.$parent;
res.propsData = i.vnode.props;
return res;
},
// some private properties that are likely accessed...
_self: i => i.proxy,
_uid: i => i.uid,
......@@ -10327,7 +10339,7 @@ function initCustomFormatter() {
}
// Core API ------------------------------------------------------------------
const version = "3.1.0-beta.7";
const version = "3.1.1";
const _ssrUtils = {
createComponentInstance,
setupComponent,
......
......@@ -1048,7 +1048,7 @@ function shallowRef(value) {
return createRef(value, true);
}
class RefImpl {
constructor(_rawValue, _shallow = false) {
constructor(_rawValue, _shallow) {
this._rawValue = _rawValue;
this._shallow = _shallow;
this.__v_isRef = true;
......@@ -2363,11 +2363,12 @@ function emit$1(instance, event, ...rawArgs) {
const onceHandler = props[handlerName + `Once`];
if (onceHandler) {
if (!instance.emitted) {
(instance.emitted = {})[handlerName] = true;
instance.emitted = {};
}
else if (instance.emitted[handlerName]) {
return;
}
instance.emitted[handlerName] = true;
callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
}
{
......@@ -3304,7 +3305,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
}
else if (arguments.length > 1) {
return treatDefaultAsFactory && isFunction(defaultValue)
? defaultValue()
? defaultValue.call(instance.proxy)
: defaultValue;
}
else if ((process.env.NODE_ENV !== 'production')) {
......@@ -5665,7 +5666,7 @@ function createCompatVue(createApp, createSingletonApp) {
return vm;
}
}
Vue.version = "3.1.0-beta.7";
Vue.version = "3.1.1";
Vue.config = singletonApp.config;
Vue.use = (p, ...options) => {
if (p && isFunction(p.install)) {
......@@ -6109,6 +6110,7 @@ function createAppAPI(render, hydrate) {
_props: rootProps,
_container: null,
_context: context,
_instance: null,
version,
get config() {
return context.config;
......@@ -6199,6 +6201,7 @@ function createAppAPI(render, hydrate) {
app._container = rootContainer;
rootContainer.__vue_app__ = app;
if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {
app._instance = vnode.component;
devtoolsInitApp(app, version);
}
return vnode.component.proxy;
......@@ -6214,6 +6217,7 @@ function createAppAPI(render, hydrate) {
if (isMounted) {
render(null, app._container);
if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {
app._instance = null;
devtoolsUnmountApp(app);
}
delete app._container.__vue_app__;
......@@ -7159,7 +7163,7 @@ function baseCreateRenderer(options, createHydrationFns) {
const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));
const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
if (patchFlag > 0) {
if (dynamicChildren) {
optimized = true;
}
// check if this is a slot fragment with :slotted scope ids
......@@ -9457,6 +9461,14 @@ function installCompatInstanceProperties(map) {
extend(map, {
// needed by many libs / render fns
$vnode: i => i.vnode,
// inject addtional properties into $options for compat
// e.g. vuex needs this.$options.parent
$options: i => {
const res = extend({}, resolveMergedOptions(i));
res.parent = i.proxy.$parent;
res.propsData = i.vnode.props;
return res;
},
// some private properties that are likely accessed...
_self: i => i.proxy,
_uid: i => i.uid,
......@@ -10388,7 +10400,7 @@ function initCustomFormatter() {
}
// Core API ------------------------------------------------------------------
const version = "3.1.0-beta.7";
const version = "3.1.1";
/**
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
* @internal
......
......@@ -748,7 +748,7 @@ function shallowRef(value) {
return createRef(value, true);
}
class RefImpl {
constructor(_rawValue, _shallow = false) {
constructor(_rawValue, _shallow) {
this._rawValue = _rawValue;
this._shallow = _shallow;
this.__v_isRef = true;
......@@ -1880,11 +1880,12 @@ function emit(instance, event, ...rawArgs) {
const onceHandler = props[handlerName + `Once`];
if (onceHandler) {
if (!instance.emitted) {
(instance.emitted = {})[handlerName] = true;
instance.emitted = {};
}
else if (instance.emitted[handlerName]) {
return;
}
instance.emitted[handlerName] = true;
callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
}
}
......@@ -2795,7 +2796,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
}
else if (arguments.length > 1) {
return treatDefaultAsFactory && isFunction(defaultValue)
? defaultValue()
? defaultValue.call(instance.proxy)
: defaultValue;
}
else if ((process.env.NODE_ENV !== 'production')) {
......@@ -4951,6 +4952,7 @@ function createAppAPI(render, hydrate) {
_props: rootProps,
_container: null,
_context: context,
_instance: null,
version,
get config() {
return context.config;
......@@ -5041,6 +5043,7 @@ function createAppAPI(render, hydrate) {
app._container = rootContainer;
rootContainer.__vue_app__ = app;
if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {
app._instance = vnode.component;
devtoolsInitApp(app, version);
}
return vnode.component.proxy;
......@@ -5056,6 +5059,7 @@ function createAppAPI(render, hydrate) {
if (isMounted) {
render(null, app._container);
if ((process.env.NODE_ENV !== 'production') || __VUE_PROD_DEVTOOLS__) {
app._instance = null;
devtoolsUnmountApp(app);
}
delete app._container.__vue_app__;
......@@ -5957,7 +5961,7 @@ function baseCreateRenderer(options, createHydrationFns) {
const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));
const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
if (patchFlag > 0) {
if (dynamicChildren) {
optimized = true;
}
// check if this is a slot fragment with :slotted scope ids
......@@ -8560,7 +8564,7 @@ function initCustomFormatter() {
}
// Core API ------------------------------------------------------------------
const version = "3.1.0-beta.7";
const version = "3.1.1";
/**
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
* @internal
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册