Commit Graph

1098 Commits

Author SHA1 Message Date
Evan You
83428fb844 chore: update readme 2019-12-09 14:06:31 -05:00
ztplz
02478b48eb chore: use const instead of let (#524) 2019-12-06 00:10:06 +01:00
meteorlxy
f3007a6b4f fix(core): use String to convert primitive types (#518) 2019-12-04 18:28:52 +01:00
Evan You
42cdf8c409 test(e2e): extract e2eUtils + test both api styles of todomvc 2019-12-04 12:13:00 +01:00
Evan You
27a72bd8f1 chore: fix example 2019-12-04 11:54:24 +01:00
CodinCat
8ebb503f73 test(e2e): complete e2e test for todomvc (#517) 2019-12-04 05:53:51 -05:00
Evan You
89a187b895 refactor(reactivity): separate track and trigger operation types 2019-12-03 11:30:24 -05:00
hujiulong
7522d4d61a types(transition): props should be declared by generic (#514) 2019-12-03 10:12:54 -05:00
Gabriel Loiácono
1f3e4f8bcc refactor(compiler-sfc): changed string typeof to isString util (#513) 2019-12-02 23:08:52 -05:00
likui
cf2a0b281f feat(compiler-sfc): transform srcset (#501) 2019-12-02 23:06:14 -05:00
Evan You
74fd6635ce test(e2e): wip e2e test for todomvc 2019-12-02 18:18:02 -05:00
Evan You
a984d3a531 test: skip optimizing single text root 2019-12-02 15:49:59 -05:00
Evan You
46490ac1a5 chore: more examples 2019-12-02 15:22:04 -05:00
Evan You
a58da63f16 fix(core): should not warn extraneous props when root is toggled 2019-12-02 15:17:30 -05:00
Evan You
42f3f9e832 fix(compiler-core): should pre-convert text nodes in all non-element cases 2019-12-02 15:17:00 -05:00
Evan You
57bbbb227c fix(core): propsProxy should not convert non-reactive nested values 2019-12-02 14:11:12 -05:00
likui
ef2786151e feat(compiler-sfc): handle pad option (#509) 2019-12-02 10:43:30 -05:00
hujiulong
08a1de5e29 chore: remove jsx.d.ts from package.files (#512) 2019-12-02 09:40:42 -05:00
Evan You
e0a9cf5ace chore: add a few 2.x examples 2019-12-01 23:54:32 -05:00
Evan You
24f6d63c6a fix(core): use correct parent for v-if toggle 2019-12-01 23:42:14 -05:00
Evan You
f5f2dca132 feat(core): support recursively resolving self component by name 2019-12-01 23:17:00 -05:00
Evan You
c8895e7cb9 feat(vue): handle template querySelector 2019-12-01 23:09:34 -05:00
JiZhi
ec2feeafad chore: typo (#488) [ci skip] 2019-12-01 12:03:26 -05:00
likui
810b3a3e2a feat(compiler-sfc): transform asset url (#500) 2019-12-01 12:02:53 -05:00
Evan You
22957436e8 chore: default transition css prop to true 2019-11-29 17:38:29 -05:00
Evan You
6d254da532 feat(transition): add runtime props validation for TransitionGroup 2019-11-29 16:47:41 -05:00
Evan You
0e3e07079a feat(transition): properly handle transition & transition-group in compiler 2019-11-29 12:42:04 -05:00
Evan You
4e8d57bdfb feat(compiler-core): options.isBuiltInComponent 2019-11-29 12:13:49 -05:00
Evan You
52134a88d0 fix(compiler-core): handle base-transition 2019-11-29 12:02:31 -05:00
Evan You
52239d137c types: fix class module transition class typing 2019-11-29 11:53:54 -05:00
Evan You
800b0f0e7a feat(transition): TransitionGroup 2019-11-28 18:41:01 -05:00
Evan You
020e109abd chore: todos 2019-11-28 15:22:30 -05:00
likui
65118327ff feat(compiler-sfc): gen source map for style and script block (#497) 2019-11-28 15:21:02 -05:00
Evan You
dcfac07431 chore: update readme for runtime-test 2019-11-28 14:43:12 -05:00
Evan You
a758540b6a test(transition): test usage with KeepAlive 2019-11-28 12:16:42 -05:00
Gabriel Loiácono
812a0626ce style(compiler): changed object-assign to spread (#507) 2019-11-28 10:49:39 -05:00
fisker Cheung
b87c05159b style(runtime-core): remove a unnecessary continue (#505) 2019-11-28 10:45:48 -05:00
fisker Cheung
92b02dc48f chore: comment typo (#506) 2019-11-28 10:01:53 +01:00
Evan You
32602ccee1 test(transition): in-out, appear & persisted 2019-11-27 17:54:41 -05:00
Evan You
7aac3418c0 test(transition): test for mode: out-in 2019-11-27 15:25:18 -05:00
Evan You
7209fb66c2 test: wip more tests for BaseTransition 2019-11-27 12:17:16 -05:00
Gabriel Loiácono
fbcc47841b fix(runtime-core): fix error when passed plugin is undefined (#502) 2019-11-27 09:18:03 -05:00
Gabriel Loiácono
d4f4c7c4d4 fix(runtime-core): renderList with default value when source is undefined (#498) 2019-11-26 21:00:32 -05:00
Evan You
bb39910e8e test: wip tests for BaseTransition 2019-11-26 18:07:05 -05:00
Evan You
460b053f74 test: improve events module test stability 2019-11-26 18:06:55 -05:00
Evan You
43097987cf feat(core): respect $stable slots flag per RFC 2019-11-26 10:03:36 -05:00
Gabriel Loiácono
009dc80674 perf(compiler-core): set simple expression outside map (#485) 2019-11-26 09:02:22 -05:00
JiZhi
fc28a677bc chore: fix warn typo (#496) 2019-11-26 09:27:51 +01:00
Rustin
d5f4cc9c42 chore: fix comment typo (#499)
* chore(typo): fix comment typo

* chore(typo): fix comment typo of KeepAlive
2019-11-26 09:26:03 +01:00
Evan You
c6fb506fc0 feat(transition): compat with keep-alive 2019-11-25 17:35:15 -05:00
Evan You
16ea2993d6 test: fix resolveDyanmicComponent test 2019-11-25 12:51:57 -05:00
Evan You
08a3d95e52 fix: resolveDynamicComponent should use context instance 2019-11-25 11:41:28 -05:00
Evan You
01eb3c12e9 feat(transition): warn non-animatable component root node 2019-11-25 11:41:28 -05:00
Gabriel Loiácono
be4c22e423 chore(compiler-dom): changed function to arrow function (#487) 2019-11-24 22:11:15 -05:00
likui
00857ac816 feat(core): support v-show directive (#310) 2019-11-24 22:04:26 -05:00
Evan You
1765985ec2 feat(transition): support in templates 2019-11-24 18:37:59 -05:00
Evan You
a834807942 refactor: rename transition components 2019-11-24 16:00:46 -05:00
Evan You
bdafa1dfc4 refactor: adjust warning for fn props and component with many props 2019-11-23 22:17:46 -05:00
Gabriel Loiácono
f399b5476f refactor(transition): avoid repeated code (#483) 2019-11-23 00:02:39 -05:00
Evan You
55b7bf991d fix(transition): handle errors in CSSTransition onEnter & onLeave 2019-11-22 23:42:04 -05:00
Evan You
a6aa64b0cc refactor: tweaks 2019-11-22 23:32:53 -05:00
Evan You
1b8236615e feat(transition): handle persisted mode 2019-11-22 23:21:53 -05:00
Evan You
24b4120c21 types: fix dts 2019-11-22 18:09:26 -05:00
Evan You
5c691aebfd feat(transition): handle cancel hooks 2019-11-22 17:10:17 -05:00
Evan You
231b940103 chore: remove unnecessary type annotations 2019-11-22 15:35:41 -05:00
Evan You
be9b4b2527 feat(transition): handle transition classes when patching classes 2019-11-22 15:35:41 -05:00
Evan You
7859e4bce3 feat(transition): CSS transition for runtime-dom 2019-11-22 15:35:41 -05:00
ztplz
2d40466d35 chore: remove unused parameter type definitions (#481) 2019-11-22 15:35:58 -05:00
Evan You
21c41b3228 types: fix Transition exported typing 2019-11-21 10:21:09 -05:00
Evan You
79f23a2f77 feat(transition): support component child 2019-11-20 22:46:32 -05:00
Evan You
93561b080e feat(transition): base transition component 2019-11-20 22:46:32 -05:00
Evan You
061a7576de build: mark maxCRNameLength computation as pure 2019-11-19 19:04:59 -05:00
likui
1efb35e324 fix(compiler-sfc): should ignore nodes with no children (#464) 2019-11-19 09:10:59 -05:00
QuincyChen
4e538ac465 feat(compiler-sfc): add cache for parsing sfc (#453) 2019-11-18 13:29:04 -05:00
Evan You
9e16ea3d30 test: update snapshots 2019-11-17 21:29:12 -05:00
Evan You
e89d009937 fix(compiler): include createTextVNode helper for hoisted static content (fix #465) 2019-11-17 21:26:25 -05:00
JiZhi
f838715b7c test(runtime-core): add tests for scheduler (#462) 2019-11-16 16:32:06 -05:00
Evan You
1de072567d perf(compiler): pre-compute maxCRNameLength for perf 2019-11-16 16:19:47 -05:00
Gabriel Loiácono
2780e0df4c perf(compiler-core): add perf optimization to parseText (#458) 2019-11-15 17:48:01 -05:00
Evan You
353b06df77 perf(compiler): should only perform assertions during tests
Compiler assertions are made to ensure implementation correctness,
but they have performance costs that should not affect users
during development.
2019-11-15 17:29:08 -05:00
Evan You
51d57b4566 perf(compiler): minor perf tweaks 2019-11-15 16:47:55 -05:00
Evan You
4fef8f342a perf(compiler): improve perf of parseTextData 2019-11-15 16:17:52 -05:00
Gabriel Loiácono
96623d0d52 perf(compiler-dom): generate modifiers in a function (#459) 2019-11-15 15:37:02 -05:00
JiZhi
aa6c67ee2e fix(scheduler): warn recursive updates in postFlushCbs as well (#456) 2019-11-14 12:06:23 -05:00
Evan You
4b2610c468 fix: handle empty lines in codeframe 2019-11-14 11:50:16 -05:00
likui
7f6abda6dd feat(compiler-sfc): warn duplicate block (#451) 2019-11-14 11:50:13 -05:00
Cédric Exbrayat
8688acc36f refactor(runtime-dom): avoid unnecessary checks in patchDOMProp (#452) 2019-11-14 11:27:23 -05:00
ztplz
8e8397374c chore: remove useless code (#447) 2019-11-14 11:23:04 -05:00
Cédric Exbrayat
fe66194a77 feat(vModel): handle true-value and false-value for checkbox (#449) 2019-11-12 16:24:39 -05:00
Evan You
08bf9976ae types: ensure props are readonly 2019-11-09 18:40:25 -05:00
张晨成
f2cdc82be3 chore: fix typo (#439) 2019-11-08 22:41:55 -05:00
Evan You
2b2727e62c feat(runtime-dom/style): support CSS variables and auto prefixing 2019-11-08 22:38:04 -05:00
Cr
34e2725e9b feat(runtime-dom): support !important for patchStyle. (#422) 2019-11-08 22:06:53 -05:00
ztplz
3b8566149a chore: improve type (#438) 2019-11-08 21:32:22 -05:00
Evan You
7fa676e55f feat(v-on): adjust key modifier behavior to match 2.x 2019-11-08 17:50:59 -05:00
Evan You
61d8941692 types(reactivity): ref type should not expose _isRef 2019-11-08 13:29:43 -05:00
Carlos Rodrigues
68ad302714 types(reactivity): add support for tuples in ref unwrapping (#436) 2019-11-08 12:52:24 -05:00
QuincyChen
d7d87622ce refactor: use isArray function from shared (#441) 2019-11-08 09:52:24 -05:00
ztplz
bc053f05cd chore: use const instead of let (#437) 2019-11-07 23:35:22 -05:00
Evan You
f178874ace fix(v-model): generate separate modifiers for v-model with args 2019-11-07 09:40:34 -05:00
Carlos Rodrigues
c53ca29ea1 test(reactivity): Add check if the child array gets unwrap (#434) 2019-11-07 09:28:49 -05:00
ztplz
f9fb43f2e2 chore: fix typo (#432) 2019-11-07 09:53:32 +01:00
Evan You
afdca88bf3 chore: remove useless type [ci skip] 2019-11-06 22:35:56 -05:00
Evan You
68f28c2667 refactor: rename files 2019-11-06 22:27:19 -05:00
Evan You
7031e6a07a feat: (wip) setup compiler-sfc 2019-11-06 21:58:15 -05:00
Evan You
4b739e3bc0 fix(compiler-core): should not condense whitespace in RAWTEXT mode 2019-11-06 20:52:19 -05:00
Evan You
d7eab51315 refactor: move dom tag config to shared
Otherwise runtime-dom cjs & esm builds will import compiler-dom
2019-11-06 15:22:46 -05:00
Evan You
acbbe3298c refactor: move codeframe to @vue/shared 2019-11-06 15:13:15 -05:00
Evan You
d9c6ff372c feat(core): allow passing explicit refs via props 2019-11-06 12:51:26 -05:00
Evan You
e79c918676 feat(inject): allow usage in functional components 2019-11-06 12:51:26 -05:00
Evan You
c61e5463fa feat: warn duplicate plugin installations 2019-11-05 10:49:15 -05:00
Chester
2d5f9b58ac refactor: skip destructuring when use with (#425) 2019-11-05 10:45:04 -05:00
Junyan
a02820d7e0 feat: warn when toRefs() receives non-reactive object (#430) 2019-11-05 10:44:28 -05:00
Evan You
98e9b769e6 feat(compiler): support keep-alive in templates 2019-11-05 10:26:56 -05:00
Evan You
dfc7c0f12a refactor: adjust internal vnode types + more dts tests 2019-11-04 18:38:55 -05:00
Evan You
957d3a0547 refactor: portal should not expect ref target 2019-11-04 14:42:47 -05:00
sh7dm
1a361e2e71 test(createRenderer): add tests for portal and fix found bugs 2019-11-04 14:37:50 -05:00
Dmitry Sharshakov
4b9483fd5e feat(compiler): compile suspense children as slots (#419) 2019-11-04 14:35:00 -05:00
IMGSS
d70497c0d4 chore: fix broken link (#420) 2019-11-04 14:33:24 -05:00
Evan You
e1d25e3537 feat: show fragment ids in dev 2019-11-04 14:28:01 -05:00
Evan You
300a705221 refactor: use __TEST__ flag 2019-11-04 14:28:01 -05:00
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