Commit Graph

2696 Commits

Author SHA1 Message Date
thenickname 76443803e8 Typings: Improve $slots and $scopedSlots type to prevent unchecked access to undefined (#8946)
* fix(types): Declare $scopedSlots as potentially undefined to enable stricter TS checks

* fix(types): Fix tests

* fix(types): declare $slots option as potentially undefined

declare $slots option as potentially undefined to enable stricter TS checks
2018-11-30 23:31:45 -05:00
Kaoru Hagihara 3cd4af4af0 fix(types): support typing $el as SVGElement (#8809) 2018-11-30 23:30:31 -05:00
nel215 0ba79e2588 fix(types): accept `number` type as key on Vue.set/delete (#8707) (#8709) 2018-11-30 23:28:52 -05:00
st-sloth ac217d2472 fix(types): fix `renderError`arguments type (#8636)
fix #8635
2018-11-30 23:28:29 -05:00
狼族小狈 c711ec189a fix(types): support chain call for Vue.use and Vue.mixin (#8595) 2018-11-30 23:27:24 -05:00
Alexey Tirman 613cb52bf3 polish: improve invalid method warning with type info (#8974)
close #8017
2018-11-30 18:06:24 -05:00
Kael a7658e03a1 fix(data): skip recursive call if values are identical (#8967) 2018-11-30 18:04:05 -05:00
Jovino Xu 05001e695e fix(compiler): should keep newline after unary tags in <pre> (#8965)
fix #8950
2018-11-30 18:02:54 -05:00
Daniel Santana Rocha 2bb3199da7 polish: warn duplicate keys when patching children into empty node (#8881)
close #8832
2018-11-30 18:01:45 -05:00
GU Yiling 758524134e fix: v-bind object should be overridable with kebab-cased props (#8845)
In addition .sync should generate camelCased event name
2018-11-30 17:56:41 -05:00
Kael 80f17fa498 fix(core): skip mixins and extends if child is already merged (#8870)
fix #8865
2018-11-30 17:54:16 -05:00
Sultan Iman 374861f72b refactor: remove redundant ternary (#8848) 2018-11-30 17:38:09 -05:00
Evan You e29fbad0ac chore: fix lint 2018-11-30 17:37:30 -05:00
Matt Lavallee 2e472c5e5e fix(component): clean up memory leak after loading async component completes (fix #8740) (#8755)
* fix(component): clean up memory leak after loading async component completes

* fix(async component): accounting for async components with loading property

* refactor(component): simplifying memory cleanup logic
2018-11-30 17:36:08 -05:00
HcySunYang 5f6ef15fb2 polish: warn sequential index on <transition-group> (#8748) 2018-11-30 17:35:10 -05:00
Clark Du 5624278fbe fix(ssr): check js assets more accurate in ssr webpack plugin (#8639) 2018-11-30 17:32:28 -05:00
Rahul Kadyan 4ecc21c29e feat(devtools): store functional render context on vnode in development (#8586) 2018-11-30 17:31:44 -05:00
Adrià Fontcuberta 2686818beb fix(error handling): handle errors on immediate watcher execution (#8581)
The handle callback call should be wrapped in a try/catch that explicitly calls handleError

fix #8567
2018-11-29 18:14:28 -05:00
Evan You 7b7164c11c fix(v-model): avoid duplicate model transforms
This happens when a component directly passes down its own data object
to a child component. Fix #8436.
2018-11-29 18:11:20 -05:00
william-pan 69730fac8f chore: update badge for Vue CLI 3 (#8640) 2018-11-29 16:37:01 -05:00
Evan You 6cc070063b chore: update sponsors 2018-11-26 09:51:30 -05:00
Evan You 1762a66204 chore: update sponsors 2018-11-19 00:22:21 -05:00
Evan You 3d220a65de chore: update sponsors 2018-11-12 22:03:20 -05:00
Evan You 0008e0c5cf chore: update sponsors 2018-11-09 14:55:41 -05:00
X.L d483a49c86 fix(compiler): normalize potential functional component children in v-for (#8558)
fix #8468
2018-10-24 14:02:45 -04:00
Phablulo Joel 59d4351ad8 fix(transition): handle local-formatted floats in toMs function. (#8495)
fix #4894
2018-10-24 13:58:25 -04:00
阿林 8c2674ea6a refactor: remove unnecessary judgment (#8493) 2018-10-24 13:56:02 -04:00
HcySunYang eb604529c6 fix: support modifier combination of click.right + .once (#8492) 2018-10-24 13:55:33 -04:00
Evan You 002acbe678 refactor(codegen): only generate pre data for possible components 2018-10-24 13:52:35 -04:00
Haoqun Jiang 0b16927c9d fix(transition): check existence of `el.parentNode` (#8422)
fix #8199

* fix(transition): check existence of `el.parentNode`

If the new parentNode gets a `textContent` or `innerHTML` property during
patching, the `transition` node would have been detached early, which means
`el.parentNode` no longer exists.

* fix(vdom): should not reuse nodes with `textContent` / `innerHTML` props
2018-10-24 13:26:20 -04:00
Haoqun Jiang 8f04135dba fix(parser): allow CRLFs in string interpolations (#8408)
fix #8103
2018-10-24 13:24:55 -04:00
Haoqun Jiang a64ff1957c fix(lifecycle): updated should not be called after component being destroyed (#8381)
fix #8076
2018-10-24 13:24:31 -04:00
Haoqun Jiang a71853bfc5 fix(v-pre): skip compiling custom component tags in v-pre blocks (fix #8286) (#8376) 2018-10-24 13:24:07 -04:00
Vladimir Verstov 504d5da7ef fix(transition): transition-group should only listen for first-level children's end events (#8374) 2018-10-24 13:23:12 -04:00
淼淼真人 96b833bc5d refactor: remove unnecessary code in html-parser.js (#8359) 2018-10-24 13:22:16 -04:00
X.L 6eaf56e28d refactor: keep single source of truth (#8334) 2018-10-24 13:21:14 -04:00
Sam Lichlyter 5489339a30 refactor(core): Replace "var" (#8299)
Replaces instances of "var" with "let" and "const" where applicable using the eslint 'no-var' and
'prefer-const' rules
2018-10-24 13:07:40 -04:00
Alex Ivasyuv 5cfdf1a248 fix: handle undefined style properties in jsdom (fix #7444) (#8281) 2018-10-24 13:06:17 -04:00
yongningfu 038ed86967 polish(compiler): remove the extra space of v-for alias (#8233) 2018-10-24 13:05:48 -04:00
Kael bfd722bb5d types: add refInFor to VNodeData (#8229) 2018-10-24 13:05:15 -04:00
Eduardo San Martin Morote 952ae33290 polish: warn when an existing property starting with $ is not pro… (#8214) 2018-10-24 13:04:56 -04:00
Eduardo San Martin Morote 496635e7c9 types: add model option to functional components (#8212)
Closes #8210
2018-10-24 13:03:48 -04:00
Zev Goldstein bf2e2ed159 types: allow functional components to return multiple VNodes (#8192)
close #8191
2018-10-24 13:03:29 -04:00
Herrington Darkholme 46b8d2c59d fix(server): use path.posix.join to generate public path (#8177)
fix #8167
2018-10-24 13:02:11 -04:00
Kevin Ball ecac831691 fix(compiler): templates inside v-pre should be rendered to HTML (#8146)
close #8041
2018-10-24 13:01:29 -04:00
DongGyu Lee 61c32cc673 Fix: block unnecessary input event on input tag placeholder in IE (#8140) 2018-10-24 13:01:02 -04:00
Evan You e9fc04ba50 test: fix assertion 2018-10-24 12:58:21 -04:00
Jovino Xu aef2a5f3db fix(compiler): maybeComponent should return true when "is" attribute exists (#8114)
close #8101
2018-10-24 12:50:42 -04:00
xudaashuai f5b5b3c96f chore: use template strings in config.js (#8113) 2018-10-24 12:48:58 -04:00
Eduardo San Martin Morote ecc239e475 fix(for): use IE compatible regex in v-for regex (#8048)
Closes #7946
2018-10-24 12:48:07 -04:00