Commit Graph

927 Commits

Author SHA1 Message Date
Evan You 25af8dc73b refactor: improve warning output 2019-11-02 23:21:02 -04:00
Evan You f3c1fa75f6 feat(reactivity): provide correct tracking info for refs 2019-11-02 23:20:49 -04:00
Evan You 7f054782ad feat: warn ref usage on functional components 2019-11-02 21:33:37 -04:00
Evan You a651fc44f6 refactor: adjust shapeFlag naming 2019-11-02 21:26:25 -04:00
Evan You 90b9884eb4 refactor: rename/re-organize files 2019-11-02 12:18:35 -04:00
Evan You abdaf10d88 chore: comments regarding Readonly usage 2019-11-02 10:40:08 -04:00
Evan You 26c859aedd chore: simplify check 2019-11-02 10:38:25 -04:00
Evan You 5cdeeaa702 types: fix types 2019-11-01 23:04:28 -04:00
Evan You 66ecd8b47f types: setup tests for built d.ts files 2019-11-01 22:54:01 -04:00
Evan You 7b7b8ef221 types: improve h inference + infer required props without need for as const 2019-11-01 17:06:19 -04:00
Evan You b5c501c0b4 fix: fix shapeflags export 2019-11-01 17:05:38 -04:00
Evan You 492c1306f6 types: fix suspense exported type 2019-11-01 12:43:27 -04:00
Evan You fc5b2964de types: fix dts reliance on @vue/shared 2019-11-01 12:24:33 -04:00
Evan You 5eee1152ca types: (wip) improve dts output 2019-11-01 11:32:53 -04:00
Evan You 06c5b0a861 types: refactor VNodeProps type 2019-11-01 09:58:27 -04:00
Evan You 28895b8817 chore: rename mockWarn util 2019-10-31 13:53:11 -04:00
Evan You 3a6dcd3aba types: improve h() and TSX type inference
- Should allow extraneous props as attrs in TSX
- Should check props when using constructor type returned by
  createComponent() in h()
2019-10-31 12:43:05 -04:00
Evan You b114cdf6ee chore: comments explaining keep-alive implementation details [ci skip] 2019-10-31 12:41:28 -04:00
Evan You 4631f5323b test: more tests for keep-alive 2019-10-30 23:32:29 -04:00
Evan You 5fcb81050a test: tests for keep-alive 2019-10-30 21:41:28 -04:00
Evan You a42d165285 chore: rename 2019-10-30 15:43:12 -04:00
Evan You 47d3356f31 build(deps-dev): bump @types/jest 2019-10-30 11:52:19 -04:00
Dmitry Sharshakov d3d2353eac feat(suspense): replace errors with warnings (#412) 2019-10-30 11:37:05 -04:00
JiZhi cb97d152b8 test(effect): add test for nested stopped effect (#417) 2019-10-30 11:36:17 -04:00
Evan You e98c558bf3 chore: fix types 2019-10-30 11:29:08 -04:00
Evan You 247c53672d refactor(reactivity): simplify effect options 2019-10-30 11:11:23 -04:00
Evan You c6cbca25fe feat(core): keep-alive 2019-10-29 22:28:38 -04:00
Evan You 083296ead6 fix: fix h signature for suspense 2019-10-29 14:04:53 -04:00
likui ea2e2ce5bd chore: fix typo (#409) 2019-10-29 13:51:48 -04:00
Evan You 4dd5d2cb74 refactor(suspense): move more suspense details into suspense.ts 2019-10-29 12:40:54 -04:00
Evan You 17d71fa407 refactor(suspense): make suspense tree-shakeable 2019-10-29 12:30:09 -04:00
Dmitry Sharshakov 5cce23f4c6 feat(apiApp): add more warnings (#394) 2019-10-28 16:22:03 -04:00
Cédric Exbrayat 36b7e4e52e chore: fix comments referencing renamed file [ci skip] (#404) 2019-10-28 12:04:04 -04:00
Dmitry Sharshakov 325e15ef41 feat(createRenderer): handle errors in function refs (#403) 2019-10-28 12:03:30 -04:00
Evan You 34989ef7fe chore: license 2019-10-28 11:15:17 -04:00
likui 8454e7e004 refactor: remove unnecessary variable (#401) 2019-10-28 10:13:26 -04:00
Dmitry Sharshakov db7666d0f3 fix(warning): handle errors in warn handler (#396) 2019-10-27 20:55:50 -04:00
Dmitry Sharshakov e7e3eb8662 refactor(VNode): improve helper types (#392) 2019-10-27 20:54:54 -04:00
Dmitry Sharshakov e581b14dff feat(apiApp): return app from provide method for chaining (#393) 2019-10-27 20:54:33 -04:00
Evan You a8aa328907 chore: comment on cloneVNode implementation [ci skip] 2019-10-27 20:45:59 -04:00
djy0 8d7a186def chore: fix typo (#395) 2019-10-27 20:44:24 -04:00
Evan You 43f4bd3aaa chore: fix typing for withDirectives 2019-10-26 16:32:27 -04:00
Evan You 07ce2c5fa7 perf: improve directive runtime performance 2019-10-26 16:00:07 -04:00
Evan You 6c7787db7b perf: use makeMap for reserved prop check 2019-10-26 11:24:37 -04:00
Dmitry Sharshakov 7394f7ec42 fix(apiInject): fix stringifying of symbol injection key (#383) 2019-10-26 10:52:29 -04:00
Dmitry Sharshakov 134e932322 fix(types): fix VNodeTypes unique symbols (#387) 2019-10-26 10:51:55 -04:00
Dmitry Sharshakov 49914efc9e fix(Portal): add ability to use element as target (#380) 2019-10-26 10:32:16 -04:00
Evan You b788c03992 test: fix context.attrs test case 2019-10-26 10:31:36 -04:00
Evan You b3282028bb chore: remove it.only 2019-10-26 10:27:49 -04:00
Evan You 8edfbf9df9 feat(core): adjust attrs fallthrough behavior 2019-10-25 12:12:17 -04:00
Junyan d76cfba7fb refactor(reactivity): reduce code of type check (#377) 2019-10-25 11:15:04 -04:00
Ayush Goyal a489f98a66 perf(compiler-dom): use makeMap instead of RegEx (#354) 2019-10-25 10:35:44 -04:00
likui 532b5eebd7 feat(runtime-core): support array in watch option (#376) 2019-10-25 10:25:52 -04:00
大江东去 a75077569e test(dom): test using innerHTML as template. (#372) 2019-10-25 10:18:46 -04:00
夜宴 57276f9dcb test(effect): add test for json methods (#371) 2019-10-25 10:17:31 -04:00
Evan You 8c1638da33 feat(runtime-core): warn access of undefined property during render 2019-10-25 10:12:58 -04:00
Cr 3f73b8b6cf chore: fix composition example (#369) 2019-10-25 10:00:55 -04:00
Evan You fd4845c52c chore: include todomvc examples (need tests!) 2019-10-24 22:23:08 -04:00
Evan You 6a92bbd9c0 feat(runtime-dom): support using mount target innerHTML as template 2019-10-24 21:58:34 -04:00
Evan You ed29af7bea fix: generate v-if fallback comment as block 2019-10-24 21:19:02 -04:00
Evan You 7b637319a8 fix: export missing createCommentVNode fn 2019-10-24 21:08:28 -04:00
Evan You 1c0a2c6d41 refactor(compiler): use shorter helpers for text and comment nodes 2019-10-24 17:55:00 -04:00
Evan You eb20730a67 feat(compiler): preserve whitespace in pre tag, add tests 2019-10-24 16:42:09 -04:00
Evan You 9298f46f92 feat(compiler-core): whitespace handling 2019-10-24 16:22:48 -04:00
Evan You 516501e20e chore: remove unused util function 2019-10-24 15:39:31 -04:00
Evan You f7a7e8d71d refactor(parser): remove ignoreSpaces option 2019-10-24 12:47:29 -04:00
相学长 abfb2ec8ed types(reactivity): computed types remove `as` (#367) 2019-10-24 11:37:52 -04:00
Evan You 42bf9ca3e5 feat(props): enable case conversion in all builds, preserve casing for attrs 2019-10-24 10:59:57 -04:00
Evan You e2917fef96 feat(props): kebab -> camel prop case support in full build 2019-10-23 21:51:01 -04:00
Evan You af5a8e1154 feat(compiler-core): re-implement v-once to use cache mechanism 2019-10-23 17:57:40 -04:00
Evan You 9291011456 chore: comments [ci skip] 2019-10-23 15:19:55 -04:00
Dmitry Sharshakov 3b613cbecd test(template-refs): add tests for function refs (#359) 2019-10-23 11:54:50 -04:00
Mayness 18a349ce8c fix(reactivity): account for NaN in value change checks (#361) 2019-10-23 11:53:43 -04:00
Cr 246cad7459 fix(reactivity): Map.set should trigger when adding new entry with undefined value (#364) 2019-10-23 11:00:55 -04:00
Evan You 09c248ae87 chore: fix snapshot 2019-10-23 10:57:05 -04:00
Evan You 113339c7b6 fix(compiler-dom): style transform of static styles should not add STYLE patchFlag 2019-10-23 10:49:16 -04:00
大江东去 7cd1b7fcaf test(compiler-dom): test namespace parsing (#356) 2019-10-23 10:35:45 -04:00
edison 9dcbf17f3a perf(runtime-core): use `makeMap` instead of `RE` (#350) 2019-10-23 10:34:58 -04:00
likui e34d2bd853 types: improve slots type (#366) 2019-10-23 09:29:09 -04:00
Evan You 590e4e0ba9 chore: fix DebuggerEvent export 2019-10-22 11:53:32 -04:00
Evan You af57ad110f chore: revert prettier 2019-10-22 11:53:32 -04:00
Evan You b5886189ba types: massive refactor 2019-10-22 11:53:32 -04:00
Cr a23e03f01e feat(apiOptions): add warning for duplicated properties declared by options (#329) 2019-10-21 23:47:16 -04:00
Evan You a25b1371ab types: improve types 2019-10-21 23:37:03 -04:00
Evan You bc0ec27739 chore: reference link 2019-10-21 16:46:47 -04:00
Evan You 5023dff60c feat: update svg tag list 2019-10-21 16:39:37 -04:00
Evan You bb85aefc03 chore: move dom element config to compiler-dom 2019-10-21 16:25:16 -04:00
Evan You 052febc127 feat(compiler): convert text mixed with elements into createVNode calls
This ensures they are tracked as dynamic children when inside blocks.
Also guaruntees compiled vnodes always have vnode children in arrays
so that they can skip normalizeVNode safely in optimized mode.
2019-10-21 15:52:29 -04:00
Evan You a0d570b16d Revert "feat(compiler-core): hoist element with static ref (#344)"
Static refs still need to be tracked in dynamicChildren because unmount
also takes the fast path when dynamicChildren is present, and all refs
need to be properly unmounted.

This reverts commit 920773fc6b.
2019-10-21 15:17:29 -04:00
likui f85ba092ce types: improve emit type (#345) 2019-10-21 14:04:42 -04:00
Jooger 67eb29f63b refactor(errorHandlling): handle array in callWithAsyncErrorHandling (#332) 2019-10-21 13:59:10 -04:00
Dmitry Sharshakov 74d8c5919d types: improve computed types (#343) 2019-10-21 13:57:20 -04:00
Dmitry Sharshakov 1f4937c2fd types: use RenderFunction type (#342) 2019-10-21 13:44:01 -04:00
Evan You 520af9787b perf: skip normalizeVNode in optimized mode 2019-10-21 12:24:19 -04:00
Evan You 8be578b6b6 perf: micro optimizations for vnode creation 2019-10-21 11:30:45 -04:00
Evan You 40ccbdeaac chore: remove refs from setupContext
explicit refs should be preferred
2019-10-21 10:36:38 -04:00
Evan You 4abd8d29ef chore: fix merge conflict 2019-10-21 10:33:10 -04:00
HcySunYang 920773fc6b feat(compiler-core): hoist element with static ref (#344) 2019-10-21 10:29:17 -04:00
Dmitry Sharshakov 27f3c2d751 chore: fix typo (#339) 2019-10-21 10:04:34 -04:00
Evan You f241c92917 chore: remove todo 2019-10-21 10:04:02 -04:00