Commit Graph

41 Commits

Author SHA1 Message Date
Evan You 6f43c4b516 wip(ssr): vdom serialization 2020-01-28 18:48:27 -05:00
Evan You cee36ad028 wip(ssr): render real components 2020-01-27 16:00:17 -05:00
Evan You da25517377 wip(ssr): initial work on server-renderer 2020-01-27 16:00:17 -05:00
Evan You c07751fd36 refactor: adjust `createApp` related API signatures
BREAKING CHANGE: `createApp` API has been adjusted.

  - `createApp()` now accepts the root component, and optionally a props
  object to pass to the root component.
  - `app.mount()` now accepts a single argument (the root container)
  - `app.unmount()` no longer requires arguments.

  New behavior looks like the following:

  ``` js
  const app = createApp(RootComponent)
  app.mount('#app')
  app.unmount()
  ```
2020-01-27 16:00:17 -05:00
Evan You 4f06eebc1c fix(dom): fix <svg> and <foreignObject> mount and updates 2020-01-21 11:32:33 -05:00
Evan You 035b6560f7 fix(runtime-core): isSVG check should also apply for patch branch
fix #639
2020-01-20 11:55:18 -05:00
Evan You c35fea3d60 fix(runtime-core): condition for parent node check should be any different nodes
fix #622
2020-01-16 16:21:37 -05:00
Evan You 2e9726e6a2 fix(runtime-core/renderer): fix v-if toggle inside blocks
Should check both branches for parent container access.
Fix #604. Close #607.
2020-01-13 17:31:22 -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
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 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 d6acb9c073 fix(hmr): force full diff on HMR 2019-12-13 17:57:21 -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 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 c97d83aff2 refactor(runtime-core): tweak component proxy implementation 2019-12-10 11:14:29 -05:00
Evan You 24f6d63c6a fix(core): use correct parent for v-if toggle 2019-12-01 23:42:14 -05:00
fisker Cheung b87c05159b style(runtime-core): remove a unnecessary continue (#505) 2019-11-28 10:45:48 -05:00
Evan You 32602ccee1 test(transition): in-out, appear & persisted 2019-11-27 17:54:41 -05:00
Evan You c6fb506fc0 feat(transition): compat with keep-alive 2019-11-25 17:35:15 -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 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 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
Evan You e1d25e3537 feat: show fragment ids in dev 2019-11-04 14:28:01 -05: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