]> git.ipfire.org Git - thirdparty/vuejs/core.git/log
thirdparty/vuejs/core.git
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

5 years agotest(compiler-ssr): v-for tests
Evan You [Tue, 4 Feb 2020 01:47:41 +0000 (20:47 -0500)] 
test(compiler-ssr): v-for tests

5 years agowip(ssr): v-for
Evan You [Mon, 3 Feb 2020 23:30:56 +0000 (18:30 -0500)] 
wip(ssr): v-for

5 years agorefactor(ssr): adjust helper structure + renderList
Evan You [Mon, 3 Feb 2020 23:16:09 +0000 (18:16 -0500)] 
refactor(ssr): adjust helper structure + renderList

5 years agowip(ssr): do not generate commas between statements
Evan You [Mon, 3 Feb 2020 22:56:10 +0000 (17:56 -0500)] 
wip(ssr): do not generate commas between statements

5 years agowip(ssr): ssr helper codegen
Evan You [Mon, 3 Feb 2020 22:47:06 +0000 (17:47 -0500)] 
wip(ssr): ssr helper codegen

5 years agochore: remove stale files
Evan You [Mon, 3 Feb 2020 20:52:38 +0000 (15:52 -0500)] 
chore: remove stale files

5 years agowip(compiler-ssr): v-if
Evan You [Mon, 3 Feb 2020 20:51:41 +0000 (15:51 -0500)] 
wip(compiler-ssr): v-if

5 years agowip(compiler-ssr): v-html, v-text & textarea value
Evan You [Mon, 3 Feb 2020 16:46:14 +0000 (11:46 -0500)] 
wip(compiler-ssr): v-html, v-text & textarea value

5 years agobuild(deps-dev): bump @rollup/plugin-replace from 2.3.0 to 2.3.1
dependabot-preview[bot] [Mon, 3 Feb 2020 08:44:36 +0000 (08:44 +0000)] 
build(deps-dev): bump @rollup/plugin-replace from 2.3.0 to 2.3.1

Bumps [@rollup/plugin-replace](https://github.com/rollup/plugins) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/replace-v2.3.0...replace-v2.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years agobuild(deps-dev): bump @rollup/plugin-json from 4.0.1 to 4.0.2
dependabot-preview[bot] [Mon, 3 Feb 2020 08:39:44 +0000 (08:39 +0000)] 
build(deps-dev): bump @rollup/plugin-json from 4.0.1 to 4.0.2

Bumps [@rollup/plugin-json](https://github.com/rollup/plugins) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/url-v4.0.1...url-v4.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years agowip(compiler-ssr): text and interpolation
Evan You [Mon, 3 Feb 2020 03:28:54 +0000 (22:28 -0500)] 
wip(compiler-ssr): text and interpolation

5 years agorefactor(ssr): move escapeHtml to shared
Evan You [Mon, 3 Feb 2020 03:08:20 +0000 (22:08 -0500)] 
refactor(ssr): move escapeHtml to shared

5 years agotest(compiler-ssr): test for ssr element transform
Evan You [Mon, 3 Feb 2020 02:47:10 +0000 (21:47 -0500)] 
test(compiler-ssr): test for ssr element transform

5 years agotest(compiler-core): test TempalteLiteral and IfStatement codegen
Evan You [Mon, 3 Feb 2020 02:35:28 +0000 (21:35 -0500)] 
test(compiler-core): test TempalteLiteral and IfStatement codegen

5 years agochore: remove stale file
Evan You [Sun, 2 Feb 2020 05:06:49 +0000 (00:06 -0500)] 
chore: remove stale file

5 years agowip(ssr): initial scaffold for compiler-ssr
Evan You [Sun, 2 Feb 2020 05:05:27 +0000 (00:05 -0500)] 
wip(ssr): initial scaffold for compiler-ssr

5 years agorefactor(compiler-core): improve template type handling
Evan You [Fri, 31 Jan 2020 22:20:52 +0000 (17:20 -0500)] 
refactor(compiler-core): improve template type handling

5 years agofix(compiler-core): only check is prop on `<component>`
Evan You [Fri, 31 Jan 2020 21:15:05 +0000 (16:15 -0500)] 
fix(compiler-core): only check is prop on `<component>`