Skip to content

Commit

Permalink
chore: merge branch '2.6' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 11, 2019
2 parents 99343f9 + edf7df0 commit 6fe07eb
Show file tree
Hide file tree
Showing 109 changed files with 4,100 additions and 1,841 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ workflows:
filters:
branches:
only:
- "2.6"
- regression-test
requires:
- test-cover
Expand Down
18 changes: 9 additions & 9 deletions BACKERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
<img width="260px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/stdlib.png">
</a>
</p>

<!--special end-->

<h2 align="center">Platinum via Patreon</h2>
Expand Down Expand Up @@ -320,12 +320,12 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu

<!--50 start-->
- Wasim Khamlichi
- errorrik
- errorrik
- Alex Balashov
- Konstantin Levinski
- Ernest Sim
- Blaise Laflamme
- Dilettant
- Dilettant
<!--50 end-->

<h2 align="center">Backers via Patreon</h2>
Expand All @@ -344,10 +344,10 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
- Kirk Lewis
- Karol F
- Miljan Aleksic
- 叶解
- 叶解
- Jake Ingman
- Barbara Liau
- 4
- 4
- Jarek Tkaczyk
- Niannian Modisette
- Ivan Sieder
Expand Down Expand Up @@ -396,12 +396,12 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
- Jere Sjöroos
- Wakana Seki
- David Ang
- Dom
- Dom
- Ben Hong
- David Kaplan
- John Cleveland
- Jaeyoung Lee
- Amor
- Amor
- Tom Ootes
- Andy Foster
- Joe Cochran
Expand All @@ -428,10 +428,10 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
- Yusuke Kawabata
- Nick Dandakis
- JI CAI
- 龙腾道
- 龙腾道
- Milos Stojanovic
- Matkovsky Peter
- shimbaco
- shimbaco
- Princeyesuraj Edward
- Kenneth Crawford
<!--10 end-->
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Funds donated via Patreon go directly to support Evan You's full-time work on Vu
<img width="260px" src="https://raw.githubusercontent.com/vuejs/vuejs.org/master/themes/vue/source/images/stdlib.png">
</a>
</p>

<!--special end-->

<h3 align="center">Platinum Sponsors</h3>
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/ssr/common.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const self = (global || root)
const self = (global || root) // eslint-disable-line

self.performance = {
now: function () {
Expand Down Expand Up @@ -35,11 +35,11 @@ module.exports = {
}
},
// template: '<table><tr v-for="row in grid"><th>123</th><td v-for="item in row.items">{{ item.id }}</td></tr></table>',
template: '<table width="100%" cellspacing="2"><row v-for="row in grid" :row="row"></row></table>',
template: '<table width="100%" cellspacing="2"><row v-for="row in grid" :key="row.id" :row="row"></row></table>',
components: {
row: {
props: ['row'],
template: '<tr><th>{{ Math.random() }}</th><column v-for="item in row.items"></column></tr>',
template: '<tr><th>{{ Math.random() }}</th><column v-for="item in row.items" :key="item.id"></column></tr>',
components: {
column: {
template: '<td class="item">' +
Expand Down
6 changes: 1 addition & 5 deletions dist/vue.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,7 @@ function withMacroTask (fn) {
try {
return fn.apply(null, arguments)
} finally {
useMacroTask = false;
useMacroTask = false;
}
})
}
Expand Down Expand Up @@ -11078,7 +11078,3 @@ function getOuterHTML (el) {
return container.innerHTML
}
}

Vue.compile = compileToFunctions;

module.exports = Vue;
2 changes: 1 addition & 1 deletion dist/vue.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions dist/vue.runtime.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ function withMacroTask (fn) {
try {
return fn.apply(null, arguments)
} finally {
useMacroTask = false;
useMacroTask = false;
}
})
}
Expand Down Expand Up @@ -8103,7 +8103,3 @@ if (inBrowser) {
}
}, 0);
}

/* */

module.exports = Vue;
45 changes: 37 additions & 8 deletions flow/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ declare type CompilerOptions = {
isUnaryTag?: (tag: string) => ?boolean; // check if a tag is unary for the platform
canBeLeftOpenTag?: (tag: string) => ?boolean; // check if a tag can be left opened
isReservedTag?: (tag: string) => ?boolean; // check if a tag is a native for the platform
preserveWhitespace?: boolean; // preserve whitespace between elements?
preserveWhitespace?: boolean; // preserve whitespace between elements? (Deprecated)
whitespace?: 'preserve' | 'condense'; // whitespace handling strategy
optimize?: boolean; // optimize static content?

// web specific
Expand All @@ -18,6 +19,7 @@ declare type CompilerOptions = {
shouldDecodeTags?: boolean;
shouldDecodeNewlines?: boolean;
shouldDecodeNewlinesForHref?: boolean;
outputSourceRange?: boolean;

// runtime user-configurable
delimiters?: [string, string]; // template delimiters
Expand All @@ -27,13 +29,19 @@ declare type CompilerOptions = {
scopeId?: string;
};

declare type WarningMessage = {
msg: string;
start?: number;
end?: number;
};

declare type CompiledResult = {
ast: ?ASTElement;
render: string;
staticRenderFns: Array<string>;
stringRenderFns?: Array<string>;
errors?: Array<string>;
tips?: Array<string>;
errors?: Array<string | WarningMessage>;
tips?: Array<string | WarningMessage>;
};

declare type ModuleOptions = {
Expand All @@ -53,11 +61,14 @@ declare type ModuleOptions = {
declare type ASTModifiers = { [key: string]: boolean };
declare type ASTIfCondition = { exp: ?string; block: ASTElement };
declare type ASTIfConditions = Array<ASTIfCondition>;
declare type ASTAttr = { name: string; value: any; start?: number; end?: number };

declare type ASTElementHandler = {
value: string;
params?: Array<any>;
modifiers: ?ASTModifiers;
start?: number;
end?: number;
};

declare type ASTElementHandlers = {
Expand All @@ -70,18 +81,24 @@ declare type ASTDirective = {
value: string;
arg: ?string;
modifiers: ?ASTModifiers;
start?: number;
end?: number;
};

declare type ASTNode = ASTElement | ASTText | ASTExpression;
declare type ASTNode = ASTElement | ASTText | ASTExpression

declare type ASTElement = {
type: 1;
tag: string;
attrsList: Array<{ name: string; value: any }>;
attrsList: Array<ASTAttr>;
attrsMap: { [key: string]: any };
rawAttrsMap: { [key: string]: ASTAttr };
parent: ASTElement | void;
children: Array<ASTNode>;

start?: number;
end?: number;

processed?: true;

static?: boolean;
Expand All @@ -91,8 +108,8 @@ declare type ASTElement = {
hasBindings?: boolean;

text?: string;
attrs?: Array<{ name: string; value: any }>;
props?: Array<{ name: string; value: string }>;
attrs?: Array<ASTAttr>;
props?: Array<ASTAttr>;
plain?: boolean;
pre?: true;
ns?: string;
Expand Down Expand Up @@ -150,6 +167,9 @@ declare type ASTElement = {

// weex specific
appendAsTree?: boolean;

// 2.6 $slot check
has$Slot?: boolean
};

declare type ASTExpression = {
Expand All @@ -160,6 +180,10 @@ declare type ASTExpression = {
static?: boolean;
// 2.4 ssr optimization
ssrOptimizability?: number;
start?: number;
end?: number;
// 2.6 $slot check
has$Slot?: boolean
};

declare type ASTText = {
Expand All @@ -169,6 +193,10 @@ declare type ASTText = {
isComment?: boolean;
// 2.4 ssr optimization
ssrOptimizability?: number;
start?: number;
end?: number;
// 2.6 $slot check
has$Slot?: boolean
};

// SFC-parser related declarations
Expand All @@ -179,7 +207,8 @@ declare type SFCDescriptor = {
script: ?SFCBlock;
styles: Array<SFCBlock>;
customBlocks: Array<SFCBlock>;
};
errors: Array<string | WarningMessage>;
}

declare type SFCBlock = {
type: string;
Expand Down
2 changes: 2 additions & 0 deletions flow/global-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ declare interface GlobalAPI {
component: (id: string, def?: Class<Component> | Object) => Class<Component>;
filter: (id: string, def?: Function) => Function | void;

observable: <T>(value: T) => T;

// allow dynamic method registration
[key: string]: any
};
1 change: 1 addition & 0 deletions flow/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ declare type ComponentOptions = {
beforeDestroy?: Function;
destroyed?: Function;
errorCaptured?: () => boolean | void;
ssrPrefetch?: Function;

// assets
directives?: { [key: string]: Object };
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"sideEffects": false,
"scripts": {
"dev": "rollup -w -c scripts/config.js --environment TARGET:web-full-dev",
"dev:cjs": "rollup -w -c scripts/config.js --environment TARGET:web-runtime-cjs",
"dev:cjs": "rollup -w -c scripts/config.js --environment TARGET:web-runtime-cjs-dev",
"dev:esm": "rollup -w -c scripts/config.js --environment TARGET:web-runtime-esm",
"dev:test": "karma start test/unit/karma.dev.config.js",
"dev:ssr": "rollup -w -c scripts/config.js --environment TARGET:web-server-renderer",
Expand Down Expand Up @@ -74,30 +74,30 @@
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"@types/node": "^8.0.33",
"@types/webpack": "^3.0.13",
"@types/node": "^10.12.18",
"@types/webpack": "^4.4.22",
"acorn": "^5.2.1",
"babel-eslint": "^8.0.3",
"babel-eslint": "^10.0.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^8.0.4",
"babel-plugin-istanbul": "^5.1.0",
"babel-plugin-transform-vue-jsx": "^4.0.1",
"babel-preset-flow-vue": "^1.0.0",
"buble": "^0.19.3",
"chalk": "^2.3.0",
"chromedriver": "^2.30.1",
"chromedriver": "^2.45.0",
"codecov": "^3.0.0",
"commitizen": "^2.9.6",
"conventional-changelog": "^1.1.3",
"cross-spawn": "^5.1.0",
"cross-spawn": "^6.0.5",
"cz-conventional-changelog": "^2.0.0",
"de-indent": "^1.0.2",
"es6-promise": "^4.1.0",
"escodegen": "^1.8.1",
"eslint": "^5.7.0",
"eslint-plugin-flowtype": "^2.34.0",
"eslint-plugin-jasmine": "^2.8.4",
"file-loader": "^1.1.5",
"file-loader": "^3.0.1",
"flow-bin": "^0.61.0",
"hash-sum": "^1.0.2",
"he": "^1.1.1",
Expand All @@ -112,35 +112,35 @@
"karma-mocha-reporter": "^2.2.3",
"karma-phantomjs-launcher": "^1.0.4",
"karma-safari-launcher": "^1.0.0",
"karma-sauce-launcher": "^1.1.0",
"karma-sauce-launcher": "^2.0.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^4.0.0-rc.2",
"lint-staged": "^7.0.0",
"lint-staged": "^8.0.0",
"lodash": "^4.17.4",
"lodash.template": "^4.4.0",
"lodash.uniq": "^4.5.0",
"lru-cache": "^4.1.1",
"lru-cache": "^5.1.1",
"nightwatch": "^0.9.16",
"nightwatch-helpers": "^1.2.0",
"phantomjs-prebuilt": "^2.1.14",
"puppeteer": "^1.11.0",
"resolve": "^1.3.3",
"rollup": "^0.66.6",
"rollup": "^1.0.0",
"rollup-plugin-alias": "^1.3.1",
"rollup-plugin-babel": "^4.0.1",
"rollup-plugin-buble": "^0.19.2",
"rollup-plugin-buble": "^0.19.6",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-flow-no-whitespace": "^1.0.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.0.0",
"selenium-server": "^2.53.1",
"serialize-javascript": "^1.3.0",
"shelljs": "^0.8.1",
"typescript": "^3.1.3",
"terser": "^3.10.2",
"typescript": "^3.1.3",
"webpack": "^4.22.0",
"weex-js-runtime": "^0.23.6",
"weex-styler": "^0.3.0",
"yorkie": "^1.0.1"
"yorkie": "^2.0.0"
},
"config": {
"commitizen": {
Expand Down
Loading

0 comments on commit 6fe07eb

Please sign in to comment.