Evan You
8262edcd22
test for ssr rendering async components
2017-05-24 16:50:17 +08:00
Evan You
7404091896
support async hydration
2017-05-24 16:50:17 +08:00
Sébastien Chopin
f3757eb37b
feat: Add `defer` to body scripts ( #5704 )
...
* fix: prefetch should not have `as` attribute
* feat: Add `async` to body script tags
* Use defer instead of async
* Use defer instead of async
2017-05-22 17:47:55 +08:00
Evan You
43485fbc5b
Merge branch 'ssr-optimize' into dev
2017-05-18 16:56:05 +08:00
Evan You
f061d802d3
fix v-if false rendering
2017-05-18 16:53:35 +08:00
Evan You
41acdc0ff1
fix v-html/v-text on root element
2017-05-18 16:07:49 +08:00
Evan You
2f4ad14d9f
test template v-if/v-for
2017-05-18 16:04:54 +08:00
Sébastien Chopin
ebca266d10
fix: prefetch should not have `as` attribute ( #5683 )
2017-05-17 00:18:02 +08:00
Evan You
303780acd2
make function compilation reusable
2017-05-15 15:35:45 +08:00
Evan You
af12d3ff7f
progress
2017-05-15 14:14:49 +08:00
Evan You
7694c85564
fix static tree optimization for v-else(-if) conditions
2017-05-15 12:05:19 +08:00
Maciej Kasprzyk
d6bd667e1a
Warn when component option should be an object, but is not ( #5605 ) ( #5642 )
...
* warn when component should be an object, but is not
* remarks
* remarks
* remarks
* rename to checkOptionType and guard production
* typo
* Update state.js
* Update test-object-option.js
2017-05-12 10:22:00 +08:00
AchillesJ
e3ffa109b3
make vm.$watch api consistent with watch option ( #5645 )
2017-05-11 15:10:40 +08:00
chengchao
aaad7334d9
improve scoped slot test case ( #5640 )
2017-05-10 00:54:09 +08:00
Evan You
e70f191b56
no need to test composition events on Android
2017-05-10 00:51:28 +08:00
Evan You
38759a6957
fix test case in IE
2017-05-10 00:37:41 +08:00
Evan You
8d54aecdd0
async components: timeout should not trigger if already resolved ( fix #5635 )
2017-05-09 23:35:09 +08:00
Evan You
0ccefff794
support v-for on scoped slots ( fix #5615 )
2017-05-09 23:22:55 +08:00
laoxiong
f2bd882073
Fix: nested child elements can not be updated correctly, fix #5618 ( #5627 )
...
* fix:nested elements can not be updated correctly
* add tests
* ensure nestedIndex is always passed down
2017-05-09 23:21:49 +08:00
Eduardo San Martin Morote
d52a4991bd
Prevent unecessary input trigger with v-model ( #5589 )
...
* Prevent unecessary input trigger with v-model
Fix #5586
* Add test for compositionend on v-model + @input
* [skip ci] Rename tests for compositionend
2017-05-07 21:46:33 +08:00
Herrington Darkholme
9ac4c4188d
fix #5591 : keep ssr template interpolation whitespace-insensitive ( #5597 )
2017-05-07 21:43:02 +08:00
laoxiong
3b426efe60
Fix when functional component render method retrun null ( fix #5536 ) ( #5539 )
...
* fix:create empty vnode when functional component return null
* add test
* use isDef
2017-04-29 14:42:35 +08:00
Evan You
d8315c42ef
do not decode text inside script/style tags ( fix #5526 )
2017-04-27 12:23:48 +08:00
Evan You
cb0531c4fb
increase async delay for more test cases
2017-04-26 18:29:09 +08:00
Evan You
c24f492543
fix edge test case
2017-04-26 18:24:38 +08:00
Evan You
1096890827
increase async component test delay
2017-04-26 18:06:31 +08:00
Yusuke Otsuka
12b7122c16
fix mixin issue ( #5514 )
2017-04-26 14:51:25 +08:00
Evan You
016920ebea
support customizing context and window keys for renderState()
2017-04-25 13:22:11 +08:00
Eduardo San Martin Morote
380e988823
Allow slot names to be numbers ( #5481 )
...
Closes #5480
2017-04-25 12:25:27 +08:00
Evan You
2efc0446b3
inline css links in renderStyles()
2017-04-23 22:54:49 +08:00
Evan You
4f9f28cf16
renderLinks -> renderResourceHints
2017-04-23 22:54:49 +08:00
Evan You
9ca0c35a3f
ssr: inject userContext into vnode to ensure correctness
2017-04-20 13:05:59 +08:00
Evan You
67d02fbf3f
adjust renderToString context argument position
2017-04-20 10:15:41 +08:00
Evan You
2d50ac177b
ssr inject: false option
2017-04-19 11:56:59 +08:00
Evan You
7b8b0e48f7
restructure: remove entires directory
2017-04-18 12:38:27 +08:00
Evan You
c0da43d22f
fix incorrect compiler warning for $delete usage in templates ( fix #5464 )
2017-04-18 11:40:32 +08:00
宋铄运
38810d8fd0
Support auto-prefixed style value as array (client/ssr) ( #5460 )
...
* support auto-prefixed style value as array (client/ssr)
* adjust test case
2017-04-17 20:49:10 +08:00
Evan You
5a617cc404
update ssr tests with local plugin build
2017-04-16 21:45:31 +08:00
Evan You
745fcd6d78
directMode -> runInNewContext
2017-04-16 21:45:31 +08:00
katashin
086ae4469b
allow an extended constructor as global mixin ( #5448 )
2017-04-16 15:38:13 +08:00
Evan You
5eeb9de5e7
ssr: repeat all test cases for directMode
2017-04-14 16:26:12 +08:00
Evan You
760a74480e
test warning component trace
2017-04-14 15:19:41 +08:00
Evan You
65cb5b4f78
adjust async chunk inference strategy
2017-04-14 13:48:42 +08:00
Evan You
9a5dd1bac8
fix test
2017-04-14 13:48:42 +08:00
Evan You
4e40666d53
wip
2017-04-14 13:48:42 +08:00
Evan You
682141fccc
support Symbol in props type validation ( close #5396 )
2017-04-10 20:36:59 +08:00
Evan You
4b6913cb46
handle errors in nextTick ( close #5277 )
2017-04-10 15:01:32 +08:00
Eduardo San Martin Morote
b997af0c01
Use genAssignmentCode in chehckbox model web compiler ( #5402 )
...
Fix #5398
2017-04-10 12:24:08 +08:00
Evan You
c82546c54b
fix keep-alive pruning active instance
2017-04-07 16:11:40 +08:00
Evan You
561bb467ba
test functional auto props with render fn
2017-04-07 16:11:09 +08:00
Evan You
931aaea8dc
expand .sync into extra listener
2017-04-06 13:51:44 +08:00
Evan You
c28b566f19
tests for functional component api improvements
2017-04-05 17:44:38 +08:00
Evan You
d2b7142cf5
tests for advanced async component features
2017-04-05 17:04:58 +08:00
Evan You
841fe6028a
test computed property conflict warnings
2017-04-05 14:38:46 +08:00
kingwl
2701fa1a64
add provide/inject on functional context ( #5204 )
2017-04-05 14:36:15 +08:00
kingwl
beee7d8143
support v-on passive modifier ( #5132 )
...
* support v-on passive modifier
* fix supportsPassive and run unit when the test browser supports
* add mutual exclusive warning
* Fix typo
* Fix typo
* Remove extra line - CS fix
2017-04-05 14:35:16 +08:00
Evan You
354c2f4922
fix keep-alive cache incorrectly pruned with transition mode="out-in" ( fix #5346 )
2017-04-03 15:32:23 +08:00
Evan You
bbec0763ab
remove problematic test cases (mutating in render fn)
2017-04-03 14:52:55 +08:00
Evan You
35aa5f0b2b
warn click.right ( close #5330 )
2017-04-03 14:43:23 +08:00
Evan You
a12d32a56d
fix style diffing on cached/slot elements ( fix #5318 )
2017-04-03 14:13:57 +08:00
AchillesJ
3c0265517b
handle errors thrown by directive hooks ( #5314 ) ( #5324 )
...
* handle errors thrown by directive hooks
* fix import
2017-04-03 11:37:54 +08:00
Razvan Stoenescu
255b627f39
fix #5321 don't throw error when node gets relocated ( #5322 )
...
* don't throw error when node gets relocated
* perf: Simplify if check in vdom/patch
2017-04-03 11:36:50 +08:00
Evan You
78b73686ea
expose preload/prefetch/scripts rendering on render context if no template is provided
2017-04-02 15:38:26 +08:00
Evan You
1e37633567
fix ssr xss ( fix #5351 )
2017-04-01 14:07:05 +08:00
Evan You
924435a0fa
ssr: only preload scripts by default
2017-03-31 17:42:56 +08:00
Evan You
80fa9bf3d6
fix hydration tests
2017-03-31 17:23:49 +08:00
Evan You
69e62f0a74
refactor: remove constants from config
2017-03-31 17:04:19 +08:00
Evan You
f4f4c126f2
ssr: handle link rel=preload for non-js assets too
2017-03-30 21:34:39 +08:00
Evan You
655c0f185b
tests for ssr bundleRenderer + template + clientManifest
2017-03-30 15:19:13 +08:00
Evan You
2ea80399da
restructure ssr tests: move template tests into separate file
2017-03-30 12:10:43 +08:00
Evan You
e0a7c1ac68
use data attribute for ssr marker
2017-03-29 17:53:46 +08:00
Kenneth Crawford
6fcfdbd83f
warn and handle missing get in computed ( fix #5265 ) ( #5267 )
2017-03-27 10:41:29 +08:00
Evan You
0bb529a275
also warn when listening to camelCase events in in-DOM templates
2017-03-23 17:28:59 +08:00
Piotr Kaminski
e47b1e5c4d
Allow named properties on reactive arrays. ( #5216 )
...
* Allow named properties on reactive arrays.
* Remove semicolons to comport with style guide.
* Pacify flow type checking.
Without the cast to any, flow complains that Array doesn't have an
__ob__ property. This appears to be an instance of this issue:
https://github.com/facebook/flow/issues/1330
2017-03-23 15:12:30 +08:00
Raymond Rutjes
23a058ed13
fix(inject): change warn message when trying to mutate an injected value ( #5243 )
2017-03-21 17:56:22 +05:30
kingwl
7dea9f1eb2
fix provide isn't reactive with a single array ( #5229 )
...
* fix provide isn't reactive with a single array - Fix #5223
* add warning when injections has been modified
2017-03-21 15:22:32 +08:00
kingwl
4c4a2ab65f
trigger event after reassigned state - Fix #5191 ( #5233 )
2017-03-21 15:20:57 +08:00
chengchao
e733e5cee8
fix SSR v-show render. ( #5224 )
...
* fix SSR v-show bug. v-show info needs to be merged from parent to child component
* improve variable name
* update test case
* update test case
2017-03-21 09:50:26 +08:00
Evan You
59a372229b
also catch error in data() ( close #5198 )
2017-03-17 11:46:37 +08:00
Hanks
29445153e3
[weex] Support unary and left open tags ( #5052 )
...
* [weex] Support unary and left open tags
* [weex] add test case for unary tag
* [compiler] move canBeLeftOpenTag to compiler option
2017-03-15 09:56:25 +08:00
Evan You
041683953a
improve camelCase prop warning message
2017-03-13 15:54:36 +08:00
AchillesJ
c6ab2e06d4
warn when template contains text outside root element ( #5164 )
...
* warn when template contains text outside root element
* fix warned flag
* make warn once a function
2017-03-13 15:42:46 +08:00
CodinCat
025e763124
Warn when not passing props in kebab-case ( #5161 )
...
* Warn when not passing props in kebab-case
* Move keyInLowerCase to dev only block
2017-03-13 15:41:26 +08:00
Evan You
a6e1ae0aac
v-bind object should have lower priority than explicit bindings ( fix #5150 )
2017-03-10 16:04:43 +08:00
Evan You
e7dfcc334d
fix custom directive arg fall through ( fix #5162 )
2017-03-10 15:55:53 +08:00
kingwl
4964b253d0
fix wrong order of generate modifier code ( #5147 )
...
* fix wrong order of generate modifier code
* add unit test of #5146
* Update events.js
2017-03-10 09:42:14 +08:00
AchillesJ
f9706dc288
fix v-on unit test ( #5144 )
2017-03-10 09:40:04 +08:00
Herrington Darkholme
8fca83d6b6
fix #5121 : parse content in textarea as plaintext ( #5143 )
...
* fix #5121 : parse content in textarea as plaintext
* update comment
2017-03-10 09:39:38 +08:00
Evan You
95cd2bd7fa
test v-model select with circular reference
2017-03-09 10:30:24 +08:00
Evan You
fc6f181052
fix weex model test
2017-03-08 16:00:35 +08:00
Evan You
c619b8d22c
remove inline value warnings for checkbox/radio/select also ( close #5112 )
2017-03-08 15:22:14 +08:00
kingwl
2e1e809467
fix prevent default unit test ( #5127 )
2017-03-08 13:47:39 +08:00
Evan You
303824ea9c
default slot should use fallback content when it contains all whitespace nodes ( fix #5097 )
2017-03-08 12:28:34 +08:00
Evan You
a524919d21
fix v-on inline function expression with modifiers ( fix #5120 )
2017-03-08 11:28:01 +08:00
YOU
e12d96a132
chore(parser.spec): fix an IE conditional test with a typo ( #5102 )
...
* chore(parser.spec): fix an IE conditional test with a typo
* check children.length is 0, instead of undefined
2017-03-08 10:17:08 +08:00
YOU
7010d0ffc5
chore(model-select.spec): add a check for value binding and fix some typo ( #5092 )
...
* chore: add a check for value binding
* chore: fix some typo
2017-03-08 10:14:55 +08:00
YOU
61930e0cc6
chore(test): fix some typos ( #5101 )
2017-03-06 09:50:49 +01:00
Nathan Shively-Sanders
2dc177ffb3
SFC parseComponent pads complete content with spaces ( #5059 )
...
* SFC parseComponent pads content with spaces
when `{ pad: true }` is provided. That is, all content is converted to
spaces. Previously, each line was truncated to "//". The new padding
method works better with character-oriented tools that calculate
positions by distance from the beginning of the file instead of by line
number.
* Made parseComponent's pad support "line" | "space"
Also still supports true for backward compatibility. True is the same as
"line".
2017-03-06 04:36:39 +08:00
YOU
eb58694f6f
chore(filter.spec): fix variable-- test case ( #5094 )
2017-03-05 09:40:49 +09:00
YOU
c683caff3a
chore(model-text.spec): add a missing check ( #5093 )
2017-03-05 09:40:35 +09:00
YOU
23a20ce09d
chore: \s match all whitespaces ( #5091 )
2017-03-05 09:40:14 +09:00
YOU
62e4f2b3d1
chore: fix some closetag mismatches ( #5088 )
2017-03-05 00:10:11 +09:00
YOU
40bc5923ae
chore: preserveWhitespace is true by default ( #5082 )
2017-03-04 03:40:18 +08:00
laoxiong
6a5b8043f2
imporve:check the delete oparator in event expression ( #5072 )
...
* improve:check the unary operators
* add:test
2017-03-03 12:08:59 +08:00
kazuya kawaguchi
0922b1d8aa
improve set/delete API ( #5050 )
2017-03-03 12:07:42 +08:00
Bojan
1b38a261c5
support multi event ( #5056 )
2017-03-03 11:51:57 +08:00
Evan You
16765db9a4
separate provide/inject resolve timing to allow data/props to rely on injections
2017-03-03 11:49:10 +08:00
Evan You
3294eba5a5
fix v-on .left .right compat with keyboard events ( fix #5046 )
2017-03-03 11:40:15 +08:00
Rahul Kadyan
2a8a777b11
Check property exists instead of truthy value ( #5044 )
...
* Check property exists instead of truthy value
* Provide some falsy values for inject tests
2017-03-01 11:01:24 -05:00
Evan You
10e724fa78
support string values for transition duration
2017-02-25 18:58:15 -05:00
Evan You
72a8c13122
reduce the amount of methods exposed on Vue.util
2017-02-25 18:09:48 -05:00
Evan You
6c3e6dcdce
support ES2015 Symbol in provide/inject
2017-02-25 18:09:48 -05:00
Evan You
e7a2510e63
Revert "[WIP] Support for ref callback ( #4807 )"
...
This reverts commit acec8db2c4
.
2017-02-24 18:17:04 -05:00
Evan You
f66028b9cd
introduce tip + make v-for component key warning a tip + refactor web compiler entry
2017-02-24 16:59:41 -05:00
Evan You
d304eee296
fix weex tests
2017-02-24 12:26:21 -05:00
Evan You
680494690f
give long transition test specific timeout value
2017-02-23 22:43:23 -05:00
Evan You
7fa8fa76fe
avoid duplicate lifecycle hooks during constructor resolution
2017-02-23 21:56:01 -05:00
Evan You
4cf49828c0
properly handle cosntructor options modification before global mixin application ( fix #4976 )
2017-02-23 18:11:18 -05:00
Evan You
8d25e8f574
make explicit transition duration tests more stable
2017-02-21 22:19:08 -05:00
Evan You
42492ffaf9
adjust explicit transition duration tests
2017-02-21 22:08:25 -05:00
Evan You
29f6902d19
coverage
2017-02-21 13:25:57 -05:00
Evan You
f916bcf371
feat: provide/inject ( close #4029 )
2017-02-20 16:58:24 -05:00
Evan You
1861ee9570
feat: renderError
2017-02-20 00:16:40 -05:00
Evan You
3c0cdb5535
improve error handling for lifecycle hooks
2017-02-19 23:21:29 -05:00
Hanks
3e523e6d57
[weex] convert kebab-case attribute name to camelCase in compiler ( #4964 )
...
* [weex] add test case for camelize props
* [weex] add test case for append props
* [weex] camelize component attribute name
* [weex] more reliable camelize functions
2017-02-18 19:36:00 -05:00
Chris Casola
3dc9338479
Warn when defining a method with same name as a prop ( #4950 )
...
* Warn when defining a method with same name as a prop
* update error message
2017-02-18 09:09:27 -05:00
Evan You
9ccffe72db
invoke activate/deactivate recursively + refactor ( close #4242 )
2017-02-17 18:56:09 -05:00
kingwl
0e2dafa74c
support mouse event modifier ( #4866 )
2017-02-16 16:04:04 -05:00
kingwl
8bb6c2bdaa
support $on multi event ( #4860 )
2017-02-15 18:39:53 -05:00
Guillaume Chau
0598ab0c64
#4371 - Explicit transition durations ( #4857 )
...
* Add transition explicit duration
* Fix tests for explicit transition duration
* Tweaks & default to milliseconds
* Better tests
* Better test for change value case
* Fix transition duration tests
* Better flow typing
* Fix transition test
* Revert "Fix transition test"
This reverts commit db75b3801ed11182119c78ebae87f40a62803714.
* Fix transition test
Revert "Fix transition test"
This reverts commit db75b3801ed11182119c78ebae87f40a62803714.
Fix transition test
* Better flow types
* Warn message
* Better prop handling
* Better flow typings
* adjustments
2017-02-15 18:37:09 -05:00
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
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
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
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
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
yantene
22f9560c92
add $props
2017-02-14 11:39:05 -05:00
Evan You
1c79592524
feat: implement template option for vue-server-renderer
2017-02-13 13:34:05 -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
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
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
5ae63d9d2f
warn v-for component lists without explicit keys
2017-01-24 16:04:14 -05:00
Evan You
e7083d09f1
fix scoped slots with dynamic slot names + force update for child components with scoped slots ( fix #4779 )
2017-01-24 11:04:02 -05:00
Evan You
6cbee6b286
refactor: extract universal v-model codegen code and update weex v-model codegen
2017-01-23 12:06:17 -05:00
Evan You
90a455c95c
fix replaced component root nodes losing parent scopeId ( fix #4774 )
2017-01-23 11:42:59 -05:00
Evan You
379695c912
complete coverage by testing v-model with extra listeners
2017-01-23 09:15:42 -05:00
Phan An
b4115f71b2
Remove warnings about inline value attributes for v-model ( closes #4733 ) ( #4770 )
2017-01-23 08:57:08 -05:00
Evan You
9d6c8ec268
feat: allow customization of component v-model prop/event via model option ( close #4515 )
2017-01-22 14:31:43 -05:00
Evan You
769c4dc203
ensure mutating extended constructor options does not affect parent ( fix #4767 )
2017-01-22 13:01:00 -05:00
Evan You
d99637b7f3
[weex] make tests pass
2017-01-20 16:10:11 -05:00
chengchao
e02fb1294d
preserve the only whitespace child ( #4760 )
2017-01-20 09:42:54 -05:00
Evan You
c9fbcaf591
remove unnecessary slice in SSR renderStyle (small perf gain)
2017-01-19 23:41:37 -05:00
dhcmrlchtdj
938fa4efcc
fix(sfc): component contains '<' only ( #4753 )
...
* fix(sfc): component contains '<' only
* update based on reviews
2017-01-19 22:23:20 -05:00
chengchao
9e38abca3e
Support select multiple binding ( fix #4755 ) ( #4756 )
...
* support select multiple binding
* improve select onchange handle
* update style
2017-01-19 13:36:19 -05:00
Hanks
466e849c85
Be able to delete array item in `Vue.delete` ( #4747 )
...
* Support to delete array item in Vue.delete
* add test case for Vue.delete array
* add blank line between test cases
2017-01-19 10:41:32 -05:00
Evan You
55c87aa2c5
fix multi-select test case bug detection in IE9
2017-01-16 18:39:06 -05:00
Evan You
c660917b29
improve event update algorithm (thanks to suggestions from @defcc)
2017-01-13 19:44:32 -05:00
Evan You
fe6a26bb9c
keep-alive: prune cache on include/exclude change, also avoid firing deactivate for already inactive components ( fix #4633 )
2017-01-13 18:54:35 -05:00
Evan You
ee6ad6af0e
fix v-on .once on multiple elements ( fix #4655 )
2017-01-13 12:14:23 -05:00
Evan You
1a1952ba81
handle single -> array & array -> single event handler patching ( fix #4650 )
2017-01-13 11:49:49 -05:00
Evan You
08bd81f8c0
fix #4530 with smaller change scope
2017-01-12 21:41:23 -05:00
Evan You
ab0a2259e0
Revert "also bind static special attrs as props ( fix #4530 )"
...
This reverts commit b3ebfef91d
.
2017-01-12 20:58:32 -05:00
Evan You
4e830ba3c3
Revert "Mark node with static props as static ( #4662 )"
...
This reverts commit 92657249dd
.
2017-01-12 20:57:30 -05:00
Evan You
bb426258a1
skip multiple select tests on Android 4.4 by detecting its bug
2017-01-12 19:36:07 -05:00
chengchao
92657249dd
Mark node with static props as static ( #4662 )
...
* fix special static attrs as dom prop
* refactor
2017-01-10 17:38:32 -05:00
chengchao
8be3aa4859
update test case ( #4653 )
2017-01-05 11:17:28 -05:00
chengchao
da955d1a4f
Use 'click' event for checkbox and radio ( fix #4620 ) ( #4639 )
...
* listen to click event for checkbox and radio.
* add test cases
2017-01-04 14:43:52 -05:00
Evan You
2ee516dfc8
ensure updated hook is called after children are updated as well ( fix #4599 )
2016-12-29 16:19:44 -05:00
Evan You
aa6f7b4cdb
add production tips info
2016-12-28 00:09:26 -05:00
Evan You
6b1755ae8c
adjust hydration strategy ( fix #4560 )
2016-12-27 17:27:20 -05:00
松鹤
610fe31592
add unit test for dynamic with props ( #4570 )
...
add unit test for dynamic component with props
2016-12-27 16:09:09 -05:00
Evan You
0cbc96101d
add new transition to-state classes
2016-12-27 15:03:48 -05:00
Evan You
02e2d99e27
Revert "ensure leave transitions and enter transitions are triggered in the same frame ( fix #4510 )"
...
This reverts commit 92ad0bd378
.
2016-12-27 14:11:45 -05:00
Evan You
0bb2d4e2b6
Revert "fix enter transition flicker regression ( fix #4576 )"
...
This reverts commit 89987e8e2c
.
2016-12-27 14:11:40 -05:00
Evan You
89987e8e2c
fix enter transition flicker regression ( fix #4576 )
2016-12-27 10:16:45 -05:00
chengchao
66bf120f7a
enforce to loop through children to get the correct normalize type ( #4572 )
2016-12-26 13:28:32 -05:00
Evan You
01f533db1a
avoid duplicate whitespace nodes caused by comments
2016-12-23 20:08:51 -05:00
Evan You
de220a635d
ignore text nodes between v-if conditions ( fix #4533 )
2016-12-22 23:40:10 -05:00
Evan You
b3ebfef91d
also bind static special attrs as props ( fix #4530 )
2016-12-22 22:32:57 -05:00
chengchao
71cc0a575b
Node maybe be removed v-html/v-text ( #4548 )
2016-12-22 21:17:40 -05:00
Evan You
0eb8cdc7f7
support v-bind object on scoped slots ( fix #4529 )
2016-12-21 23:27:21 -05:00
chengchao
bc140de48b
improve looseequal test case ( #4542 )
2016-12-21 22:35:52 -05:00
Evan You
92ad0bd378
ensure leave transitions and enter transitions are triggered in the same frame ( fix #4510 )
2016-12-21 22:03:50 -05:00
chengchao
56bfa1d291
update loose equal, check toString value for primitive type ( #4528 )
2016-12-21 16:22:54 -05:00
chengchao
be9210fc78
update dom prop for option.value ( fix #4494 ) ( #4505 )
...
* update dom prop for option.value
* refactor value update logic
2016-12-21 16:19:04 -05:00
Evan You
a977642fac
unbind v-show if no longer present during patch ( fix #4484 )
2016-12-21 16:08:34 -05:00
Eduardo San Martin Morote
974247fd8e
Add missing string handler in v-for ( #4499 )
...
Fix #4497
2016-12-16 11:50:53 -05:00
Evan You
bf8aac0053
fix weex test case
2016-12-14 12:29:30 -05:00
Evan You
7f260e1185
test case for lifecycle hook events
2016-12-14 12:27:38 -05:00
Evan You
f1c38674f2
use simple normalization for components, fix functional component multi-root node ( fix #4472 )
2016-12-14 12:22:54 -05:00
Evan You
6116bbf13a
fix svg foreignObject regression ( fix #4478 )
2016-12-14 11:24:53 -05:00
Evan You
4cca50725a
fix v-for on v-else branch regression ( fix #4464 )
2016-12-13 12:02:37 -05:00
chengchao
6918436bf8
Update normalize children (fix 4466) ( #4468 )
...
* omit boolean node
* add test case
* update boolean type
* update test case
* update test case
2016-12-13 11:52:25 -05:00
Evan You
850fb9fbcb
fix number update spec in ie9
2016-12-12 21:59:07 -05:00
Evan You
2afa2601e0
ensure local assets is prioritized regardless of naming convention ( fix #4434 )
2016-12-12 21:30:52 -05:00
chengchao
183bd43c3e
fix v-bind.prop parse ( fix #4432 ) ( #4435 )
...
* reset isProp value
* add test case
* update test case
* fix typo
2016-12-11 10:16:23 -05:00
Phan An
962b778e10
More informative warning message for comp name ( #4429 )
...
This commit adds a more informative warning message for invalid
component names. Also fixes a typo.
Closes #4428 .
2016-12-09 12:51:13 -05:00
Evan You
612d32105a
fix transition v-show display toggle timing for enter hooks ( fix #4418 )
2016-12-08 16:54:09 -05:00
Evan You
b141c6930d
fix filter parsing for divisions ( fix #4415 )
2016-12-08 13:15:33 -05:00
Evan You
8a7b02a159
avoid v-model with .trim/.number updating value when in focus ( fix #4392 )
2016-12-08 10:56:30 -05:00
Evan You
9cfd63a7d0
fix weex tests
2016-12-07 16:48:29 -05:00
Evan You
d2f7f1913e
fix codegen tests
2016-12-05 02:36:40 +01:00
Evan You
4b51ad0483
rename _h -> _c so that vue-template-es2015-compiler can use the new internal createElement without breaking backwards compatibility
2016-12-05 02:36:40 +01:00
Evan You
7c3c86f360
fix namespace hoisting
2016-12-05 02:36:40 +01:00
Evan You
79e1058799
wip: refactor compiler to skip normalization when possible
...
wip fix
wip fix
wip fix
2016-12-05 02:36:40 +01:00
Evan You
1def2d11a5
fix test for emptyVNode rename
2016-12-05 02:36:40 +01:00
Evan You
c4da6c7f9c
fix select multiple warning test case in IE
2016-12-01 18:32:46 -05:00
Evan You
61f7d0db87
actually complete test case for #4339
2016-11-30 23:32:43 -05:00
Evan You
db0bf76e51
fix keep-alive component inner transition ( fix #4339 )
2016-11-30 23:29:03 -05:00
Evan You
de7764a385
refactor patch createElm function, fix component hook merging
2016-11-30 14:21:01 -05:00
chengchao
dde0454e7e
fix static style parse error. ( #4349 )
2016-11-30 13:53:20 -05:00
Evan You
66bacb015c
make .once modifier work for component v-on as well
2016-11-30 12:31:56 -05:00
chengchao
6ea9a4db42
Support mutliple keys for keycode ( #4328 )
...
* support mutliple keys for keycode
* update flow type
* add test case
* update comment
* update flow type
* update comment
2016-11-30 12:16:10 -05:00
Changyu Geng
9215ff0295
Modifier once for v-on ( #4267 )
...
* Modifier once for v-on
* Reformat code
* Modifier once for v-on: using removeEventListener instead, bug fix of handler arguments passing, bug fix of modifier ordering problem
* Enhancement of event listener removal which allows rendering of capturing / once events for render function
* Reformat code
2016-11-30 12:15:18 -05:00
Evan You
e0ab042295
add focused test eslint rules for tests
2016-11-25 13:04:44 -05:00
Evan You
326aef4a6a
fix incorrect context for slot content created in functional components ( fix #4315 )
2016-11-25 12:41:42 -05:00
Evan You
1903df4991
rename ASTElement node.conditions -> node.ifConditions, avoid mutating it during codegen ( close #4317 )
2016-11-25 10:06:21 -05:00
Evan You
16e3dae245
fix eslint and coverage
2016-11-24 12:59:19 -05:00
Evan You
ae4db82c4b
fix unexpected warnings in tests
2016-11-24 12:53:13 -05:00
Evan You
a52a094bef
wip: adjust update error reporting
2016-11-24 12:17:41 -05:00
Evan You
b7946a4b22
wip: fix tests with expected warnings
2016-11-24 12:00:51 -05:00
Evan You
00c137fb27
test: check unexpected warnings
2016-11-24 11:50:20 -05:00
Evan You
3cfd84346f
fix style !important spec
2016-11-24 11:21:25 -05:00
Evan You
26b6374c3c
test for static style !important support
2016-11-24 10:15:05 -05:00
Evan You
6034c3e699
ensure methods are available in data() ( close #4302 )
2016-11-24 10:02:20 -05:00
Evan You
b2b9d1c272
fix property reference proxy check for hand-written render functions
2016-11-23 17:46:41 -05:00
(´・ω・`)
fce3f04a44
Ensure Vue instance's vnode and element is up to date ( #4299 )
...
* fix #4284 , recursively update vnode element
* fix #4284 , ensure vm's vnode is up to date
* add test for edge case
2016-11-23 13:18:52 -05:00
Evan You
9d0bc9768b
fix sfc parser special tag check for nested templates ( fix #4289 )
2016-11-23 13:15:09 -05:00
Evan You
fa61c0042c
fix proxy missing property detection when render function does not use `with`
2016-11-23 12:57:25 -05:00
Evan You
1a7b910feb
inherit child reference from old node when patching static nodes ( fix #4288 )
2016-11-23 09:42:52 -05:00
katashin
c57ba3e622
global mixin should not drop scope id ( fix #4266 ) ( #4274 )
2016-11-22 09:22:21 -05:00
Evan You
b45b974a5c
limit mouse event modifiers to mouse events
2016-11-21 17:34:03 -05:00
Evan You
cc4f4c5bda
v-elseif -> v-else-if
2016-11-21 15:25:08 -05:00
chengchao
af78bcf916
Support v-if multiple conditions ( #4271 )
...
* add if conditions
* update v-if conditional
* update test
* update test case
* add test case
* update if conditions
* update walkThroughConditionsBlocks
* update v-elseif
* update v-once with v-elseif test case
* update style with v-elseif
* update flow type
2016-11-21 15:24:54 -05:00
Evan You
a0d8603f90
support destructuring in v-for alias
2016-11-21 11:41:18 -05:00
Evan You
a11ba69094
remove fdescribe
2016-11-21 10:27:54 -05:00
Evan You
e5d7f32cf6
tests for keep-alive include/exclude
2016-11-21 09:51:06 -05:00
Evan You
38b8cfdf96
handle regex with pipes in filter parser
2016-11-20 21:42:25 -05:00
Evan You
03043b9081
support .camel modifier
2016-11-20 12:03:43 -05:00
Evan You
0458e2edb2
adjustment: scoped slots must use <template>
2016-11-20 12:03:43 -05:00
Evan You
0b78ea9696
properly handle inline function expressions in v-on
2016-11-20 12:03:43 -05:00
Evan You
303378f85b
support default scoped slot + function children as scoped slot
2016-11-20 12:03:43 -05:00
Evan You
745f8a9125
add scoped slots render function usage test
2016-11-20 12:03:43 -05:00
Evan You
7f36f99f6c
tests for scoped slots
2016-11-20 12:03:43 -05:00
Evan You
71ce60da9a
support filters in v-bind
2016-11-20 12:03:43 -05:00
Evan You
30f890cf3c
support es6 template strings in filter parser
2016-11-20 12:03:43 -05:00
Evan You
2dc2d062b1
adjust build
2016-11-20 12:03:43 -05:00
Evan You
f242e119fa
fix nextTick Promise implementation for polyfills
2016-11-20 12:03:24 -05:00
Evan You
6c7bc69328
sfc parser: treat all custom blocks as special tags
2016-11-20 11:59:55 -05:00
Eduardo San Martin Morote
ff7f231002
Support custom blocks in SFC parser ( #4157 )
...
This allow to use other block appart from `template`, `script` or
`style` in the SFC parser. This allows such things as writing tests or
examples directly into the SFC file. Those are meant to be handled by
programs others than vue-loader like vue-play.
2016-11-20 11:37:42 -05:00
Chris Fritz
8bf26536d3
Add promise support to nextTick ( #3967 )
...
* add promise support to nextTick
* remove test for non-existent nextTick console error
* Update flow annotation for callback
* Revert flow annotation for nextTick callback
2016-11-20 09:50:38 -05:00
Changyu Geng
048014ac0d
Modifiers key modifier for directive on of Vue.js 2.0 ( #4034 )
...
* Modifiers key modifier for directive on
* meta modifier key modifier for directive on
* Code format
2016-11-20 09:46:31 -05:00
chengchao
c1b84f87fb
fix markStaticRoots with v-else ( #4256 )
2016-11-20 09:43:40 -05:00
Evan You
c994146372
increase transition test duration buffer on saucelabs
2016-11-19 22:08:06 -05:00
Evan You
b60cd83466
keep-alive re-activated component should get updated props ( fix #4237 )
2016-11-18 20:38:33 -05:00
Evan You
acfe1ad4a2
warn using reserved attrs as prop ( close #4241 )
2016-11-18 12:13:12 -05:00
Evan You
c1bf20acb6
do not trigger change on NaN->NaN set ( fix #4236 )
2016-11-18 11:47:02 -05:00
Evan You
9a742cb423
only treat binding as domProps on specific elements ( fix #4233 )
2016-11-18 11:36:05 -05:00
Evan You
f4df893828
fix weex tests for optimizer adjustments
2016-11-17 18:15:10 -05:00
Evan You
9a659593c4
adjust optimizer strategy and avoid marking simple elements as static root
2016-11-17 18:08:23 -05:00
chengchao
8f7c49c9ba
Remove old static style when applying style update ( fix #4227 ) ( #4235 )
...
* both static style and stylebinding should be removed
* update test case
* update test case
2016-11-17 11:25:54 -05:00
Dexter Miguel
f80231773e
destroyed elements pass their styles onto others that are similar ( #4232 )
2016-11-17 09:16:42 -05:00
Evan You
eb92723df5
avoid merging text nodes when the node is a cloned slot node ( fix #4209 )
2016-11-15 23:07:50 -05:00
Evan You
24604e70ea
bump dependencies
2016-11-15 16:45:12 -05:00
Evan You
438b51793f
fix style merging assertion in IE
2016-11-15 15:53:26 -05:00
Evan You
3e8ac270a8
fix .trim modifier when v-model is used on custom component ( fix #4204 )
2016-11-15 11:05:08 -05:00
chengchao
77497931e0
fix v-once inside v-for and v-once with v-if ( #4200 )
2016-11-14 16:20:21 -05:00
Evan You
cccc277dd9
fix eslint
2016-11-13 14:07:34 -05:00
Evan You
4e38b54274
fix weex tests for component slot static check change
2016-11-13 14:04:16 -05:00
chengchao
46b3bcd707
fix object dot notation bug ( fix #4185 ) ( #4188 )
...
* fix object dot notation bug
* add test case
2016-11-13 13:15:08 -05:00
Evan You
9931b715cd
avoid marking slot content as static.
2016-11-12 22:16:45 -05:00
勾三股四
4f84aefe43
support v-model in weex ( #4178 )
...
* [wip] supported v-model in Weex
* fixed v-model in weex
* added test cases for v-model in weex
* used strToRegExp for all test cases in weex
* fixed eslint
* fixed parseModel test case
2016-11-12 11:33:51 -05:00
Evan You
cb4854a50e
[weex] enable extended constructors to use mixins
2016-11-09 21:19:01 -05:00
Evan You
1bcc571739
Revert "fix #4041 , warn overriding Vue's internal methods ( #4111 )"
...
This reverts commit 4078ce9c58
.
2016-11-09 16:06:59 -05:00
Evan You
2f63cc8a14
fix eslint
2016-11-07 17:31:25 -05:00
Evan You
cb253d7405
wip: weex framework integration
2016-11-07 16:26:06 -05:00
chengchao
e960cd104e
enable style merge behavior between parent-child components ( fix #3997 ) ( #4138 )
...
* merge style between components
* update test case
* update style compiler
* add paren to style binding code
* update background property parsing
* introduce interpolation warning and refactor var to const
2016-11-07 16:19:48 -05:00
chengchao
33cf1134ed
Update ssr class render ( fix #4143 ) ( #4146 )
...
* fix ssr class render
* update test case
2016-11-07 11:33:37 -05:00
Evan You
c67a710b3c
avoid triggering watcher on unchanged default props ( fix #4090 ) (26 seconds ago)
2016-11-04 22:49:30 -04:00
Evan You
5d36e8bc1b
fix IE conditional comments ( fix #4125 )
2016-11-04 19:48:11 -04:00
Evan You
d0afcd3cf9
fix domProps unset for v-html ( fix #4107 )
2016-11-04 16:22:49 -04:00
Evan You
e5f23d9fa0
fix component attrs/domProps merging in SSR
2016-11-04 12:53:15 -04:00
(´・ω・`)
240df147f1
Generate style on custom component in SSR ( fix #4055 ) ( #4076 )
...
* fix #4055 , generate style on custom component
* add test for custom component style
* add synthetic data for module processing
2016-11-04 09:38:52 -04:00
jingsam
c23c5c5d70
keep consistency in dev and prod env ( #4093 )
...
* keep consistency in dev and prod env
* Update extend.js
* delete name=null
* fixup
* Update name.spec.js
2016-11-04 09:35:10 -04:00
(´・ω・`)
4078ce9c58
fix #4041 , warn overriding Vue's internal methods ( #4111 )
...
* fix #4041 , warn overriding Vue's internal methods
* prefer concise warning message
2016-11-04 07:44:47 -04:00
Evan You
bc455352a3
test sfc parser <style module>
2016-11-03 16:25:53 -04:00
Evan You
e2a361a052
forgivingly handle < inside template plain text ( fix #4012 )
2016-11-03 00:53:49 -04:00
Evan You
ec824be88e
fix v-once inside v-for ( fix #3964 )
2016-11-02 22:34:36 -04:00
Evan You
09f9783943
fix global mixin + export constructor in vue-loader (fix vue-loader#433)
2016-11-02 18:51:09 -04:00
Evan You
cb1bb75b58
fix global mixin props ( fix #3957 )
2016-11-02 15:50:57 -04:00
Evan You
4b8eb75c7a
fix coverage
2016-11-01 15:53:36 -04:00
chengchao
0cd1489e68
.number modifier should work with select, radio, checkbox ( fix #4018 ) ( #4022 )
...
* support number modifier in select, radio, checkbox
* add test case
* add ASTModifier type to specify modifiers type
* fix typo
* keep code consistent
2016-11-01 11:50:22 -04:00
Chris Fritz
84918577d2
fix problematic use of 'deprecated' in warnings ( #4043 )
2016-11-01 11:17:25 -04:00
Herrington Darkholme
2ac581bb7f
SSR: eliminate closure in render.js implementation
...
eliminate closure
fix multiple render instances and memory leakage
fix eslint
magically fix flow typing
add multiple render stream test
2016-11-01 11:14:46 -04:00
Evan You
7dc38dea27
fix SFC parsing pug templates that contains "<" ( fix #3973 )
2016-10-22 16:27:35 +08:00
defcc
3105661662
v-model binding with array. (fix #3958,#3979) ( #3988 )
...
* fix v-model with array binding
* add mutli selects test case
* add test case. v-bind with array
* add comments
* code refactor
2016-10-22 14:57:32 +08:00
peisong
9c91190b40
Fix typos. ( #3956 )
2016-10-19 17:21:22 +02:00
Chris Fritz
4f5a47d750
fix root v-else not rendering in prod and switched examples to minified vue for better prod coverage ( #3943 )
...
* fix root v-else not rendering in production and switched examples to minified vue for better prod coverage
* add dev build comment to examples
* convert tabs to spaces in todomvc example for consistency
2016-10-14 09:27:54 -04:00
Evan You
3f8fa43819
fix duplicate attribute test case in IE
2016-10-13 05:19:51 -04:00
Evan You
d362d64633
update entities encoding/decoding ( fix #3899 )
2016-10-13 05:05:35 -04:00
defcc
a9417e4e4f
select change event fix ( #3922 )
...
* if select binding not changed, then needRest should be set to false, and no change event should be emitted
* update code style
2016-10-12 13:26:42 -04:00
Evan You
864ef21a7d
fix deeply nested keep-alive components not being destroyed ( fix #3882 )
2016-10-11 23:58:53 -04:00
Evan You
7570a3c566
test for directive refactor ( fix #3848 )
2016-10-11 20:49:10 -04:00
Evan You
1fa3844dc2
refactor directive update implementation
2016-10-11 20:31:13 -04:00
Evan You
e9bf5d1cd9
add warning for using v-model on v-for alias
2016-10-11 18:18:11 -04:00
Evan You
32383e5fa3
remove name option warning during instantiation
2016-10-11 17:58:02 -04:00
Evan You
1bb7cba0e0
improve event warning with component information ( close #3831 )
2016-10-11 17:32:35 -04:00
defcc
8bb1e58df0
fix multiple select render ( #3908 )
...
* fix multiple select render. The mutliple attribute of select dosen't apply at first, so the mutli selected option dosen't work when patching
* keep the vnode.data the same as before
2016-10-11 12:53:30 -04:00
Evan You
cc4c066989
fix coverage
2016-10-10 23:25:24 -04:00
Evan You
be6e050b89
fix `mounted` not called for manually mounted instance with parent ( fix #3898 )
2016-10-10 23:03:21 -04:00
Evan You
3446d1485d
support functional components as named slot ( fix #3872 )
2016-10-10 22:41:14 -04:00
Evan You
74e4e11b44
fix v-on handler with whitespaces ( fix #3893 )
2016-10-10 19:30:19 -04:00
Chris Fritz
de199f9bbd
allow 2 root nodes with v-if and v-else ( #3887 )
...
* allow 2 root nodes with v-if and v-else
* fix compiler-options test with less specific text
2016-10-09 16:33:23 -04:00
Evan You
f35f7e35cd
add v-model dynamic type warning
2016-10-08 14:15:05 -04:00
Vincent Klaiber
463c9c9e08
Switch to https ( #3864 )
...
Replaced all http vuejs.org links with https instead.
2016-10-07 17:39:51 -04:00
Eduardo San Martin Morote
c835ce57ff
Allow text nodes on static templates in components ( #3826 )
...
Fix #3824
2016-10-05 15:13:14 -04:00
Evan You
8ef603b7c3
test <template> key warning, fix coverage
2016-09-30 14:19:16 -04:00
Evan You
99ea0f8229
adjust named slot resolve check ( fix #3819 )
2016-09-30 14:19:16 -04:00
Evan You
b8369e802b
fix test template typo
2016-09-30 14:19:16 -04:00
Evan You
47ee6abfc6
remove codegen v-for truthiness check ( fix #3817 )
2016-09-29 22:05:39 -04:00
Evan You
6d4bdb5ff1
fix style binding for falsy numbers ( fix #3816 )
2016-09-29 17:51:00 -04:00
Dan Reeves
e0698b2ebd
warn user calling Vue() without new ( #3793 )
2016-09-28 15:33:29 -04:00
Evan You
310f5a2f5f
tweak v-model type=file warning phrasing
2016-09-27 15:51:46 -04:00
Eduardo San Martin Morote
b8095bf7b8
Warn when using v-model with input[type=file] ( #3791 )
2016-09-27 15:47:18 -04:00
Evan You
c791fc7826
fix unit tests in IE9
2016-09-23 18:16:43 -04:00
松鹤
575e810670
Optimization unit testing [vdom/patch/children] ( #3733 )
...
Optimization unit testing for vdom/patch/children.spec.js
2016-09-23 11:01:24 -04:00
Evan You
2b1a0b985c
extend commits e2e wait period because GitHub is slow
2016-09-19 12:35:59 -04:00
Evan You
56960b5fbc
support object looseEqual in v-model ( fix #3673 )
2016-09-14 11:35:30 -04:00
Evan You
d6a7568891
improve v-bind implementation and make it work on components ( fix #3670 )
2016-09-14 10:14:45 -04:00
Evan You
45ff6218c1
handle multiline atribute value parsing in IE ( fix #3663 )
2016-09-13 08:43:25 -04:00
Evan You
d0c13c7e66
test undefined method warning
2016-09-13 08:42:53 -04:00
Evan You
673dec6040
fix duplicate slot warning spelling
2016-09-10 10:41:12 +02:00
Ivan Agafonov
b47d773c58
support short prop declaration as prop: true ( #3643 )
2016-09-10 07:12:06 +02:00
Evan You
1c4ca4bc08
fix lint
2016-09-08 13:17:30 +02:00
Evan You
7a2c986722
relax SSR hydration match check to allow client populating empty parent nodes
2016-09-08 13:12:29 +02:00
Evan You
4afccc8eec
proper slot duplication warning ( fix #3595 )
2016-09-08 11:47:22 +02:00
Evan You
a00170cbb9
remove unnecessary appear check in v-show ( fix #3559 )
2016-08-30 10:45:38 -04:00
Evan You
ada90e5e37
revert directive bind invocation timing, add inserted hook for directives
2016-08-30 10:36:58 -04:00
Evan You
f4a505c67c
support returning promise for async components ( close #3527 )
2016-08-28 14:33:38 -04:00
Evan You
638d1820c2
bump dev deps
2016-08-28 11:12:53 -04:00
Evan You
4d640ce4d9
tweak v-if to avoid unnecessary node replacement
2016-08-27 17:01:57 -04:00
Evan You
014d2f8599
fix vdom patch edge case for static nodes being reused and as insertion reference node ( fix #3533 )
2016-08-27 16:29:07 -04:00
Evan You
a152fe0e98
only gen checkbox/radio model on input tags ( fix #3516 )
2016-08-26 18:28:58 -04:00
Evan You
e6c5f21f86
fix event initialization on reused slot nodes ( fix #3518 )
2016-08-26 18:23:18 -04:00
Evan You
eef040ebd0
vdom: teardown stale directives on patch ( fix #3491 )
2016-08-23 12:01:21 +02:00
Brandon Surowiec
0f8ad06b2c
Fix Spelling ( #3496 )
...
* Fix Spelling
* Fix other instances.
2016-08-22 23:03:00 +02:00
Evan You
d2df58e547
move v-show marker to runtime so that render functions work as expected ( fix #3488 )
2016-08-20 11:14:41 -04:00
Evan You
13ce3a2559
fix v-on chained keyCodes ( fix #3478 )
2016-08-18 12:17:17 -04:00
Evan You
6bdb577d4a
fix name warning when instantiating extended components ( fix #3472 )
2016-08-18 11:17:45 -04:00
Evan You
e62165ca89
ensure v-model to have higher priority than v-on events ( fix #3468 )
2016-08-17 16:40:45 -04:00
Evan You
1e74675053
expose Vue.set/delete on instances as vm.$set/$delete
2016-08-17 13:53:50 -04:00
Evan You
ce798c6f68
fix ref on empty component root ( fix #3455 )
2016-08-16 10:27:38 -04:00
Evan You
ac762c35ee
fix v-if component root test in Firefox
2016-08-15 23:29:49 -04:00
Evan You
68be112652
Revert "support transition on component with v-show in root node ( fix #3431 )"
...
This reverts commit aab560e0d9
.
2016-08-15 22:58:18 -04:00
Evan You
e08d6b9193
fix unnecessary child watcher calls on parent re-render ( fix #3453 )
2016-08-15 17:47:01 -04:00
Evan You
7b4a5a14e3
add warning for incorrect <slot> usage (ref #3447 )
2016-08-15 12:35:11 -04:00
Evan You
efb603570e
fix patch modules error on empty component root
2016-08-15 00:28:48 -04:00
Evan You
397e64ad89
include templates in ref spec
2016-08-14 23:46:52 -04:00
Evan You
aab560e0d9
support transition on component with v-show in root node ( fix #3431 )
2016-08-14 22:15:33 -04:00
Evan You
854ccce5d5
prevent out-in transition to enter early when parent re-renders ( fix #3440 )
2016-08-14 18:49:48 -04:00
Evan You
6a156020ec
warn missing event handlers (ref #3430 )
2016-08-14 18:29:46 -04:00
Evan You
9d43bff27e
fix component in slot lifecycle ( fix #3437 )
2016-08-12 14:12:57 -05:00
Evan You
63fe7fc76d
fix spec fit
2016-08-12 13:51:44 -05:00
Evan You
299f529498
fix transition enter hook for v-show ( fix #3433 )
2016-08-12 13:46:03 -05:00
Evan You
86bf3da18e
fix flow error for #3393
2016-08-11 08:53:31 -05:00
Evan You
837b0b224b
Merge branch 'bugfix/v-show-not-respecting-orig-display' of git://github.com/chrisvfritz/vue into show-display
2016-08-11 08:48:44 -05:00
Evan You
0e75fb93df
use component name for SSR caching (also allow full externalization)
2016-08-10 23:35:40 -05:00
Evan You
cdc0bc9cd4
improve keep-alive: use component-based API
2016-08-09 16:32:15 -04:00
Evan You
18386c4cf4
fix static nodes optimization inside v-for ( fix #3406 )
2016-08-08 19:03:00 -04:00
Chris Fritz
a4ac2eb687
made v-show respect display values in style attributes
2016-08-08 17:56:38 -04:00
Evan You
6e1597cf0b
fix quote decoding for templates retrieved from innerHTML ( fix #3403 )
2016-08-07 22:33:21 -04:00
Evan You
21908b7267
ensure children is only re-resolved on parent update ( fix #3400 )
2016-08-07 01:41:54 -04:00
Evan You
2d58d0e3d7
fix all unit tests
2016-08-05 13:23:43 -04:00
Evan You
fe801b16e4
wip: fix $parent after children change
2016-08-05 12:43:35 -04:00
Evan You
b5b963f51d
wip: refactor children resolution (remove thunk mechanism)
2016-08-05 12:10:13 -04:00
Evan You
22894810df
fix ssr v-bind test
2016-08-05 03:22:31 -04:00
Evan You
59b2a0eeb3
support class/style in v-bind object
2016-08-05 02:59:33 -04:00
Evan You
351aef3cb4
use comment node as empty placeholder (fix <transition> SSR hydration)
2016-08-05 01:52:09 -04:00
Evan You
5ed0c16b68
better hydration fail warnings
2016-08-04 13:50:16 -04:00
Evan You
b283f53fd0
support :style bind to text in SSR too
2016-08-02 22:05:33 -04:00
Evan You
69ba01e7d4
support :style binding to strings ( fix #3379 )
2016-08-02 21:17:22 -04:00
Evan You
42c1950dd0
properly merge classes between multiple nested components sharing the same element ( fix #3365 )
2016-08-01 15:12:35 -04:00
Chris Fritz
d9d4e7f196
prevent nested thunk children from failing ( #3367 )
2016-08-01 13:49:02 -04:00
Evan You
e1ab28c8c6
improve coverage
2016-07-31 19:30:20 -04:00
Evan You
7f429e9c91
discard vnode children if it has innerHTML or textContent as a prop ( fix #3360 )
2016-07-31 19:25:41 -04:00
Evan You
f31366c60e
add tests for some :class and v-bind edge cases
2016-07-31 18:28:08 -04:00
Evan You
6e471ea2ee
fix v-show transition on child component root ( fix #3354 )
2016-07-31 17:31:02 -04:00
Evan You
d7ae39044d
fix class updates if new vnode doesnt contain any class data
2016-07-29 10:46:09 -04:00
Evan You
35ee5b105e
remove staticAttrs
2016-07-29 10:45:43 -04:00
Chris Fritz
3e06c575cb
Allow 2 root nodes with v-if and v-else ( #3329 )
...
* allow 2 root nodes with v-if and v-else
* apply root constraints to 2nd root element with v-else
2016-07-28 23:40:18 -04:00
Evan You
7b3cb27d8a
update nightwatch-helpers
2016-07-28 20:30:38 -04:00
Evan You
04e2b53cd7
properly perserve whitespace in <pre> ( fix #3341 )
2016-07-28 18:50:05 -04:00
Evan You
40e37f17d2
remove transition text node warn spec
2016-07-28 18:50:05 -04:00
katashin
bbc07afd15
allow to initialize value attribute to 0 ( #3334 )
2016-07-27 15:16:15 -04:00
Evan You
998ea85b3e
support explicit transition type
2016-07-26 23:26:05 -04:00
Evan You
bee95f8c08
Revert "remove parser pre/post transforms (not used)"
...
This reverts commit 2e7a792308
.
2016-07-26 22:23:54 -04:00
Evan You
74f8b98509
handle static vnodes properly during patch ( fix #3325 )
2016-07-26 15:49:40 -04:00
Evan You
e84a1a43be
fix attribute decode reggression ( fix #3327 )
2016-07-26 14:38:46 -04:00
Evan You
097889fdac
proper fix for attribute decode in PhantomJS
2016-07-25 21:29:05 -04:00
Evan You
d83088ab07
extract nightwatch-helpers into npm package
2016-07-25 01:40:06 -04:00
Evan You
2c6930adfc
further improve scheduler
2016-07-24 21:46:25 -04:00
Evan You
609054ef10
remove bind.prop shorthand
2016-07-21 13:44:06 -04:00
Evan You
23a22cbb44
support slots in functional components
2016-07-21 02:07:51 -04:00
Evan You
154e17abae
support binding DOM properties with .prop modifier and :: shorthand
2016-07-21 01:53:30 -04:00
Evan You
472b8975ed
adjust scheduler: call user watchers before component updates
2016-07-20 18:43:20 -04:00
Evan You
ea9c6c37c3
support v-on .native modifier on components
2016-07-19 18:56:10 -04:00
Evan You
2e7a792308
remove parser pre/post transforms (not used)
2016-07-19 18:43:33 -04:00
Evan You
69ecdcb05e
rename vnode.data.props -> domProps
2016-07-19 17:52:10 -04:00
Evan You
593cf3929e
fix move test case
2016-07-17 01:40:31 -04:00
Evan You
6f7ec7f04d
add computed property ssr test case
2016-07-15 19:19:55 -04:00
Evan You
2732fec59e
tweak error handling
2016-07-15 17:22:53 -04:00
Evan You
d867b9e2e4
test observed vnode data warning
2016-07-14 19:31:34 -04:00
Evan You
6f4601ceeb
test transition-group
2016-07-14 17:51:25 -04:00
Evan You
210a3a22b0
test in-out early cancel with keep-alive
2016-07-14 12:26:31 -04:00
Evan You
ccf3a61532
improve transition coverage
2016-07-14 12:20:18 -04:00
Evan You
70e531a3f3
test removing stale leaving elements
2016-07-14 11:06:22 -04:00
Evan You
cf133365d5
test transition HOC
2016-07-14 10:59:10 -04:00
Evan You
05ef502c8a
coverage for nested SVG vnode namespace
2016-07-14 10:53:12 -04:00
Evan You
45a489ba81
support move transitions in transition-group
2016-07-13 21:49:09 -04:00
Evan You
6672481b58
fix transition test in phantomjs
2016-07-13 14:14:24 -04:00
Evan You
e94ad1437e
remove vm argument in transition hooks
2016-07-13 13:51:45 -04:00
Evan You
ef311931a3
all tests pass for new transition API
2016-07-13 13:33:12 -04:00
Evan You
bb3fe8e68b
update transition mode specs
2016-07-13 13:13:57 -04:00
Evan You
39bcd60a33
remove no longer necessary specs
2016-07-13 12:21:47 -04:00
Evan You
fcb1e38b13
update transition tests for new syntax
2016-07-13 11:39:03 -04:00
Evan You
afc414976c
fix svg component children
2016-07-13 11:38:50 -04:00
Evan You
d0482a0fae
should not keep slot name when passed further down ( fix #3259 )
2016-07-12 16:32:04 -04:00
Evan You
8401852484
ensure child components insert hook invoke timing
2016-07-12 02:59:05 -04:00
Evan You
e3f624e42e
add assertion for enter hook timing
2016-07-10 11:14:22 -04:00
Evan You
0764ae252e
ensure unique key for elements with transition ( fix #3247 )
2016-07-08 18:09:32 -04:00
Evan You
a06a2d00e3
tune scheduler to ensure update order for late-pushed watchers
2016-07-08 13:20:53 -04:00
Evan You
d164cf537a
directive: always call update + ensure modifiers
2016-07-07 17:36:48 -04:00
Evan You
2c4fe07704
skip unknown element test on Android 4.2
2016-07-07 17:00:28 -04:00
Evan You
42889ff87a
fix global directive function shorthand ( fix #3243 )
2016-07-07 16:09:26 -04:00
Evan You
dffeb1d1c2
fix HOC root node replace updates
2016-07-07 15:30:42 -04:00
Evan You
751b0c87a4
fix watcher tests
2016-07-07 13:37:58 -04:00
Evan You
9b94176530
fix functional test
2016-07-07 13:32:34 -04:00
Evan You
03621ee245
adjust render fn + fix props validation for functional components
2016-07-06 19:07:59 -04:00
Evan You
5c6c8c7ed0
include compiler in vue-server-renderer
2016-07-05 14:19:13 -04:00
Evan You
93342d7b96
fix coverage
2016-07-03 15:03:48 -04:00
Evan You
579ff4ddbc
fix nested svg namespaces
2016-07-03 14:51:14 -04:00
Evan You
bf9c46f435
server.getCacheKey -> serverCacheKey
2016-07-03 13:17:57 -04:00