Commit Graph

1887 Commits

Author SHA1 Message Date
Evan You
9132730035 refactor(codegen): simplify conditions 2019-01-07 18:22:22 -05:00
Evan You
583dd01158 refactor(parser): move element self processing to after children
This allows element processing logic to be based on its sub tree
content, e.g. $slot usage detection
2019-01-07 16:47:18 -05:00
Evan You
ce35159d6d chore: fix types 2018-12-26 17:22:32 -05:00
Evan You
c7c13c2a15 fix(scoped-slots): ensure $scopedSlots calls always return Arrays
Also allow render functions to return an Array of a single element.
Close #8056
2018-12-26 17:17:42 -05:00
Jeremy Dubois
d40eb9c288 feat(v-for): support iterables in v-for (#8179) 2018-12-26 15:38:19 -05:00
Evan You
e1abedb9e6 feat(compiler): add whitespace option, deprecate preserveWhitespace option
close #9208
2018-12-26 14:12:34 -05:00
Pak Youngrok
9c718522ba feat(compiler/watch): allow unicode characters in component names and watch paths (#8666)
close #8564
2018-12-26 10:02:54 -05:00
Evan You
325fc7693c feat(compiler): output codeframe in browser compiler 2018-12-21 23:55:48 -05:00
Jason
b31a1aa887 feat(compiler): output source range for compiler errors (#7127)
ref #6338
2018-12-21 21:58:32 -05:00
Evan You
d08b49f520 fix: make transition-group key warning a tip to avoid breaking compilation 2018-12-21 14:46:18 -05:00
Divya
3fca52792e feat: v-bind.sync also listens for kebab-case update event (#8297)
fix #6428
2018-12-21 13:34:17 -05:00
Mathieu TUDISCO
0e4e45ec74 feat: support custom toString() in text interpolation and v-html (#8217)
close #8093
2018-12-21 13:13:48 -05:00
Hiroki Osame
1933ee80ff fix(provide/inject): Merges symbol provides (#7926) 2018-12-21 12:49:21 -05:00
Evan You
5ab028a912 refactor: speed up injection resolution 2018-12-21 12:26:45 -05:00
Zhenfei You
bf0efb02b1 feat(compiler): support deindent: false in vue-template-compiler (#7215)
close #7054
2018-12-21 11:59:33 -05:00
GU Yiling
a981c80d2a feat: support v-html for SVG elements (#8652) 2018-12-20 17:07:34 -05:00
Alejandro Maguey
22ad266151 fix(runtime): DevTools recommendation shows for all browsers (#8638)
Close #8634
2018-12-20 17:05:05 -05:00
Evan You
44940121ee feat(ssr): add custom state serializer option
close #6614
2018-12-20 16:08:58 -05:00
Evan You
ab24285458 feat(ssr): allow opting-out of caching by returning false in serverCacheKey
close #8790
2018-12-20 15:47:15 -05:00
Guillaume Chau
d7a533d6f8 feat(ssr): ssrPrefetch option + context.rendered hook (#9017) 2018-12-20 15:26:12 -05:00
Hyunje Jun
f036cce163 feat(ssr): Add 'nonce' option to context for ssr outlet script (#8047)
close #7479
2018-12-20 15:15:04 -05:00
Evan You
9432737cf8 fix: cover more cases in v-on inline return value 2018-12-20 12:20:09 -05:00
Evan You
0ebb0f39df fix: return inline invocation return value in v-on handlers
close #7628
2018-12-20 11:32:06 -05:00
Evan You
b00868c5cb refactor: extract async error handling logic 2018-12-20 10:26:56 -05:00
Evan You
35edc1c1e2 refactor: extract isPromise util 2018-12-20 10:09:06 -05:00
Enkot
6e9fcfc81d feat(errors): sync/async error handling for lifecycle hooks and v-on handlers (#8395)
close #6953, close #7653
2018-12-20 10:02:28 -05:00
Evan You
b7f7f27569 feat: use event delegation when possible
This also fixes async edge case #6566 where events propagate too slow
and incorrectly trigger handlers post-patch.
2018-12-19 19:26:58 -05:00
Evan You
080dd971f7 fix(next-tick): revert 60da366
the condition is no longer necessary after reverting back to microtask
only nextTick implementation, and fix #8436
2018-12-19 14:00:15 -05:00
Haoqun Jiang
850555d1fa fix: always use microtasks for nextTick (#8450)
fix #7109, #7546, #7707, #7834, #8109
reopen #6566
2018-12-19 13:29:00 -05:00
Xin Du (Clark)
38e967b806 refactor: tiny cleanup changes (#9193) 2018-12-12 11:41:45 -05:00
Nick Hall
af9e2b3f0f chore: minor comment cleanup (#9191) 2018-12-12 11:41:36 -05:00
Xin Du (Clark)
b06c784b81 fix(ssr): support rendering comment (#9128) 2018-12-12 11:41:08 -05:00
Evan You
847e493768 fix: fix single v-for child optimization 2018-12-11 17:47:59 -05:00
Evan You
4074104fac perf: skip normalization on single child element v-for 2018-12-11 16:51:40 -05:00
Evan You
47487607fb fix: fix v-for component with undefined value
fix #9181
2018-12-11 16:51:03 -05:00
Matteo Fogli
87bad80f0c fix(lifecycle): beforeUpdated should not be called if component is destroyed (#9171)
fix #8076
2018-12-11 11:31:27 -05:00
Zhenfei You
d8285c57a6 fix(weex): support data class type that is string (#9139)
close #9124
2018-12-11 11:29:49 -05:00
NaotoSuzuki
8fccd82569 chore: fix tag name in compiler/parser/index.js (#9165) 2018-12-11 11:28:40 -05:00
Andrew Hyndman
3d449376d5 fix(v-model): properly handle multiline v-model expressions (#9184)
fix #9183
2018-12-11 10:27:43 -05:00
Evan You
0d4b35f559 fix(vdom): remove unnecessary sameVnode condition
fix #9168
2018-12-09 16:21:22 -05:00
Evan You
5d721a42b1 revert: fix(sfc): avoid deindent when pad option is specified (#7647)
This reverts commit 9d2f9a034f.
2018-12-09 15:52:17 -05:00
Evan You
780dac561b fix(ssr): should not warn for custom directives that do not have ssr implementation
fix #9167
2018-12-09 15:47:43 -05:00
Evan You
8a2dbf5010 fix(transition-group): fix activeInstance regression
fix #9151
2018-12-05 17:33:39 -05:00
GU Yiling
0ed0aad772 fix: fix keyName checking for space and delete in IE11 (#9150)
fix #9112
2018-12-05 15:26:58 -05:00
Evan You
f077ed17af fix(ssr): fix ssr template publicPath generation
fix #9145
2018-12-05 11:22:27 -05:00
Evan You
1b4a8a0c1e fix(compiler): fix codegen for v-for component inside template
fix #9142
2018-12-04 10:51:49 -05:00
ggtmtmgg
307835284a fix(ssr): resolve server directives the same as on client (#9129)
fix #8961
2018-12-02 16:01:19 -05:00
Evan You
e4b1b57fd7 fix(ssr): adjust call stack size defer threshold
fix #8545
2018-12-02 12:31:16 -05:00
laoxiong
19c33a7e40 fix(v-on): correctly remove once listener (#8036)
fix #8032
2018-12-02 11:33:39 -05:00
Evan You
530ca1b2db fix(core): properly handle reused vnodes
This also removes the restrictions on rendering the same slot multiple
times.

close #7913
2018-12-01 21:07:18 -05:00