Skip to content

Commit

Permalink
build: build 2.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 12, 2019
1 parent 29c348f commit ac7a5bd
Show file tree
Hide file tree
Showing 19 changed files with 211 additions and 43 deletions.
29 changes: 25 additions & 4 deletions dist/vue.common.dev.js
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.5
* Vue.js v2.6.6
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -5379,7 +5379,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});

Vue.version = '2.6.5';
Vue.version = '2.6.6';

/* */

Expand Down Expand Up @@ -10791,7 +10791,13 @@ function genHandler (handler) {
}

function genKeyFilter (keys) {
return ("if(('keyCode' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
return (
// make sure the key filters only apply to KeyboardEvents
// #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
// key events that do not have keyCode property...
"if(!$event.type.indexOf('key')&&" +
(keys.map(genFilterCode).join('&&')) + ")return null;"
)
}

function genFilterCode (key) {
Expand Down Expand Up @@ -11154,7 +11160,12 @@ function genScopedSlots (
// for example if the slot contains dynamic names, has v-if or v-for on them...
var needsForceUpdate = Object.keys(slots).some(function (key) {
var slot = slots[key];
return slot.slotTargetDynamic || slot.if || slot.for
return (
slot.slotTargetDynamic ||
slot.if ||
slot.for ||
containsSlotChild(slot) // is passing down slot from parent which may be dynamic
)
});
// OR when it is inside another scoped slot (the reactivity is disconnected)
// #9438
Expand All @@ -11174,6 +11185,16 @@ function genScopedSlots (
}).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
}

function containsSlotChild (el) {
if (el.type === 1) {
if (el.tag === 'slot') {
return true
}
return el.children.some(containsSlotChild)
}
return false
}

function genScopedSlot (
el,
state
Expand Down
4 changes: 2 additions & 2 deletions dist/vue.common.prod.js

Large diffs are not rendered by default.

29 changes: 25 additions & 4 deletions dist/vue.esm.browser.js
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.5
* Vue.js v2.6.6
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -5410,7 +5410,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});

Vue.version = '2.6.5';
Vue.version = '2.6.6';

/* */

Expand Down Expand Up @@ -10806,7 +10806,13 @@ function genHandler (handler) {
}

function genKeyFilter (keys) {
return `if(('keyCode' in $event)&&${keys.map(genFilterCode).join('&&')})return null;`
return (
// make sure the key filters only apply to KeyboardEvents
// #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
// key events that do not have keyCode property...
`if(!$event.type.indexOf('key')&&` +
`${keys.map(genFilterCode).join('&&')})return null;`
)
}

function genFilterCode (key) {
Expand Down Expand Up @@ -11213,7 +11219,12 @@ function genScopedSlots (
// for example if the slot contains dynamic names, has v-if or v-for on them...
let needsForceUpdate = Object.keys(slots).some(key => {
const slot = slots[key];
return slot.slotTargetDynamic || slot.if || slot.for
return (
slot.slotTargetDynamic ||
slot.if ||
slot.for ||
containsSlotChild(slot) // is passing down slot from parent which may be dynamic
)
});
// OR when it is inside another scoped slot (the reactivity is disconnected)
// #9438
Expand All @@ -11235,6 +11246,16 @@ function genScopedSlots (
}]${needsForceUpdate ? `,true` : ``})`
}

function containsSlotChild (el) {
if (el.type === 1) {
if (el.tag === 'slot') {
return true
}
return el.children.some(containsSlotChild)
}
return false
}

function genScopedSlot (
el,
state
Expand Down
4 changes: 2 additions & 2 deletions dist/vue.esm.browser.min.js

Large diffs are not rendered by default.

29 changes: 25 additions & 4 deletions dist/vue.esm.js
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.5
* Vue.js v2.6.6
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -5399,7 +5399,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});

Vue.version = '2.6.5';
Vue.version = '2.6.6';

/* */

Expand Down Expand Up @@ -10822,7 +10822,13 @@ function genHandler (handler) {
}

function genKeyFilter (keys) {
return ("if(('keyCode' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
return (
// make sure the key filters only apply to KeyboardEvents
// #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
// key events that do not have keyCode property...
"if(!$event.type.indexOf('key')&&" +
(keys.map(genFilterCode).join('&&')) + ")return null;"
)
}

function genFilterCode (key) {
Expand Down Expand Up @@ -11188,7 +11194,12 @@ function genScopedSlots (
// for example if the slot contains dynamic names, has v-if or v-for on them...
var needsForceUpdate = Object.keys(slots).some(function (key) {
var slot = slots[key];
return slot.slotTargetDynamic || slot.if || slot.for
return (
slot.slotTargetDynamic ||
slot.if ||
slot.for ||
containsSlotChild(slot) // is passing down slot from parent which may be dynamic
)
});
// OR when it is inside another scoped slot (the reactivity is disconnected)
// #9438
Expand All @@ -11208,6 +11219,16 @@ function genScopedSlots (
}).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
}

function containsSlotChild (el) {
if (el.type === 1) {
if (el.tag === 'slot') {
return true
}
return el.children.some(containsSlotChild)
}
return false
}

function genScopedSlot (
el,
state
Expand Down
29 changes: 25 additions & 4 deletions dist/vue.js
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.5
* Vue.js v2.6.6
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -5383,7 +5383,7 @@
value: FunctionalRenderContext
});

Vue.version = '2.6.5';
Vue.version = '2.6.6';

/* */

Expand Down Expand Up @@ -10795,7 +10795,13 @@
}

function genKeyFilter (keys) {
return ("if(('keyCode' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
return (
// make sure the key filters only apply to KeyboardEvents
// #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
// key events that do not have keyCode property...
"if(!$event.type.indexOf('key')&&" +
(keys.map(genFilterCode).join('&&')) + ")return null;"
)
}

function genFilterCode (key) {
Expand Down Expand Up @@ -11158,7 +11164,12 @@
// for example if the slot contains dynamic names, has v-if or v-for on them...
var needsForceUpdate = Object.keys(slots).some(function (key) {
var slot = slots[key];
return slot.slotTargetDynamic || slot.if || slot.for
return (
slot.slotTargetDynamic ||
slot.if ||
slot.for ||
containsSlotChild(slot) // is passing down slot from parent which may be dynamic
)
});
// OR when it is inside another scoped slot (the reactivity is disconnected)
// #9438
Expand All @@ -11178,6 +11189,16 @@
}).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
}

function containsSlotChild (el) {
if (el.type === 1) {
if (el.tag === 'slot') {
return true
}
return el.children.some(containsSlotChild)
}
return false
}

function genScopedSlot (
el,
state
Expand Down
4 changes: 2 additions & 2 deletions dist/vue.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/vue.runtime.common.dev.js
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.5
* Vue.js v2.6.6
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -5370,7 +5370,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});

Vue.version = '2.6.5';
Vue.version = '2.6.6';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.runtime.common.prod.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/vue.runtime.esm.js
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.5
* Vue.js v2.6.6
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -5390,7 +5390,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
value: FunctionalRenderContext
});

Vue.version = '2.6.5';
Vue.version = '2.6.6';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.runtime.js
@@ -1,5 +1,5 @@
/*!
* Vue.js v2.6.5
* Vue.js v2.6.6
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
Expand Down Expand Up @@ -5374,7 +5374,7 @@
value: FunctionalRenderContext
});

Vue.version = '2.6.5';
Vue.version = '2.6.6';

/* */

Expand Down
4 changes: 2 additions & 2 deletions dist/vue.runtime.min.js

Large diffs are not rendered by default.

25 changes: 23 additions & 2 deletions packages/vue-server-renderer/basic.js
Expand Up @@ -5156,7 +5156,13 @@
}

function genKeyFilter (keys) {
return ("if(('keyCode' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
return (
// make sure the key filters only apply to KeyboardEvents
// #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
// key events that do not have keyCode property...
"if(!$event.type.indexOf('key')&&" +
(keys.map(genFilterCode).join('&&')) + ")return null;"
)
}

function genFilterCode (key) {
Expand Down Expand Up @@ -5519,7 +5525,12 @@
// for example if the slot contains dynamic names, has v-if or v-for on them...
var needsForceUpdate = Object.keys(slots).some(function (key) {
var slot = slots[key];
return slot.slotTargetDynamic || slot.if || slot.for
return (
slot.slotTargetDynamic ||
slot.if ||
slot.for ||
containsSlotChild(slot) // is passing down slot from parent which may be dynamic
)
});
// OR when it is inside another scoped slot (the reactivity is disconnected)
// #9438
Expand All @@ -5539,6 +5550,16 @@
}).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
}

function containsSlotChild (el) {
if (el.type === 1) {
if (el.tag === 'slot') {
return true
}
return el.children.some(containsSlotChild)
}
return false
}

function genScopedSlot (
el,
state
Expand Down
25 changes: 23 additions & 2 deletions packages/vue-server-renderer/build.dev.js
Expand Up @@ -4906,7 +4906,13 @@ function genHandler (handler) {
}

function genKeyFilter (keys) {
return ("if(('keyCode' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
return (
// make sure the key filters only apply to KeyboardEvents
// #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
// key events that do not have keyCode property...
"if(!$event.type.indexOf('key')&&" +
(keys.map(genFilterCode).join('&&')) + ")return null;"
)
}

function genFilterCode (key) {
Expand Down Expand Up @@ -5269,7 +5275,12 @@ function genScopedSlots (
// for example if the slot contains dynamic names, has v-if or v-for on them...
var needsForceUpdate = Object.keys(slots).some(function (key) {
var slot = slots[key];
return slot.slotTargetDynamic || slot.if || slot.for
return (
slot.slotTargetDynamic ||
slot.if ||
slot.for ||
containsSlotChild(slot) // is passing down slot from parent which may be dynamic
)
});
// OR when it is inside another scoped slot (the reactivity is disconnected)
// #9438
Expand All @@ -5289,6 +5300,16 @@ function genScopedSlots (
}).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
}

function containsSlotChild (el) {
if (el.type === 1) {
if (el.tag === 'slot') {
return true
}
return el.children.some(containsSlotChild)
}
return false
}

function genScopedSlot (
el,
state
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-server-renderer/build.prod.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/vue-server-renderer/package.json
@@ -1,6 +1,6 @@
{
"name": "vue-server-renderer",
"version": "2.6.5",
"version": "2.6.6",
"description": "server renderer for Vue 2.0",
"main": "index.js",
"types": "types/index.d.ts",
Expand Down

0 comments on commit ac7a5bd

Please sign in to comment.