Commit Graph

1641 Commits

Author SHA1 Message Date
Rahul Kadyan
acec8db2c4 [WIP] Support for ref callback (#4807)
*  Tests for ref callback

*  Support for ref callback

* Add test of inline ref callback

* adjust ref implementation strategy

* fix patch ref registration

* fix tests

* fix flow

* fix test for phantomjs
2017-02-15 17:29:13 -05:00
Evan You
8d88512837 ssr: resolve require() calls relative to bundle (fix #4936) 2017-02-15 12:07:07 -05:00
Evan You
6977109051 improve transition-group move detection (fix #4900, close #4911) 2017-02-15 09:59:43 -05:00
Evan You
ef57aa250f update weex events module 2017-02-14 17:17:21 -05:00
Evan You
05c769bf44 fix .once with other modifiers that prevent execution of a handler (fix #4846) 2017-02-14 17:09:37 -05:00
Evan You
f59aef08e6 further improve end tag check (close #4408) 2017-02-14 15:47:40 -05:00
Zephraph
0201d8ca1d Add foreignObject as a dedicated SVG element (fixes #4813) (#4926)
* Add foreignObject to isSVG list; Fix for #4813

* Remove extra comma, alphabetize
2017-02-14 14:36:36 -05:00
Zephraph
97d36bc23f Pass attributes to parseComponent (addresses #4914) (#4925)
* Pass attributes to parseComponent

* Edited source in the right place, added test

* Back out changes made to the generated compiler build file

* Add a few more checks
2017-02-14 14:35:46 -05:00
Herrington Darkholme
01151ce3fa fix #4872, use context agnostic Function constructor check (#4928)
* fix #4872, use context agnostic Function constructor check

* use getType to check Function Constructor

* fix negation
2017-02-14 13:40:57 -05:00
Evan You
dfaf1265a2 small tweak to filter parser 2017-02-14 13:34:51 -05:00
Riccardo Causo
7259aefbe8 filter division expression with parentheses (fix #4838) (#4844)
* filter division expression with parentheses (fix #4838)

* verify also dot and square brackets

* missed a link check sorry for the useless commit

* added + - and _ support
2017-02-14 13:30:11 -05:00
Alexander Sheboltaev
ebe27295df typings: type-checking WatchHandler -- refining 2017-02-14 13:24:21 -05:00
Alexander Sheboltaev
c662fe09c7 typings: type-checking WatchHandler
Makes watch handler argument to be typechecked when the expression is set
as a function.
2017-02-14 13:24:21 -05:00
Evan You
168200a00a tweak comments 2017-02-14 12:46:42 -05:00
Evan You
e870e6c6af move props definition to component prototype when possible 2017-02-14 12:20:43 -05:00
Evan You
406352baba move computed properties definition to component prototype when possible 2017-02-14 12:03:14 -05:00
Evan You
4f6b1014b3 improve $props test case 2017-02-14 11:39:05 -05:00
Evan You
87ffd0da9f tweaks 2017-02-14 11:39:05 -05:00
Evan You
5fea184d50 $props type improvements 2017-02-14 11:39:05 -05:00
yantene
ef40d1b7cf add the type of props in typescript definitions 2017-02-14 11:39:05 -05:00
yantene
22f9560c92 add $props 2017-02-14 11:39:05 -05:00
AchillesJ
f763fc2354 small improvements on html-parser (#4932)
* remove unnecessary code

* not need to capture group when decoding attribute value

* fix eslint
2017-02-14 09:05:00 -05:00
Evan You
9df7870b7f revert ssr readme edit 2017-02-13 14:46:54 -05:00
Evan You
a7c066eee8 ssr: tweak names 2017-02-13 13:39:39 -05:00
Evan You
a0163cc0b5 update weex-template-compiler deps 2017-02-13 13:34:05 -05:00
Evan You
1c79592524 feat: implement template option for vue-server-renderer 2017-02-13 13:34:05 -05:00
Evan You
e71d70dcb3 tweak build + upgrade flow 2017-02-13 13:33:42 -05:00
Evan You
a5835c2abf allow turning off production tip via runtime config 2017-02-13 13:31:48 -05:00
Herrington Darkholme
a0042c4435 use vm.Script to avoid reparse (#4892) 2017-02-13 13:31:25 -05:00
Eduardo San Martin Morote
7e1d07aad2 Fix JSFiddle links (#4910)
Use an inline script tag with unpkg to explicitly show what we're
including. It allows to easily test regressions by appending @2.x.x at
the end of the of the link.
It also allows to directly check if the repro is using the latest
version
2017-02-12 18:49:47 -05:00
Phan An
a5a00738b1 Standardize the JSFiddle starter link (#4890)
* Standardize the JSFiddle starter link

We have two different JSFiddle starter links here, none of which is the version on Gitter.im (which appears to be more aligned with Vue's coding standard i.e. no root `<body>` tag, spacings and such). Modifying this issue template to use the Gitter.im version instead.

* Update JSFiddle link
2017-02-09 17:44:30 -05:00
Evan You
1f4cf63e8a tweak template compilation error output 2017-02-06 19:50:13 -05:00
Evan You
af619151c6 improve other parser warnings 2017-02-06 19:32:17 -05:00
Evan You
cfb4d7c655 improve parser warning for tags with no matching close tag 2017-02-06 19:18:50 -05:00
Evan You
a0a619f611 fix sfc parser hanging on trailing ill-formatted brackets (fix vue-loader/#628) 2017-02-06 18:24:32 -05:00
Evan You
bf1f5f18e2 avoid externals warning in ssr tests 2017-02-06 18:24:32 -05:00
Evan You
f968e6ba3a fix v-pre end check for unary tags 2017-02-06 18:24:32 -05:00
Eduardo San Martin Morote
ec7fca8495 Fix multiple attr in select with undefined value (#4859)
Fix #4855
2017-02-06 11:58:36 -05:00
p(^-^q)
8bf5af8edf fix addClass utlil bug (#4863)
* fix addClass util bug

`<transition-group move-class=“ value with leading or trailing whitespace ” />`

* fix addClass util bug

`<transition-group move-class=“ value with leading or trailing whitespace ” />`

* fix addClass util bug

`<transition-group move-class=“ value with leading or trailing whitespace ” />`

* update test case for `addClass / removeClass` util
2017-02-06 11:53:04 -05:00
kazuya kawaguchi
e853d1994d add compiler result field (#4845)
ref: CompiledResult type at flow/compiler.js
2017-02-03 12:29:40 -05:00
Evan You
12fa1eb01b update bundleRenderer docs 2017-02-03 10:42:19 -05:00
Evan You
c2c87419fe test bundleRenderer bundle format support + source map 2017-02-03 10:42:19 -05:00
Evan You
a2ca9b5184 suppress logs during weex tests 2017-02-03 10:42:19 -05:00
Evan You
1baa9d9c6c upgrade to use webpack 2.2 2017-02-03 10:42:19 -05:00
Evan You
b80f8ba5ab only map ssr stack trace if error is indeed an Error 2017-02-03 10:42:19 -05:00
Evan You
068095579b support source map in bundle renderer 2017-02-03 10:42:19 -05:00
Evan You
eb071980ff update bundle renderer bundle format 2017-02-03 10:42:19 -05:00
Evan You
561447d278 feat: support multi-chunk bundles in ssr bundle renderer 2017-02-03 10:42:19 -05:00
Adam Wang
d57f942814 fixed typo on line 15 (#4829) 2017-02-01 16:10:37 +01:00
jddxf
d14bd64143 Avoid double-decoding on attribute value (#4797)
* Use a single `replace` instead so that we could avoid the double-decoding issue,i.e. get `"` after decoding `&amp;quot;` while `&quot;` is expected.

* Don't instantiate RegExp on every call
2017-01-31 12:03:49 -05:00