]> git.ipfire.org Git - thirdparty/vuejs/core.git/log
thirdparty/vuejs/core.git
5 years agochore: remove redundant Non-Null Assertion (#728)
夜宴 [Sat, 15 Feb 2020 16:33:22 +0000 (00:33 +0800)] 
chore: remove redundant Non-Null Assertion (#728)

5 years agofix(ssr): render components returning render function from setup (#720)
Dmitry Sharshakov [Sat, 15 Feb 2020 16:11:55 +0000 (19:11 +0300)] 
fix(ssr): render components returning render function from setup (#720)

5 years agochore: fix snapshots
Evan You [Sat, 15 Feb 2020 16:10:52 +0000 (11:10 -0500)] 
chore: fix snapshots

5 years agofeat(ssr): support portal hydration
Evan You [Sat, 15 Feb 2020 02:04:08 +0000 (21:04 -0500)] 
feat(ssr): support portal hydration

5 years agofix(ssr): fix class/style rendering + ssrRenderComponent export name
Evan You [Sat, 15 Feb 2020 01:48:06 +0000 (20:48 -0500)] 
fix(ssr): fix class/style rendering + ssrRenderComponent export name

5 years agochore: fix hoistStatic exhaustive check
Evan You [Fri, 14 Feb 2020 21:41:55 +0000 (16:41 -0500)] 
chore: fix hoistStatic exhaustive check

5 years agotypes: avoid duplicate type declarations for renderer closure functions
Evan You [Fri, 14 Feb 2020 21:25:41 +0000 (16:25 -0500)] 
types: avoid duplicate type declarations for renderer closure functions

5 years agofix(compiler-core): should apply text transform to if branches
Evan You [Fri, 14 Feb 2020 20:57:14 +0000 (15:57 -0500)] 
fix(compiler-core): should apply text transform to if branches

fix #725

5 years agotypes: cleanup renderer & hydration typing
Evan You [Fri, 14 Feb 2020 17:33:32 +0000 (12:33 -0500)] 
types: cleanup renderer & hydration typing

5 years agoperf: prevent renderer hot functions being inlined by minifiers
Evan You [Fri, 14 Feb 2020 08:22:52 +0000 (03:22 -0500)] 
perf: prevent renderer hot functions being inlined by minifiers

Terser will aggressively inline hot functions in renderer.ts in order
to reduce "function" declarations, but the inlining leads to performance
overhead (small, but noticeable in benchmarks).

Since we cannot control user's minifier options, we have to avoid the
deopt in the source code by using arrow functions in hot paths.

5 years agobuild(deps-dev): bump rollup from 1.31.0 to 1.31.1
dependabot-preview[bot] [Fri, 14 Feb 2020 07:50:21 +0000 (07:50 +0000)] 
build(deps-dev): bump rollup from 1.31.0 to 1.31.1

Bumps [rollup](https://github.com/rollup/rollup) from 1.31.0 to 1.31.1.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v1.31.0...v1.31.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years agorefactor(types): move shapeFlags to shared
Evan You [Fri, 14 Feb 2020 06:36:42 +0000 (01:36 -0500)] 
refactor(types): move shapeFlags to shared

5 years agorefactor(ssr): make hydration logic tree-shakeable
Evan You [Fri, 14 Feb 2020 06:30:08 +0000 (01:30 -0500)] 
refactor(ssr): make hydration logic tree-shakeable

5 years agorefactor: use explicit exports for runtime-core
Evan You [Fri, 14 Feb 2020 05:13:54 +0000 (00:13 -0500)] 
refactor: use explicit exports for runtime-core

5 years agowip(ssr): component hydration
Evan You [Fri, 14 Feb 2020 04:31:03 +0000 (23:31 -0500)] 
wip(ssr): component hydration

5 years agobuild: avoid runtime wildcard import in global build
Evan You [Thu, 13 Feb 2020 23:50:36 +0000 (18:50 -0500)] 
build: avoid runtime wildcard import in global build

5 years agofix(compiler-core): should not hoist element with cached + merged event handlers
Evan You [Thu, 13 Feb 2020 23:34:08 +0000 (18:34 -0500)] 
fix(compiler-core): should not hoist element with cached + merged event handlers

5 years agowip(ssr): adjust event hydration flag
Evan You [Thu, 13 Feb 2020 23:28:40 +0000 (18:28 -0500)] 
wip(ssr): adjust event hydration flag

5 years agowip(ssr): basic element hydration
Evan You [Thu, 13 Feb 2020 22:47:00 +0000 (17:47 -0500)] 
wip(ssr): basic element hydration

5 years agofix(runtime-core): handle component updates with only class/style bindings
Evan You [Thu, 13 Feb 2020 22:27:52 +0000 (17:27 -0500)] 
fix(runtime-core): handle component updates with only class/style bindings

5 years agofix(types): ensure correct oldValue typing based on lazy option
Evan You [Thu, 13 Feb 2020 17:08:21 +0000 (12:08 -0500)] 
fix(types): ensure correct oldValue typing based on lazy option

close #719

5 years agorefactor(security): mark potential unsafe code paths
Evan You [Wed, 12 Feb 2020 20:00:32 +0000 (15:00 -0500)] 
refactor(security): mark potential unsafe code paths

5 years agofeat(compiler-dom): handle constant expressions when stringifying static content
Evan You [Wed, 12 Feb 2020 20:00:00 +0000 (15:00 -0500)] 
feat(compiler-dom): handle constant expressions when stringifying static content

5 years agorefactor(compiler-core): use more concise marker for compiled slots
Evan You [Wed, 12 Feb 2020 18:45:35 +0000 (13:45 -0500)] 
refactor(compiler-core): use more concise marker for compiled slots

5 years agofeat(compiler): mark hoisted trees with patchFlag
Evan You [Wed, 12 Feb 2020 18:31:29 +0000 (13:31 -0500)] 
feat(compiler): mark hoisted trees with patchFlag

5 years agochore: fix import path + comment
Evan You [Wed, 12 Feb 2020 17:12:53 +0000 (12:12 -0500)] 
chore: fix import path + comment

5 years agofeat(compiler-dom/runtime-dom): stringify eligible static trees
Evan You [Wed, 12 Feb 2020 16:56:42 +0000 (11:56 -0500)] 
feat(compiler-dom/runtime-dom): stringify eligible static trees

5 years agotest: test updates for d40c642
Evan You [Tue, 11 Feb 2020 23:40:21 +0000 (18:40 -0500)] 
test: test updates for d40c642

5 years agorefactor(compiler-core): use dedicated node type for element codegen
Evan You [Tue, 11 Feb 2020 23:12:56 +0000 (18:12 -0500)] 
refactor(compiler-core): use dedicated node type for element codegen

Previously codegen node for elements and components used raw expressions,
which leads to multiple permutations of AST shapes based on whether the
node is a block or has directives. The complexity is spread across the
entire compiler and occurs whenever a transform needs to deal with
element codegen nodes.

This refactor centralizes the handling of all possible permutations
into the codegen phase, so that all elements/components will have a
consistent node type throughout the transform phase.

The refactor is split into two commits (with test updates in a separate
one) so changes can be easier to inspect.

5 years agofix(runtime-core/scheduler): invalidate job (#717)
Yang Mingshan [Tue, 11 Feb 2020 12:30:25 +0000 (20:30 +0800)] 
fix(runtime-core/scheduler): invalidate job (#717)

5 years agorefactor(compiler-core): hoist static text calls between elements
Evan You [Mon, 10 Feb 2020 23:32:11 +0000 (18:32 -0500)] 
refactor(compiler-core): hoist static text calls between elements

5 years agofix(compiler): fix v-for fragment openBlock argument
Evan You [Mon, 10 Feb 2020 23:19:49 +0000 (18:19 -0500)] 
fix(compiler): fix v-for fragment openBlock argument

5 years agorefactor(compiler): provide _ctx and _cache via arguments
Evan You [Mon, 10 Feb 2020 22:29:12 +0000 (17:29 -0500)] 
refactor(compiler): provide _ctx and _cache via arguments

5 years agofix(compiler-core): fix keep-alive when used in templates
Evan You [Mon, 10 Feb 2020 21:49:37 +0000 (16:49 -0500)] 
fix(compiler-core): fix keep-alive when used in templates

fix #715

5 years agofeat(server-renderer): support on-the-fly template compilation (#707)
Dmitry Sharshakov [Mon, 10 Feb 2020 19:37:35 +0000 (22:37 +0300)] 
feat(server-renderer): support on-the-fly template compilation (#707)

5 years agofix(runtime-core): rework vnode hooks handling
Evan You [Mon, 10 Feb 2020 18:15:36 +0000 (13:15 -0500)] 
fix(runtime-core): rework vnode hooks handling

- peroperly support directive on components (e.g. <foo v-show="x">)
- consistently invoke raw vnode hooks on component vnodes (fix #684)

5 years agofix(runtime-core/scheduler): avoid duplicate updates of child component
Evan You [Mon, 10 Feb 2020 18:09:15 +0000 (13:09 -0500)] 
fix(runtime-core/scheduler): avoid duplicate updates of child component

5 years agofix(runtime-core): should not return early on text patchFlag
Evan You [Mon, 10 Feb 2020 17:06:36 +0000 (12:06 -0500)] 
fix(runtime-core): should not return early on text patchFlag

fix vnode updated hook on elements with dynamic text children

5 years agofeat(compiler-core/v-on): support @vnode-xxx usage for vnode hooks
Evan You [Mon, 10 Feb 2020 16:00:37 +0000 (11:00 -0500)] 
feat(compiler-core/v-on): support @vnode-xxx usage for vnode hooks

5 years agofix(transition-group): handle multiple move-classes (#679)
Jonas [Mon, 10 Feb 2020 14:36:19 +0000 (15:36 +0100)] 
fix(transition-group): handle multiple move-classes (#679)

fix #678

5 years agotest(compiler-sfc): add real tests for source maps (#704)
Dmitry Sharshakov [Mon, 10 Feb 2020 14:34:13 +0000 (17:34 +0300)] 
test(compiler-sfc): add real tests for source maps (#704)

5 years agochore(compiler-core/codegen): avoid generate indent spaces of empty lines. (#701)
djy0 [Mon, 10 Feb 2020 14:33:04 +0000 (22:33 +0800)] 
chore(compiler-core/codegen): avoid generate indent spaces of empty lines. (#701)

5 years agotest(compiler-ssr): fix typo (#713)
djy0 [Mon, 10 Feb 2020 14:20:07 +0000 (22:20 +0800)] 
test(compiler-ssr): fix typo (#713)

5 years agorefactor: ensure setup context.emit always point to intenral emit
Evan You [Mon, 10 Feb 2020 02:47:16 +0000 (21:47 -0500)] 
refactor: ensure setup context.emit always point to intenral emit

5 years agofix: remove effect from public API
Evan You [Mon, 10 Feb 2020 02:43:54 +0000 (21:43 -0500)] 
fix: remove effect from public API

close #712

5 years agofeat(runtime-core/reactivity): expose shallowReactive (#711)
jods [Mon, 10 Feb 2020 02:42:34 +0000 (03:42 +0100)] 
feat(runtime-core/reactivity): expose shallowReactive (#711)

5 years agochore: add GitHub sponsor button config (#708) [ci skip]
James George [Sun, 9 Feb 2020 20:45:30 +0000 (02:15 +0530)] 
chore: add GitHub sponsor button config (#708) [ci skip]

5 years agowip(ssr): use consistent attr key behavior in compiler
Evan You [Sun, 9 Feb 2020 18:19:10 +0000 (13:19 -0500)] 
wip(ssr): use consistent attr key behavior in compiler

5 years agoperf(reactivity): better computed tracking (#710)
jods [Sun, 9 Feb 2020 20:25:17 +0000 (21:25 +0100)] 
perf(reactivity): better computed tracking (#710)

5 years agochore(shared): fix comment (#705) [ci skip]
hareku [Sun, 9 Feb 2020 18:12:16 +0000 (03:12 +0900)] 
chore(shared): fix comment (#705) [ci skip]

5 years agotest: update tests and snapshots for helper prefixing
Evan You [Sat, 8 Feb 2020 00:04:55 +0000 (19:04 -0500)] 
test: update tests and snapshots for helper prefixing

5 years agorefactor(compiler): prefix all imported helpers to avoid scope collision
Evan You [Fri, 7 Feb 2020 23:53:39 +0000 (18:53 -0500)] 
refactor(compiler): prefix all imported helpers to avoid scope collision

5 years agobuild: drop unnecessary codegen branch for global build
Evan You [Fri, 7 Feb 2020 23:00:30 +0000 (18:00 -0500)] 
build: drop unnecessary codegen branch for global build

5 years agofix(runtime-core): fix ShapeFlags tree shaking
Evan You [Fri, 7 Feb 2020 22:18:12 +0000 (17:18 -0500)] 
fix(runtime-core): fix ShapeFlags tree shaking

5 years agofix(runtime-core): fix keep-alive tree-shaking
Evan You [Fri, 7 Feb 2020 22:00:39 +0000 (17:00 -0500)] 
fix(runtime-core): fix keep-alive tree-shaking

5 years agofix(compiler-dom): fix duplicated transforms
Evan You [Fri, 7 Feb 2020 19:24:56 +0000 (14:24 -0500)] 
fix(compiler-dom): fix duplicated transforms

5 years agowip(ssr): proper scope analysis for ssr vnode slot fallback
Evan You [Fri, 7 Feb 2020 18:56:18 +0000 (13:56 -0500)] 
wip(ssr): proper scope analysis for ssr vnode slot fallback

5 years agowip(ssr): ssr slot vnode fallback
Evan You [Fri, 7 Feb 2020 06:06:51 +0000 (01:06 -0500)] 
wip(ssr): ssr slot vnode fallback

5 years agoworkflow: log compile time in template explorer
Evan You [Fri, 7 Feb 2020 02:47:07 +0000 (21:47 -0500)] 
workflow: log compile time in template explorer

5 years agochore: comment typo
Evan You [Thu, 6 Feb 2020 23:31:36 +0000 (18:31 -0500)] 
chore: comment typo

5 years agowip(ssr): generate correct component code
Evan You [Thu, 6 Feb 2020 23:03:14 +0000 (18:03 -0500)] 
wip(ssr): generate correct component code

5 years agowip(ssr): scopeId in slots
Evan You [Thu, 6 Feb 2020 22:45:34 +0000 (17:45 -0500)] 
wip(ssr): scopeId in slots

5 years agowip(ssr): element scopeId
Evan You [Thu, 6 Feb 2020 21:51:26 +0000 (16:51 -0500)] 
wip(ssr): element scopeId

5 years agofeat(compiler): warn invalid children for transition and keep-alive
Evan You [Thu, 6 Feb 2020 20:53:26 +0000 (15:53 -0500)] 
feat(compiler): warn invalid children for transition and keep-alive

5 years agoworkflow: adjust size script
Evan You [Thu, 6 Feb 2020 20:52:56 +0000 (15:52 -0500)] 
workflow: adjust size script

5 years agowip(compiler-ssr): built-in component fallthrough
Evan You [Thu, 6 Feb 2020 20:29:02 +0000 (15:29 -0500)] 
wip(compiler-ssr): built-in component fallthrough

5 years agobuild: reduce compiler minified size
Evan You [Thu, 6 Feb 2020 20:10:21 +0000 (15:10 -0500)] 
build: reduce compiler minified size

5 years agobuild(deps-dev): bump puppeteer from 2.1.0 to 2.1.1
dependabot-preview[bot] [Thu, 6 Feb 2020 17:10:35 +0000 (17:10 +0000)] 
build(deps-dev): bump puppeteer from 2.1.0 to 2.1.1

Bumps [puppeteer](https://github.com/puppeteer/puppeteer) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Commits](https://github.com/puppeteer/puppeteer/compare/v2.1.0...v2.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years agotest: update snapshots
Evan You [Thu, 6 Feb 2020 17:09:09 +0000 (12:09 -0500)] 
test: update snapshots

5 years agorefactor(ssr): prefix ssr helpers
Evan You [Thu, 6 Feb 2020 17:07:25 +0000 (12:07 -0500)] 
refactor(ssr): prefix ssr helpers

5 years agowip(compiler-ssr): component slots
Evan You [Thu, 6 Feb 2020 17:05:53 +0000 (12:05 -0500)] 
wip(compiler-ssr): component slots

5 years agoworkflow: improve template-explorer local load speed
Evan You [Thu, 6 Feb 2020 15:22:16 +0000 (10:22 -0500)] 
workflow: improve template-explorer local load speed

5 years agowip(ssr): basic components
Evan You [Thu, 6 Feb 2020 04:07:23 +0000 (23:07 -0500)] 
wip(ssr): basic components

5 years agochore: update contributing guide [ci skip]
Evan You [Thu, 6 Feb 2020 02:27:03 +0000 (21:27 -0500)] 
chore: update contributing guide [ci skip]

5 years agotest: increase e2e tests timeout
Evan You [Thu, 6 Feb 2020 02:10:43 +0000 (21:10 -0500)] 
test: increase e2e tests timeout

5 years agowip(srr): slot outlet
Evan You [Thu, 6 Feb 2020 02:04:40 +0000 (21:04 -0500)] 
wip(srr): slot outlet

5 years agochore: fix snapshot
Evan You [Wed, 5 Feb 2020 22:29:41 +0000 (17:29 -0500)] 
chore: fix snapshot

5 years agowip(ssr): v-model w/ dynamic type & props
Evan You [Wed, 5 Feb 2020 22:01:00 +0000 (17:01 -0500)] 
wip(ssr): v-model w/ dynamic type & props

5 years agofix(v-model): should use dynamic directive on input with dynamic v-bind
Evan You [Wed, 5 Feb 2020 20:21:47 +0000 (15:21 -0500)] 
fix(v-model): should use dynamic directive on input with dynamic v-bind

5 years agowip(ssr): should only render renderable values
Evan You [Wed, 5 Feb 2020 20:21:20 +0000 (15:21 -0500)] 
wip(ssr): should only render renderable values

5 years agotest: fix tests w/ nested CompoundExpressions
Evan You [Wed, 5 Feb 2020 19:30:34 +0000 (14:30 -0500)] 
test: fix tests w/ nested CompoundExpressions

5 years agowip(compiler-ssr): v-model static types + textarea
Evan You [Wed, 5 Feb 2020 19:23:03 +0000 (14:23 -0500)] 
wip(compiler-ssr): v-model static types + textarea

5 years agobuild: drop compiler error emit code in browser production build
Evan You [Wed, 5 Feb 2020 19:21:09 +0000 (14:21 -0500)] 
build: drop compiler error emit code in browser production build

5 years agofix(compiler-ssr): import helpers from correct packages
Evan You [Wed, 5 Feb 2020 16:20:50 +0000 (11:20 -0500)] 
fix(compiler-ssr): import helpers from correct packages

5 years agochore: fix snapshots
Evan You [Wed, 5 Feb 2020 03:56:53 +0000 (22:56 -0500)] 
chore: fix snapshots

5 years agowip(ssr): handle `<textarea>` with dynamic key v-bind
Evan You [Wed, 5 Feb 2020 03:49:47 +0000 (22:49 -0500)] 
wip(ssr): handle `<textarea>` with dynamic key v-bind

5 years agowip(compiler-ssr): v-show
Evan You [Wed, 5 Feb 2020 02:03:16 +0000 (21:03 -0500)] 
wip(compiler-ssr): v-show

5 years agotest(ssr): test renderAttr
Evan You [Tue, 4 Feb 2020 23:42:13 +0000 (18:42 -0500)] 
test(ssr): test renderAttr

5 years agowip(compiler-ssr): dynamic v-bind + class/style merging
Evan You [Tue, 4 Feb 2020 23:37:23 +0000 (18:37 -0500)] 
wip(compiler-ssr): dynamic v-bind + class/style merging

5 years agowip(compiler-ssr): v-bind with static keys
Evan You [Tue, 4 Feb 2020 21:47:12 +0000 (16:47 -0500)] 
wip(compiler-ssr): v-bind with static keys

5 years agoworkflow: add ssr mode in template explorer
Evan You [Tue, 4 Feb 2020 20:59:37 +0000 (15:59 -0500)] 
workflow: add ssr mode in template explorer

5 years agowip(ssr): fix index
Evan You [Tue, 4 Feb 2020 20:59:26 +0000 (15:59 -0500)] 
wip(ssr): fix index

5 years agowip(ssr): remove cjs codegen mode
Evan You [Tue, 4 Feb 2020 20:58:54 +0000 (15:58 -0500)] 
wip(ssr): remove cjs codegen mode

5 years agowip(ssr): v-bind basic usage
Evan You [Tue, 4 Feb 2020 17:20:51 +0000 (12:20 -0500)] 
wip(ssr): v-bind basic usage

5 years agofeat(reactivity): add shallowReactive function (#689)
Dmitry Sharshakov [Tue, 4 Feb 2020 15:15:27 +0000 (18:15 +0300)] 
feat(reactivity): add shallowReactive function (#689)

5 years agofix(compiler-sfc): handle empty nodes with src attribute (#695)
Jason [Tue, 4 Feb 2020 15:03:32 +0000 (23:03 +0800)] 
fix(compiler-sfc): handle empty nodes with src attribute (#695)

5 years agofix(runtime-core/watch): trigger watcher with undefined as initial value (#687)
Eduardo San Martin Morote [Tue, 4 Feb 2020 14:59:04 +0000 (15:59 +0100)] 
fix(runtime-core/watch): trigger watcher with undefined as initial value (#687)

Fix #683

5 years agowip(ssr): fix naming for runtime helpers (#694)
likui [Tue, 4 Feb 2020 14:24:49 +0000 (22:24 +0800)] 
wip(ssr): fix naming for runtime helpers (#694)

5 years agochore: update runtime-dom/README example to latest signature (#693) [ci skip]
Jacek Karczmarczyk [Tue, 4 Feb 2020 14:24:29 +0000 (21:24 +0700)] 
chore: update runtime-dom/README example to latest signature (#693) [ci skip]

5 years agochore: fix test types
Evan You [Tue, 4 Feb 2020 03:21:45 +0000 (22:21 -0500)] 
chore: fix test types