Commit Graph

1093 Commits

Author SHA1 Message Date
TB e396eb3445 fix(ref): allow ref key to be zero (#7676)
prevents missing elements when :ref value is "0"

fix #7669
2018-02-21 10:21:51 -05:00
Guillaume Chau 5191f13472 fix(transition): should not add transition class when cancelled (#7391)
fix #7390
2018-01-05 17:45:59 -05:00
AchillesJ 05299610ea fix(vdom): svg inside foreignObject should be rendered with correct namespace (fix #7330) (#7350)
* add failed test case

* fix failed test case

* fix(vdom): svg inside foreignObject should be rendered with correct namespace

* adjust comments
2018-01-05 17:44:44 -05:00
Hanks ff8fcd2e2b feat(weex): support parse object literal in binding attrs and styles (#7291) 2017-12-26 21:33:37 -05:00
Evan You f8cb3a2393 chore: fix lint 2017-12-25 11:05:54 -05:00
Huo Chunyang 44420b7bbc chore: correct the eslint script statement in package.json and correct the format. (#7308) 2017-12-24 12:28:28 -05:00
Evan You 144a4dd860 build: rename build/ to scripts/ 2017-12-21 20:17:47 -05:00
Evan You 41838c8e86 feat: support v-model dynamic type binding for v-bind="object"
close #7296
2017-12-21 11:06:43 -05:00
Evan You d8b08387a2 fix: clean up custom events when patched component no longer have events
fix #7294
2017-12-21 10:36:03 -05:00
Evan You 956756b1be refactor: use more efficient on-demand clone to handle reused node edge cases
removes unnecessary slot/static node clones, fix #7292
2017-12-20 19:44:24 -05:00
Evan You 8335217cb4 fix(core): handle edge cases for functional component returning arrays
fix #7282
2017-12-20 11:02:56 -05:00
cinwell.li e055df82fe fix(weex): default value for editor, fix #7165 (#7286)
* fix(weex): default value for editor, fix #7165

/cc Hanks10100

* fix(weex): recycle-list test
2017-12-20 09:05:21 -05:00
Evan You 7cc0b559e9 feat(weex): update new syntax for <recycle-list> 2017-12-19 16:19:07 -05:00
Hanks 472a2896bd feat(weex): adjust framework entry APIs and add flow annotations (#7272)
1. Remove the "init", "reset", "getRoot" and "receiveTasks" APIs, which
are already implemented in the new version of "weex-js-runtime".
2. Use "createInstanceContext" instead of "createInstance". Vue only
needs to prepare the instance context and no longer execute the js
code. The js code will be executed by native.
3. Add flow type declarations and annotations.
2017-12-19 15:47:53 -05:00
Evan You aac76349e7 Revert "feat: auto cache inline prop literals to avoid child re-render"
This reverts commit 996eb00a0a.
2017-12-19 14:03:39 -05:00
Herrington Darkholme bacb911f7d fix(warning): allow symbol as vdom key (#7271) 2017-12-19 09:35:50 -05:00
Evan You 01c07503bf revert: revert prop object validation
close #7279
2017-12-19 09:29:48 -05:00
Evan You 1dd6b6f046 refactor: adjust weex branch coverage and build for merging into dev 2017-12-18 21:51:38 -05:00
Hanks 661bfe552e feat(weex): partially support lifecycles of virtual component (#7242)
Update the `_init` and `_update` logic to partially support lifecycles.
Add test cases for testing the lifecycle hooks and data update.
2017-12-18 20:58:53 -05:00
Hanks d544d052a9 fix(weex): append as tree by default for recycle-list and cell-slot (#7216) 2017-12-18 20:57:43 -05:00
Hanks b8d33ecd9a feat(weex): WIP implement virtual component (#7165) 2017-12-18 20:57:43 -05:00
Evan You 70b97ac2f4 feat(weex): recycle-list support stateful child component 2017-12-18 20:57:19 -05:00
Evan You 452a65c98a feat(weex): pass stateless component test case 2017-12-18 20:57:19 -05:00
Evan You c1743a9dd7 test(weex): use done.fail for reporting errors 2017-12-18 20:57:18 -05:00
Hanks 46c8016562 test(weex): add more test cases for recycle-list (#7104) 2017-12-18 20:56:41 -05:00
Hanks 0bf0cbef76 revert(weex): remove the "receiveTasks" api and support component hook (#7053) 2017-12-18 20:56:41 -05:00
Hanks 0c11aa8add feat(weex): generate "@render" function for weex recycle-list (#6987)
* feat($compiler): support to generate @render function for weex recycle-list

Compile the template twice with different options for weex platform if
the “recyclable” flag is passed. Generate both normal render function
and “@render” function for recycle-list.

Adjust function names and arguments in recycle-list compiler.

* test(weex): add test cases for <recycle-list>
2017-12-18 20:55:58 -05:00
Evan You 996eb00a0a feat: auto cache inline prop literals to avoid child re-render 2017-12-18 12:55:02 -05:00
Alexander Sokolov d02bb37efb feat: warn misspelled keys on prop validation object (#7198) 2017-12-14 11:39:32 -05:00
Evan You 14f7015578 test: fix ssr test due to webpack asset emit order change 2017-12-12 19:16:17 -05:00
Evan You 4e00688e4a build: update dev dependencies 2017-12-12 18:42:44 -05:00
Evan You 8936b8d9c1 fix(ssr): properly handle errors in async component
fix #6778
2017-12-12 18:12:02 -05:00
Evan You 86e4d7566e test: add test case for #7223 2017-12-12 17:07:28 -05:00
laoxiong 023f171f58 fix(core): warn duplicate keys in all cases (#7200)
close #7199
2017-12-12 16:38:32 -05:00
Guillaume Chau bd4819e6cf fix: data() should be called with vm as first argument in mixins
fix #7191
2017-12-06 09:11:49 -05:00
Evan You 904d9c9a81 test: fix weex test case 2017-12-05 11:20:33 -05:00
Evan You 5875c7c490 fix: revert shared static tree cache to avoid memory leak
revert f0a66c5
fix #7184
2017-12-05 11:17:36 -05:00
Evan You f5ce6b50cf fix(v-for): support array and nested destructuring in v-for 2017-11-27 16:54:15 -05:00
Evan You 0f7c443dca fix: block unnecessary input event on textarea placeholder in IE
close #7138
2017-11-27 12:13:37 -05:00
Evan You 8b43c81ed4 ci: bump transition unit test duration 2017-11-24 10:16:07 -05:00
Evan You aa8262540a fix: fix v-for iterator parsing destructuring + parens without index 2017-11-24 10:09:04 -05:00
Evan You dd21eacc33 fix: fix async component resolving in sibling mounted hook
fix #7107
2017-11-22 17:12:34 -05:00
Evan You 604e081d04 fix: ensure functionalContext is cloned during slot clones
fix #7106
2017-11-22 16:37:24 -05:00
Evan You 3932a451a1 fix(keep-alive): should not destroy active instance when pruning cache
fix #7105
2017-11-22 15:26:39 -05:00
Evan You ebcef58645 fix: fix v-for alias deconstruct regression
fix #7096
2017-11-21 09:06:19 -05:00
Evan You a23b913796 fix: fix <keep-alive> include/exclude logic for anonymous components 2017-11-20 10:04:06 -05:00
Evan You 59dea37403 fix: fix v-model :value warning on custom component
fix #7084
2017-11-18 14:41:22 -05:00
Evan You 4d8226fb2c fix: keep-alive should not cache anonymous components
This only happens if the component is returned by a intermediate
functional or abstract component, e.g. <router-view>. Fix #6938.
2017-11-17 10:30:51 -05:00
Evan You 6d6b3739e1 fix: should warn unknown components inside <keep-alive> 2017-11-17 10:23:23 -05:00
Robert Pemberton 1e146037fa feat: warn if both v-model and v-bind:value used on same element (#7056)
* test($compile): warn if v-model and :value used on same text input

#7048

* test($compile): make v-model and v-bind:value warning apply to all but exceptions

#7048

* test($compile): move v-model/:value conflict warner to model.js

#7048

* style: split long warning messages onto new lines
2017-11-16 14:54:11 -05:00
Evan You 5db86b4e94 fix(ssr): ensure hydrated class & style bindings are reactive
fix #7063
2017-11-16 11:19:52 -05:00
Evan You 6b799190a5 test: add test case for #6687 + fix lingering comment node 2017-11-16 10:09:15 -05:00
Evan You 13196b25b8 fix: clone slot nodes for render fn usage as well
fix #7041
2017-11-13 21:43:20 -05:00
Evan You df82aeb0bf fix: should warn unknown components during hydration
fix #6998
2017-11-13 15:52:01 -05:00
Evan You daed1e7355 fix: normlaize @click.right and @click.middle
fix #7020
2017-11-13 12:55:56 -05:00
Evan You 9463ac8746 test: fix weex tests 2017-11-07 17:25:55 -05:00
Evan You f0a66c5817 refactor: cache v-once and purely static trees separately 2017-11-07 17:10:54 -05:00
Evan You 5a9da95b8a fix(slots): properly handle nested named slot passing
fix #6996
2017-11-03 16:45:54 -04:00
Evan You e1657fd7ce fix(ssr): properly render <select v-model> initial state
fix #6986
2017-11-03 15:30:47 -04:00
Evan You 79c0d7bcfb fix(ssr): properly render textarea value
partial fix for #6986
2017-11-02 23:04:31 -04:00
laoxiong 58a39dfa0e fix(model): correctly set select v-model initial value on patch (#6910) 2017-11-02 22:03:19 -04:00
Soo Jae Hwang 0c703e34d1 fix(v-model): v-if / v-else not working with :type + v-model (#6955)
fix #6918
2017-11-02 17:09:46 -04:00
Mads K c24f3e4208 fix(events): properly $off array of events (#6949) 2017-11-02 16:58:21 -04:00
Evan You f2e00f756f fix: special case for static muted attribute in firefox
fix #6887
2017-11-02 16:55:05 -04:00
Hanks 232dd85f85 test(weex): support testing the virtual dom generated form *.vue files (#6944)
Compile the *.vue file into js code, then run it in Weex context, and
compare the generate virtual dom.
It’s a black-box testing for `weex-template-compiler`,
`weex-styler`,`weex-vue-framework` and `weex-js-runtime`.
2017-10-30 20:29:16 -04:00
Hanks 8a784d8d23 fix(weex): stop trim css units in richtext component (#6927)
+ Remove the `trimCSSUnit` method.
+ Modify the test cases to support css units.
+ Add flow type annotations.
2017-10-30 20:28:54 -04:00
Evan You 4ad9a56b22 fix(ssr): should not optimize root if conditions
fix #6907
2017-10-26 18:43:57 +02:00
Evan You 1cf02efda2 fix: also clone component slot children during deepClone
fix #6891, fix #6915
2017-10-26 18:00:19 +02:00
Evan You 83ed92608d fix: $set should respect properties on prototype chain
fix #6845
2017-10-26 13:53:46 +02:00
JK b6c384dd78 fix(core): static trees should be cached on options (#6826) (#6837)
* test(once): failing test for #6826

* fix(core): static trees should be cached on options (#6826)
2017-10-18 06:26:55 +02:00
Evan You 4e0c48511d fix: further adjust nextTick strategy
fix #6813
2017-10-13 15:37:52 -04:00
Evan You 08a7fb539f fix: v-on="object" listeners should fire after high-priority ones
fix #6805
2017-10-13 09:59:23 -04:00
Evan You 5665eaf985 fix: backwards compat with checkbox code generated in < 2.5
fix #6803
2017-10-13 09:42:53 -04:00
Eduardo San Martin Morote 15031b8542 fix(v-model): allow arbitrary naems for type binding (#6802)
Fix #6800
2017-10-13 08:55:02 -04:00
Evan You 1f84dd1c24 fix: fix empty array edge case in normalizeChildren
fix #6790
2017-10-13 01:09:25 -04:00
Evan You df8f179cfc test: make hydration spec more stable for Edge 2017-10-12 20:41:36 -04:00
Evan You a85f95c422 test: use phantom for dev 2017-10-12 20:41:07 -04:00
Evan You e38d006752 feat: improve template expression error message
close #6771
2017-10-12 11:15:23 -04:00
Evan You b7105ae8c9 refactor: improve option type check warnings 2017-10-12 10:57:02 -04:00
Evan You 9f576aac7d test: add test for ignoredElements 2017-10-12 09:54:17 -04:00
Evan You 421658884f fix: fix scoped CSS for nested nodes in functional components 2017-10-11 11:17:46 -04:00
Evan You 050bb33f9b feat: scoped CSS support for functional components 2017-10-11 10:38:46 -04:00
Evan You ea0d227d2d feat: functional component support for compiled templates 2017-10-10 22:33:16 -04:00
Evan You 68bdbf508b fix: perperly handle v-if on <template> scoped slot
fix #6725
2017-10-10 12:21:49 -04:00
Evan You dff85b230a fix(ssr): handle inline template compilation error
fix #6766
2017-10-10 10:47:41 -04:00
wenlu.wang 3a5432a9e3 feat(core): call data method with this value (#6760)
#6739
2017-10-10 09:39:30 -04:00
Evan You 62405aa903 revert: fix(v-model): fix input listener with modifier blocking v-model update
This reverts commit 6f312d636c because the change
is no longer needed after switching nextTick to use MessageChannel.
2017-10-09 16:31:23 -04:00
Evan You 37533fd71e refactor: improve errorCaptured propagation behavior 2017-10-09 09:51:54 -04:00
Evan You f3fe012d54 feat(v-model): support dynamic input type binding 2017-10-07 23:18:11 -04:00
Evan You 6893499744 feat: rename inject alias from "name" to "from" 2017-10-06 17:25:33 -04:00
Evan You 6dac3dbe44 feat: rename catchError -> errorCaptured 2017-10-06 17:25:33 -04:00
Dominik Rabij 514b90b647 fix: add slot v-bind warning (#6736)
close #6677
2017-10-06 15:48:00 -04:00
Evan You 7bc899ce0e feat(ssr): add shouldPrefetch option
close #5964
2017-10-05 23:08:09 -04:00
Evan You f881dd175a feat(ssr): renderToString return Promise
close #6160
2017-10-05 22:42:56 -04:00
Evan You 2cba6d4cb1 feat: add max prop for <keep-alive> 2017-10-05 22:01:50 -04:00
Evan You 3c65239ad4 test: improve inject default test case 2017-10-05 15:56:36 -04:00
Popescu Dan 88423fc66a feat(inject): support providing default values for injections (#6322) 2017-10-05 15:44:32 -04:00
Evan You b3cd9bc394 feat: add catchError option
also propagate error thrown in renderError() to global handler
2017-10-05 14:59:38 -04:00
Evan You 6e41679a96 fix: use MessageChannel for nextTick
fix #6566, #6690
2017-10-05 00:52:47 -04:00
Evan You aa1356e83d test: e2e tests for basic renderer 2017-10-04 18:15:45 -04:00
Evan You 8295f71665 fix: warn slot-scope when used as a prop 2017-10-04 17:31:58 -04:00
Evan You dae173d96d feat: support denoting normal elements as scoped slot
also deprecate "scope" in favor of "slot-scope"
2017-10-04 17:25:39 -04:00
Evan You 4987eeb3a7 feat: v-on automatic key inference 2017-10-04 14:59:59 -04:00
Nick Messing 9734e878ec feat: add .exact event modifier (#5977)
Allow limiting the event to the exact system modifiers specified.
close #5976
2017-10-04 12:37:00 -04:00
Evan You e1da0d585c feat(v-model): craete non-existent properties as reactive
close #5932
2017-10-03 23:30:35 -04:00
Evan You 2b5c83af6d fix: handle errors in errorHandler
close #6714
2017-10-03 18:23:43 -04:00
AchillesJ 6ad44e13e9 fix(ref): preserve ref on components after removing root element (#6718)
fix #6632, #6641
2017-10-03 18:04:23 -04:00
Chris Casola baabd6d140 fix(compiler): warn when inline-template component has no children (fix #6703) (#6715) 2017-10-03 18:00:52 -04:00
Evan You cf1ff5b0dc fix: use correct ns inside <foreignObject> as root node
fix #6642
2017-10-02 17:35:47 -04:00
Hanks 2deda3d432 refactor(weex): Adjust the weex platform entry file to fit the new weex runtime (#6620)
* trim trailing whitespace

* revert(weex): remove the new Function hack for V8, as Weex uses JSC now

Remove the `callFunctionNative` method and `compileBundle`, which is provided by modified V8. In
order to maintain the consistency of the js engine, Weex also use JSC on Android. The legacy hack
for V8 engine should be removed.

* refactor(weex): move module and component apis to weex runtime

Modules and components should be registered in weex runtime, not the specific framework. The
`registerModules`, `registerComponents`, `weex.supports` and `weex.requireModule` api is moved to
weex runtime, which is in the "apache/incubator-weex" repo.

* test(weex): refactor the test cases to fit the new weex-js-runtime

* fix(weex): use document instead of renderer to create Element
2017-09-18 15:38:27 -04:00
Evan You b080a14138 fix(ssr): fix hydration mismatch with adjacent text node from slots
fix vuejs/vue-loader#974
2017-09-14 12:25:22 -04:00
Evan You 0c9534ff00 fix(ssr): fix bundleRenderer Promise rejection regression 2017-09-14 09:50:33 -04:00
Elevista 3ee62fd59e fix(inject): exclude not enumerable keys of inject object (#6346)
close #6574
2017-09-13 01:05:11 -04:00
Evan You 09106f066a fix(ssr): handle v-text/v-html with non-string value
fix #6572
2017-09-12 23:23:24 -04:00
Evan You 684cd7d21a fix: preserve slot attribute if not resolved by Vue
close #6553
2017-09-12 21:45:44 -04:00
Evan You 6f312d636c fix(v-model): fix input listener with modifier blocking v-model update
fix #6552
2017-09-12 19:29:34 -04:00
Josh Soref f477ecdbbb chore: spelling (#6535) 2017-09-07 07:33:09 -04:00
Evan You 0f00f8fc2b fix(ssr): better handle v-html hydration
fix #6519
2017-09-06 21:24:51 -05:00
AchillesJ 679cd1fef4 fix: support prop type checking for primitive wrapper objects (#6450)
close #6447
2017-09-05 16:23:53 -04:00
JK 3c216755f6 fix(provide): provide should default to parentVal during merging (#6473)
fix #6436
2017-09-05 16:01:50 -04:00
AchillesJ 89f0d29f2d fix: inherit SVG ns on component root node (#6511)
fix #6506
2017-09-05 15:12:35 -04:00
Evan You 538ad20d8a fix(directive): should invoke unbind & inserted on inner component root element change
fix #6513
2017-09-05 12:59:57 -04:00
Evan You a744497534 fix: ensure outer bindings on nested HOC are properly re-applied on inner root element change 2017-09-05 12:59:57 -04:00
Evan You 230c6ae782 fix(vdom): avoid diff de-opt when both head/tail are different
fix #6502
2017-09-04 12:51:11 -04:00
Nick Messing f76d16ed95 fix(vdom): Don't replace input for text-like type change (#6344)
fix #6313
2017-09-01 18:49:39 -04:00
Evan You 8fc6bc8827 chore: warn methods that conflict with internals
close #6312
2017-09-01 18:34:10 -04:00
Nick Messing d6e6f1deb1 fix(v-model): Allow using array value with array v-model in checkboxes (#6220)
fix #6219
2017-09-01 17:35:41 -04:00
Evan You 06741f3266 fix: computed properties should not be cached during SSR
ref: vuejs/vuex#877
2017-09-01 12:51:29 -04:00
Evan You db1d047499 chore: remove unnecessary log in tests 2017-09-01 12:19:58 -04:00
Evan You 321866a47d test: use headless chrome for dev 2017-08-30 16:43:16 +02:00
Evan You 986a669e8f chore: trim trailing whitespace 2017-08-30 16:42:30 +02:00
Evan You 0529040c17 fix: deep clone slot vnodes on re-render
fix #6372
2017-08-30 00:47:10 +02:00
Evan You 172dbf9faf fix(ssr): should also escape static text content
fix #6345
2017-08-29 23:32:28 +02:00
赵鑫晖 59dbd4a414 fix: ensure $attrs and $listeners are always objects (#6441)
fix #6263
2017-08-29 22:59:39 +02:00
JK a43d66743b fix(transition): consider async placeholder as valid child to return (#6369)
fix #6256
2017-08-29 22:09:20 +02:00
JK d4d553ced7 fix(v-model): avoid unnecessary change event on select options change
fix #6193
via #6194
2017-08-29 18:59:54 +02:00
Evan You 5091e2c984 fix(ssr): address possible xss vector 2017-08-29 16:42:54 +02:00
Hanks a8146c0c10 feat(weex): remove __weex_require_module__ api 2017-08-29 16:35:39 +02:00
Hanks 9bded22a83 test(weex richtext): rename the file path of richtext test 2017-08-29 16:35:09 +02:00
Hanks 3e4d926336 feat(weex richtext): treat richtext as runtime components 2017-08-29 16:35:09 +02:00
Hanks d627161a91 feat(weex richtext): support events and add more test cases 2017-08-29 16:35:09 +02:00
Hanks b60964256c feat(weex richtext): support to parse styles and classList 2017-08-29 16:35:09 +02:00
Hanks 0ea2bb4fb4 feat(weex): support nested components in richtext 2017-08-29 16:35:09 +02:00
Hanks 09302a7211 test(weex): add test cases for richtext component 2017-08-29 16:35:09 +02:00
Nick Messing 3d14e855e4 fix: checkbox v-model="array" ignore false-value (#6180)
close #6178
2017-07-21 00:00:22 -04:00
Evan You 303655116f fix(provide/inject): merge provide properly from mixins
close #6175
2017-07-20 21:47:52 -04:00
Evan You eb9168cfc1 feat: warn when assigning to computed property with no setter
close #6078
2017-07-20 21:03:13 -04:00
Evan You a8ac129a58 fix: ensure looseEqual is not dependant on key enumeration order
close #5908
2017-07-20 20:41:18 -04:00
AchillesJ 06b9b0bbad fix(v-bind): respect .prop modifier on components (#6159) 2017-07-19 19:25:22 -04:00
laoxiong d03fa26687 fix(compile): properly generate comments with special character (#6156)
close #6150
2017-07-19 19:25:22 -04:00
AchillesJ b0f00e31e7 fix(provide/inject): resolve inject properly from mixins (#6107)
fix #6093
2017-07-19 19:25:22 -04:00
Evan You c70addf7d1 fix(v-model): use stricter check for <select> option update
close #6112
2017-07-19 19:25:22 -04:00
Eduardo San Martin Morote be3dc9c6e9 fix: include boolean in isPrimitive check (#6127)
suppresses key warning for boolean values, closes #6126
2017-07-19 19:25:22 -04:00
Evan You e0ca894dfb test: improve coverage 2017-07-13 13:50:42 +08:00
Evan You 67fe6cb823 test: use latest mobile browsers on saucelabs 2017-07-13 12:03:10 +08:00
Evan You 485e7403e4 test: make tests pass in IE 2017-07-12 18:33:16 +08:00
Evan You 6bf97721f1 feat(ssr): inheritAttrs support in SSR 2017-07-12 16:54:31 +08:00
Evan You 1bf98b0a99 test: adjust transition tests for firefox 2017-07-12 16:27:01 +08:00
Evan You 606666d5a9 test: fix Object.prototype.watch related warnings 2017-07-12 15:50:09 +08:00
Evan You 61187596b9 feat(core): $attrs, $listeners & inheritAttrs option
New features intended for easier creation of higher-order components.

- New instance properties: $attrs & $listeners. these are essentially aliases
  of $vnode.data.attrs and $vnode.data.on, but are reactive.

- New component option: inheritAttrs. Turns off the default behavior where
  parent scope non-prop bindings are automatically inherited on component root
  as attributes.

close #5983.
2017-07-11 22:38:09 +08:00
Evan You afa108238f test: remove unecessary id in test case 2017-07-11 16:55:14 +08:00
Evan You 11614d63b7 feat(v-on): support v-on object syntax with no arguments
Note this does not support modifiers and is meant to be used for handling
events proxying in higher-order-components.
2017-07-11 16:36:04 +08:00
chengchao 4d680794a5 fix(parser): the first newline following pre and textarea tag should be ignored (#6022)
fix #6022
2017-07-10 21:42:00 +08:00
Evan You a1d1145c91 fix(v-model): should generate component-specific code for tags with "is" attribute
fix #6066
2017-07-10 21:34:40 +08:00
Evan You 8d66691ee2 fix(core): should preserve reactivity-ness of injected objects
fix #5913
2017-07-10 21:12:43 +08:00
Hanks b1512d8b13 feat(weex): implement "weex.supports" api to support feature detection (#6053)
* feat(weex): add "weex.supports" api for feature detection

* test(weex): add test case for weex.supports and related methods
2017-07-10 12:15:31 +08:00
Hanks 0d6ad12a48 refactor(weex): sync recent changes of Weex (#6028)
* compile bundle on native side if 'compileBundle()' is available on
native side.

* refactor sendTasks

* reset renderer.compileBundle

* v2.2.2-weex.1

* v2.2.2-weex.2 && fixed memory leak

* call C++ timer instead of WxTimerModule in weex-vue-framwork

* v2.2.2-weex.4

* v2.2.2-weex.5

* v2.2.6-weex.1

* style(weex): fix eslint

* test(weex): fix test case for weex callback manager
2017-07-07 11:42:47 +08:00
Rahul Kadyan 306997eaf4 fix(core): add merge strategy for provide option (#6025)
Fix #6008
2017-07-07 11:39:25 +08:00
AchillesJ 254d85cfc4 fix(ref): refactor function registerRef (#6039)
fix #5997
2017-07-07 11:37:19 +08:00
wenlu.wang d8d4ca6763 fix: transition group should work with dynamic name (#6006) (#6019)
* fix: transition group should work with dynamic name (#6006)

* fix: improve remove class
2017-07-05 09:17:35 +08:00
AchillesJ eea0920f14 fix: improve Vue.set/Vue.delete API to support multi type of array index (#5973)
related #5884
2017-07-01 11:22:25 +08:00
AchillesJ 458030ae19 fix: v-bind object should not override props on scopedSlots (#5995)
* v-bind object should not override props on scopedSlots

* Update render-slot.js
2017-06-30 14:58:07 +08:00
wenlu.wang 049f3171a9 fix: support plugin with multi version vue (#5985)
close #5970
2017-06-30 11:20:43 +08:00
wenlu.wang e4da249ab8 feat: add `comments` option to allow preserving comments in template (#5951)
close #5392
2017-06-30 08:56:23 +08:00
JK 51c595a7ce feat(keep-alive): support Array for include and exclude (#5956)
* allow array index on keep-alive:include/exclude

* add Array in patternTypes

* fix flow type

* add flow type for include/exclude in watch

* add test case
2017-06-30 08:50:30 +08:00
wenlu.wang 3965e5053a feat: support sync modifier for v-bind="object" (#5943)
close #5937
2017-06-30 08:46:54 +08:00
lyhper 00a3085628 test: correcting existing test case (#5909)
Fix the location of the test case
2017-06-29 12:39:02 +08:00
Herrington Darkholme f6cd44c48b fix: ensure cleanup in watcher.get (#5988)
watcher.get should always clean up observee stack in order to prevent memory leak. Also, non-user
defined watch should rethrow error.

fix #5975
2017-06-29 12:38:14 +08:00
JK 55816543c4 fix(ssr): reference error when create $ssrContext for root component (#5981)
fix #5941
2017-06-29 12:37:03 +08:00
Evan You 0cd6ef321b feat: resolve ES module default when resolving async components 2017-06-29 12:12:01 +08:00
Evan You 610d1aabe9 build: move test config files into /test 2017-06-17 19:11:38 +08:00
kingwl 213f136a6e fix slot resolved incorrect with abstract component (fix #5888) (#5895) 2017-06-17 02:03:36 +08:00
gebilaoxiong 2f628c3114 test:improve reserved props test 2017-06-17 02:02:37 +08:00
gebilaoxiong f197d0dc45 test:add bind object test 2017-06-17 02:02:37 +08:00
王斐 8a2c5147ad Be able to use string type index in array (#5889) 2017-06-16 09:37:31 +08:00
JK 080c387d49 Merge inject when extending a component (#5827)
* simply fix inject extends

* add comments for normalizeInject

* normalizeInect should return for non-array

* remove isArray branch in resolveInject

* add test case for extending injection

* Create options.js

* type of inject should be object now

* Revert "type of inject should be object now"

This reverts commit 8466a2866b.
2017-06-15 22:15:36 +08:00
Luke Bennett 9831b403cf Add warnHandler to allow users to set a custom warn callback, similar to errorHandler (#5883) 2017-06-14 21:37:26 +08:00
Evan You a2a9110ea1 bump weex test deps 2017-06-13 18:14:03 +08:00
Evan You a855dd0564 add environment-agnostic build for vue-server-renderer 2017-06-13 16:54:55 +08:00
Evan You a18f879bb3 warn when methods conflict with data (close #5832) 2017-06-06 15:05:51 +08:00
Evan You 7b069453ed fix Object.prototype.watch test case 2017-06-06 14:48:05 +08:00
strantr 48c0c1ceb5 Added check in merge strat for watches if child is already an array (fix #5652) (#5653)
* Added check for if child is already an array

If the child is already an array it does not need to be wrapped again.
Fixing #5652

* Added unit test for watch merge strat

* Moved test to own describe

* Added test for merging multiple extends
2017-06-06 13:48:31 +08:00
Zhang Visper 7561b94eeb warn against non-primitive key (#5816) 2017-06-06 13:27:02 +08:00
Evan You 13bb643d6f handle in-out transition with async components 2017-06-05 22:21:45 +08:00
Evan You c3cdfcfa68 fix out-in transition for async components (fix #5760) 2017-06-05 19:01:23 +08:00
Evan You b4dd0be4fc improve .use() test cases and make it track installation based on constructor id 2017-06-05 16:30:10 +08:00
Evan You ab1203a096 update eslint config 2017-06-01 16:41:07 +08:00
Chris Nicola 11b7d5dff2 Add handleError during event handling (#5709)
* Add handleError during event handling

Currently handleError is used to handle errors during lifecycle hooks.
This commit adds this functionality in to the event handling for
consistency.

* style tweak
2017-05-29 14:24:25 +08:00
Maciej Kasprzyk b182ac4069 Warn when a inject has been not provided (#5681)
* warn when a inject has been not provided

* typo

* typo

* fix when undefined is provided

* use util hasOwn

* refactor

* test case

* Revert "test case"

This reverts commit 08f0a8b6c3.

* test case
2017-05-29 13:49:49 +08:00
Evan You b5e4a22a8d refined async hydration + tests 2017-05-24 16:50:17 +08:00
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