Commit Graph

1192 Commits

Author SHA1 Message Date
djy0 ad2a0bde98 perf(compiler-core): simplify `advancePositionWithMutation` (#564) 2019-12-30 11:25:06 -05:00
Yang Mingshan 3980ad65de types: exports watch api types (#562) 2019-12-30 11:19:57 -05:00
Evan You 7df5e70c83 types: accept defineComponent return types in app.mount 2019-12-24 11:04:44 -05:00
Evan You 59c595c1e8 refactor: use named export for compiled render function 2019-12-24 11:04:44 -05:00
宋铄运 4d20981eb0 fix(runtime-core): pass options to plugins (#561) 2019-12-24 10:33:47 -05:00
Evan You 6614f21bf4 chore: further edit formats and include it in vue package readme [ci skip] 2019-12-23 10:28:40 -05:00
Evan You d6275a3c31 fix(sfc): treat custom block content as raw text 2019-12-22 21:09:39 -05:00
Evan You 90ddb7c260 refactor: expose parse in compiler-dom, improve sfc parse error handling 2019-12-22 19:44:21 -05:00
Evan You 7d436ab59a fix: mounting new children 2019-12-22 16:24:24 -05:00
Evan You 2fdb499bd9 fix(fragment): perform direct remove when removing fragments
This avoids trying to grab .el from hoisted child nodes (which can
be created by another instance), and also skips transition check
since fragment children cannot have transitions.
2019-12-22 16:15:16 -05:00
Evan You 47a6a84631 fix(core): clone mounted hoisted vnodes on patch
...since they may need to be checked as fragment child
2019-12-22 13:31:13 -05:00
Evan You eda495efd8 feat(hmr): root instance reload 2019-12-22 12:25:04 -05:00
Evan You c9b9ae3941 refactor: rename apiApp.ts -> apiCreateApp.ts 2019-12-22 11:27:40 -05:00
Chris Fritz 1c4cdd841d refactor(createComponent): rename to defineComponent (#549) 2019-12-22 10:58:12 -05:00
CodinCat 2e3c5aaf5f test(e2e): add test for svg example (#551) 2019-12-20 11:56:36 -05:00
Evan You 755c7b581c chore: mark get/set create calls pure 2019-12-20 11:16:46 -05:00
Evan You 0a4f306492 fix: shallowReadonly should keep reactive properties reactive
ref #552
2019-12-20 11:14:07 -05:00
Evan You 94d692b0cf test: fix tests after missing end tag error location fix 2019-12-20 10:10:08 -05:00
Evan You 362831d8ab fix(sfc): fix v-slotted attribute injection 2019-12-19 17:54:52 -05:00
Evan You 3a3a24d621 feat(sfc): accept inMap in compileTemplate() 2019-12-19 16:25:05 -05:00
Evan You 02c6d5c4e3 fix: codeframe marker should have min width of 1 2019-12-19 15:42:53 -05:00
Evan You d6da48a33f perf: optimize public properties access on componentProxy 2019-12-19 14:19:58 -05:00
Evan You c73d889235 test(sfc): test @media and @supports query for scoped css 2019-12-19 14:19:58 -05:00
Evan You bdbfead1e0 chore: adjust package.json 2019-12-19 14:19:58 -05:00
Evan You 9f52dce0d5 fix(renderer): should also use latest parent node when patching block child components 2019-12-18 17:09:28 -05:00
Evan You 3deb20df63 feat(watch): warn when using lazy with simple callback 2019-12-18 11:54:12 -05:00
Yang Mingshan c2c9c2b57e fix(watch): ignore lazy option in simple watch (#546)
* fix(watch): ignore lazy option in simple watch

* test: ignore lazy option in simple watch
2019-12-18 11:46:59 -05:00
djy0 fc48e43ac7 chore: fix typo [ci skip] (#547) 2019-12-18 11:45:28 -05:00
Evan You c1959fa64d build: set compiler-sfc peerDep on vue 2019-12-18 10:00:49 -05:00
Evan You d84cf3a538 feat(sfc): css modules support 2019-12-18 10:00:49 -05:00
CodinCat abfea8eb45 test(e2e): add test for grid example (#545) 2019-12-18 09:19:31 -05:00
Evan You 5cf7523787 build: export runtime-only build for bundlers by default in main vue package 2019-12-17 18:24:01 -05:00
Evan You 9550302df4 build: esm-bunlder builds should be considered browser builds 2019-12-17 17:34:10 -05:00
Evan You a894a350cd test(sfc): test scoped css compilation 2019-12-17 15:20:30 -05:00
Evan You b689ca6e85 test: test scopeId support 2019-12-17 12:31:38 -05:00
Evan You 3d16c0ea5a fix(runtime-test): output empty attrs without value in seralized output 2019-12-17 12:31:38 -05:00
Evan You 31ca7858bb feat(sfc): ::v-global() pseudo selector support 2019-12-17 12:31:38 -05:00
Evan You 8ea2101553 test: test hot module replacement 2019-12-17 12:31:38 -05:00
Evan You f194aa0eea feat(sfc): ::slotted selector support 2019-12-17 12:31:38 -05:00
Evan You 69c9dbc825 feat(sfc): scopeId runtime support 2019-12-17 12:31:38 -05:00
Evan You 04e11187b9 perf: cache string helpers 2019-12-17 12:31:38 -05:00
Evan You 51980afca2 feat(sfc): wip scopeId compiler support 2019-12-17 12:31:38 -05:00
Evan You b2c2d0590e refactor: extract SFCInternalOptions inteface 2019-12-17 12:31:38 -05:00
Evan You 35858cec8c build: adjust global names + allow inline overrides of build flags 2019-12-15 15:37:43 -05:00
Evan You 75113c8d3e test: fix tests 2019-12-14 22:28:54 -05:00
Evan You 2b178981bc refactor: move isRuntimeCompiled flag into component.ts 2019-12-14 22:15:38 -05:00
Evan You 46c5393224 perf(reactivity): optimize effect stack 2019-12-13 23:06:55 -05:00
Evan You 49a50d3c9c feat(compiler): accept line offset in codeframe 2019-12-13 18:01:04 -05:00
Evan You d6acb9c073 fix(hmr): force full diff on HMR 2019-12-13 17:57:21 -05:00
Evan You b15951e190 chore: remove line numbers from default errors 2019-12-13 17:28:12 -05:00
Evan You 865c1ce9ee feat(compiler-sfc): generate source map for template block 2019-12-13 13:22:30 -05:00
Evan You 9e757b5cc5 refactor(compiler-core): move compile into separate file 2019-12-13 13:22:15 -05:00
Evan You 8277d131c4 refactor(compiler): downgrade to source-map v6 for sync API 2019-12-13 12:56:31 -05:00
Evan You a0ee4fbc36 types: use more specific type names 2019-12-13 11:24:09 -05:00
Evan You fa5390fb6f fix(fragment): properly remove compiler generated fragments 2019-12-13 10:31:40 -05:00
Cr 6797e35703 chore: fix typos (#541) 2019-12-13 11:49:01 +01:00
Evan You 7431c2e46e fix(runtime-core): ensure $forceUpdate behavior consistency with 2.x 2019-12-12 22:12:45 -05:00
Evan You 2c3c65772b perf: optimize props resolution
Store the keys for props that need default or boolean casting
during normalization, so that later we only need to iterate
through this array instead of the entire props object.
2019-12-12 22:07:48 -05:00
Evan You c36941c498 fix(compiler-core): should apply text transform to <template v-for> children 2019-12-12 21:09:47 -05:00
Evan You 8ffd79c754 fix(compiler-core): handle template root and template v-if as stable fragments 2019-12-12 21:09:47 -05:00
Evan You f77ae132e5 feat(hmr): reload and force slot update on re-render 2019-12-12 21:09:47 -05:00
Evan You ef50c333ce fix(core): generate fragment root with patchFlag + optimize fragment w/ patchFlag 2019-12-12 21:09:47 -05:00
Evan You efe39db023 feat(runtime-core): hot module replacement 2019-12-12 21:09:47 -05:00
Evan You 3116b5d6c3 fix(runtime-core): initialize renderCache if not present 2019-12-12 21:09:47 -05:00
Evan You 5658f8b678 feat(compiler): expose generateCodeFrame 2019-12-12 21:09:47 -05:00
Evan You 3de7315b7a types: use RawSourceMap types 2019-12-12 21:09:46 -05:00
Evan You 5ecc77df5a chore: fix missed save 2019-12-11 10:39:29 -05:00
Evan You b983c68575 test(e2e): avoid relying on CDN + reduce debounce delay 2019-12-11 10:37:03 -05:00
Evan You 4d730f464d refactor: move runtime compile error handling to vue 2019-12-11 10:25:34 -05:00
Evan You c202bd6ac0 test(e2e): use better mocking strategy for commits example 2019-12-11 10:15:52 -05:00
CodinCat f48a4f71a7 test(e2e): add e2e test for commits example (#526)
* test(e2e): add e2e test for commits example

* test(e2e): add waitForResponse to enhance the test

* test(e2e): use mocks for commits test
2019-12-11 09:51:15 -05:00
Evan You d3d4fe84cd fix(vue): properly cache runtime compilation 2019-12-11 09:46:42 -05:00
宋铄运 559fa27185 test(compiler-sfc): more tests (#536) 2019-12-11 09:26:14 -05:00
CodinCat 532d3b68ab test(e2e): add e2e test for markdown example (#533) 2019-12-11 09:13:47 -05:00
Evan You 818bf17cb7 feat(compiler-sfc): use @vue/compiler-dom by default 2019-12-10 22:23:55 -05:00
Evan You 136ab753b3 build: adjust esm formats 2019-12-10 22:14:02 -05:00
Evan You 8ed04ed503 build: release script 2019-12-10 21:29:52 -05:00
Evan You cd5ba7cfcc build: remove lerna 2019-12-10 18:24:59 -05:00
Evan You 3e3188fa9f refactor: adjust sfc compiler options 2019-12-10 17:41:56 -05:00
Evan You 95b2cb6fd2 fix(compiler-core): should only parse interpolations in DATA text mode 2019-12-10 15:30:17 -05:00
Evan You 5cd1495767 refactor(compiler-core): centralize compiler options 2019-12-10 12:53:26 -05:00
Evan You 03301b264e workflow(template-explorer): fix cacheHandlers disabled state 2019-12-10 12:46:38 -05:00
Evan You c8c5b16ef7 feat(compiler-sfc): properly pass on options 2019-12-10 12:22:23 -05:00
宋铄运 0a14c04c81 feat(compiler-sfc): compile template WIP (#534) 2019-12-10 12:01:56 -05:00
Evan You b198a665cf workflow: add size-check package 2019-12-10 11:31:57 -05:00
Evan You c97d83aff2 refactor(runtime-core): tweak component proxy implementation 2019-12-10 11:14:29 -05:00
Haoqun Jiang d1527fbee4 test: add test for runtime-dom/modules/class (#75) 2019-12-09 14:52:20 -05:00
GCA 2383b45e32 chore: fix typo (#530) [ci skip] 2019-12-09 14:23:57 -05:00
Evan You e7e1314ccc test: fix warning 2019-12-09 14:23:01 -05:00
CodinCat 12ec62e688 test(e2e): add e2e test for tree example (#529) 2019-12-09 14:20:56 -05:00
Pocho 55e234816e types(compiler-sfc): use specific preprocessLang instead of string (#528) 2019-12-09 14:19:39 -05:00
CodinCat 9b5c4a2ec1 chore: fix debounce of markdown example (#525) [ci skip] 2019-12-09 14:16:44 -05:00
Cédric Exbrayat 65bfe0130c chore: fix grid composition example (#519) [ci skip]
Commit 27a72bd8f1 fixed the example but introduced a useless import.
2019-12-09 14:16:21 -05:00
Evan You c53fae987d feat(runtime-core): warn incorrect root props value (close #375) 2019-12-09 14:06:31 -05:00
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