Skip to content

Commit 9f3cbaf

Browse files
committed
build: build 2.6.0-beta.3
1 parent 2afa1d0 commit 9f3cbaf

19 files changed

+221
-85
lines changed

Diff for: dist/vue.common.dev.js

+26-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.0-beta.2
2+
* Vue.js v2.6.0-beta.3
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -5319,7 +5319,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
53195319
value: FunctionalRenderContext
53205320
});
53215321

5322-
Vue.version = '2.6.0-beta.2';
5322+
Vue.version = '2.6.0-beta.3';
53235323

53245324
/* */
53255325

@@ -9089,6 +9089,7 @@ var isNonPhrasingTag = makeMap(
90899089

90909090
// Regular Expressions for parsing tags and attributes
90919091
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9092+
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
90929093
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + unicodeLetters + "]*";
90939094
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
90949095
var startTagOpen = new RegExp(("^<" + qnameCapture));
@@ -9266,7 +9267,7 @@ function parseHTML (html, options) {
92669267
};
92679268
advance(start[0].length);
92689269
var end, attr;
9269-
while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {
9270+
while (!(end = html.match(startTagClose)) && (attr = html.match(dynamicArgAttribute) || html.match(attribute))) {
92709271
attr.start = index;
92719272
advance(attr[0].length);
92729273
attr.end = index;
@@ -9395,6 +9396,8 @@ var slotRE = /^v-slot(:|$)|^#/;
93959396
var lineBreakRE = /[\r\n]/;
93969397
var whitespaceRE$1 = /\s+/g;
93979398

9399+
var invalidAttributeRE = /[\s"'<>\/=]/;
9400+
93989401
var decodeHTMLCached = cached(he.decode);
93999402

94009403
// configurable state
@@ -9551,12 +9554,26 @@ function parse (
95519554
element.ns = ns;
95529555
}
95539556

9554-
if (options.outputSourceRange) {
9555-
element.start = start$1;
9556-
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
9557-
cumulated[attr.name] = attr;
9558-
return cumulated
9559-
}, {});
9557+
{
9558+
if (options.outputSourceRange) {
9559+
element.start = start$1;
9560+
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
9561+
cumulated[attr.name] = attr;
9562+
return cumulated
9563+
}, {});
9564+
}
9565+
attrs.forEach(function (attr) {
9566+
if (invalidAttributeRE.test(attr.name)) {
9567+
warn$2(
9568+
"Invalid dynamic argument expression: attribute names cannot contain " +
9569+
"spaces, quotes, <, >, / or =.",
9570+
{
9571+
start: attr.start + attr.name.indexOf("["),
9572+
end: attr.start + attr.name.length
9573+
}
9574+
);
9575+
}
9576+
});
95609577
}
95619578

95629579
if (isForbiddenTag(element) && !isServerRendering()) {

Diff for: dist/vue.common.prod.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue.esm.browser.js

+26-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.0-beta.2
2+
* Vue.js v2.6.0-beta.3
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -5352,7 +5352,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
53525352
value: FunctionalRenderContext
53535353
});
53545354

5355-
Vue.version = '2.6.0-beta.2';
5355+
Vue.version = '2.6.0-beta.3';
53565356

53575357
/* */
53585358

@@ -9108,6 +9108,7 @@ const isNonPhrasingTag = makeMap(
91089108

91099109
// Regular Expressions for parsing tags and attributes
91109110
const attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9111+
const dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
91119112
const ncname = `[a-zA-Z_][\\-\\.0-9_a-zA-Z${unicodeLetters}]*`;
91129113
const qnameCapture = `((?:${ncname}\\:)?${ncname})`;
91139114
const startTagOpen = new RegExp(`^<${qnameCapture}`);
@@ -9285,7 +9286,7 @@ function parseHTML (html, options) {
92859286
};
92869287
advance(start[0].length);
92879288
let end, attr;
9288-
while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {
9289+
while (!(end = html.match(startTagClose)) && (attr = html.match(dynamicArgAttribute) || html.match(attribute))) {
92899290
attr.start = index;
92909291
advance(attr[0].length);
92919292
attr.end = index;
@@ -9414,6 +9415,8 @@ const slotRE = /^v-slot(:|$)|^#/;
94149415
const lineBreakRE = /[\r\n]/;
94159416
const whitespaceRE$1 = /\s+/g;
94169417

9418+
const invalidAttributeRE = /[\s"'<>\/=]/;
9419+
94179420
const decodeHTMLCached = cached(he.decode);
94189421

94199422
// configurable state
@@ -9570,12 +9573,26 @@ function parse (
95709573
element.ns = ns;
95719574
}
95729575

9573-
if (options.outputSourceRange) {
9574-
element.start = start;
9575-
element.rawAttrsMap = element.attrsList.reduce((cumulated, attr) => {
9576-
cumulated[attr.name] = attr;
9577-
return cumulated
9578-
}, {});
9576+
{
9577+
if (options.outputSourceRange) {
9578+
element.start = start;
9579+
element.rawAttrsMap = element.attrsList.reduce((cumulated, attr) => {
9580+
cumulated[attr.name] = attr;
9581+
return cumulated
9582+
}, {});
9583+
}
9584+
attrs.forEach(attr => {
9585+
if (invalidAttributeRE.test(attr.name)) {
9586+
warn$2(
9587+
`Invalid dynamic argument expression: attribute names cannot contain ` +
9588+
`spaces, quotes, <, >, / or =.`,
9589+
{
9590+
start: attr.start + attr.name.indexOf(`[`),
9591+
end: attr.start + attr.name.length
9592+
}
9593+
);
9594+
}
9595+
});
95799596
}
95809597

95819598
if (isForbiddenTag(element) && !isServerRendering()) {

Diff for: dist/vue.esm.browser.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue.esm.js

+27-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.0-beta.2
2+
* Vue.js v2.6.0-beta.3
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -5339,7 +5339,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
53395339
value: FunctionalRenderContext
53405340
});
53415341

5342-
Vue.version = '2.6.0-beta.2';
5342+
Vue.version = '2.6.0-beta.3';
53435343

53445344
/* */
53455345

@@ -9117,6 +9117,7 @@ var isNonPhrasingTag = makeMap(
91179117

91189118
// Regular Expressions for parsing tags and attributes
91199119
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9120+
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
91209121
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + unicodeLetters + "]*";
91219122
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
91229123
var startTagOpen = new RegExp(("^<" + qnameCapture));
@@ -9294,7 +9295,7 @@ function parseHTML (html, options) {
92949295
};
92959296
advance(start[0].length);
92969297
var end, attr;
9297-
while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {
9298+
while (!(end = html.match(startTagClose)) && (attr = html.match(dynamicArgAttribute) || html.match(attribute))) {
92989299
attr.start = index;
92999300
advance(attr[0].length);
93009301
attr.end = index;
@@ -9424,6 +9425,8 @@ var slotRE = /^v-slot(:|$)|^#/;
94249425
var lineBreakRE = /[\r\n]/;
94259426
var whitespaceRE$1 = /\s+/g;
94269427

9428+
var invalidAttributeRE = /[\s"'<>\/=]/;
9429+
94279430
var decodeHTMLCached = cached(he.decode);
94289431

94299432
// configurable state
@@ -9580,12 +9583,26 @@ function parse (
95809583
element.ns = ns;
95819584
}
95829585

9583-
if (process.env.NODE_ENV !== 'production' && options.outputSourceRange) {
9584-
element.start = start$1;
9585-
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
9586-
cumulated[attr.name] = attr;
9587-
return cumulated
9588-
}, {});
9586+
if (process.env.NODE_ENV !== 'production') {
9587+
if (options.outputSourceRange) {
9588+
element.start = start$1;
9589+
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
9590+
cumulated[attr.name] = attr;
9591+
return cumulated
9592+
}, {});
9593+
}
9594+
attrs.forEach(function (attr) {
9595+
if (invalidAttributeRE.test(attr.name)) {
9596+
warn$2(
9597+
"Invalid dynamic argument expression: attribute names cannot contain " +
9598+
"spaces, quotes, <, >, / or =.",
9599+
{
9600+
start: attr.start + attr.name.indexOf("["),
9601+
end: attr.start + attr.name.length
9602+
}
9603+
);
9604+
}
9605+
});
95899606
}
95909607

95919608
if (isForbiddenTag(element) && !isServerRendering()) {
@@ -9976,7 +9993,7 @@ function processSlotContent (el) {
99769993
}
99779994

99789995
// 2.6 v-slot syntax
9979-
if (process.env.NEW_SLOT_SYNTAX) {
9996+
{
99809997
if (el.tag === 'template') {
99819998
// v-slot on <template>
99829999
var slotBinding = getAndRemoveAttrByRegex(el, slotRE);

Diff for: dist/vue.js

+26-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.0-beta.2
2+
* Vue.js v2.6.0-beta.3
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -5323,7 +5323,7 @@
53235323
value: FunctionalRenderContext
53245324
});
53255325

5326-
Vue.version = '2.6.0-beta.2';
5326+
Vue.version = '2.6.0-beta.3';
53275327

53285328
/* */
53295329

@@ -9093,6 +9093,7 @@
90939093

90949094
// Regular Expressions for parsing tags and attributes
90959095
var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9096+
var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
90969097
var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + unicodeLetters + "]*";
90979098
var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
90989099
var startTagOpen = new RegExp(("^<" + qnameCapture));
@@ -9270,7 +9271,7 @@
92709271
};
92719272
advance(start[0].length);
92729273
var end, attr;
9273-
while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {
9274+
while (!(end = html.match(startTagClose)) && (attr = html.match(dynamicArgAttribute) || html.match(attribute))) {
92749275
attr.start = index;
92759276
advance(attr[0].length);
92769277
attr.end = index;
@@ -9399,6 +9400,8 @@
93999400
var lineBreakRE = /[\r\n]/;
94009401
var whitespaceRE$1 = /\s+/g;
94019402

9403+
var invalidAttributeRE = /[\s"'<>\/=]/;
9404+
94029405
var decodeHTMLCached = cached(he.decode);
94039406

94049407
// configurable state
@@ -9555,12 +9558,26 @@
95559558
element.ns = ns;
95569559
}
95579560

9558-
if (options.outputSourceRange) {
9559-
element.start = start$1;
9560-
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
9561-
cumulated[attr.name] = attr;
9562-
return cumulated
9563-
}, {});
9561+
{
9562+
if (options.outputSourceRange) {
9563+
element.start = start$1;
9564+
element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
9565+
cumulated[attr.name] = attr;
9566+
return cumulated
9567+
}, {});
9568+
}
9569+
attrs.forEach(function (attr) {
9570+
if (invalidAttributeRE.test(attr.name)) {
9571+
warn$2(
9572+
"Invalid dynamic argument expression: attribute names cannot contain " +
9573+
"spaces, quotes, <, >, / or =.",
9574+
{
9575+
start: attr.start + attr.name.indexOf("["),
9576+
end: attr.start + attr.name.length
9577+
}
9578+
);
9579+
}
9580+
});
95649581
}
95659582

95669583
if (isForbiddenTag(element) && !isServerRendering()) {

Diff for: dist/vue.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue.runtime.common.dev.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.0-beta.2
2+
* Vue.js v2.6.0-beta.3
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -5310,7 +5310,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
53105310
value: FunctionalRenderContext
53115311
});
53125312

5313-
Vue.version = '2.6.0-beta.2';
5313+
Vue.version = '2.6.0-beta.3';
53145314

53155315
/* */
53165316

Diff for: dist/vue.runtime.common.prod.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/vue.runtime.esm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.0-beta.2
2+
* Vue.js v2.6.0-beta.3
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -5330,7 +5330,7 @@ Object.defineProperty(Vue, 'FunctionalRenderContext', {
53305330
value: FunctionalRenderContext
53315331
});
53325332

5333-
Vue.version = '2.6.0-beta.2';
5333+
Vue.version = '2.6.0-beta.3';
53345334

53355335
/* */
53365336

Diff for: dist/vue.runtime.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Vue.js v2.6.0-beta.2
2+
* Vue.js v2.6.0-beta.3
33
* (c) 2014-2019 Evan You
44
* Released under the MIT License.
55
*/
@@ -5314,7 +5314,7 @@
53145314
value: FunctionalRenderContext
53155315
});
53165316

5317-
Vue.version = '2.6.0-beta.2';
5317+
Vue.version = '2.6.0-beta.3';
53185318

53195319
/* */
53205320

Diff for: dist/vue.runtime.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)