]>
git.ipfire.org Git - thirdparty/vuejs/core.git/log
Xin Du (Clark) [Mon, 24 Feb 2020 16:23:35 +0000 (16:23 +0000)]
refactor(ssr): extract buffer resolving and resolvePortals (#771)
Evan You [Sat, 22 Feb 2020 07:28:56 +0000 (08:28 +0100)]
chore: changelog edits [ci skip]
Evan You [Sat, 22 Feb 2020 07:25:32 +0000 (08:25 +0100)]
release: v3.0.0-alpha.6
Evan You [Sat, 22 Feb 2020 07:19:10 +0000 (08:19 +0100)]
feat(runtime-core): add watchEffect API
BREAKING CHANGE: replae `watch(fn, options?)` with `watchEffect`
The `watch(fn, options?)` signature has been replaced by the new
`watchEffect` API, which has the same usage and behavior. `watch`
now only supports the `watch(source, cb, options?)` signautre.
Evan You [Sat, 22 Feb 2020 04:19:22 +0000 (05:19 +0100)]
chore: remove debugger [ci skip]
guaijie [Sat, 22 Feb 2020 04:17:30 +0000 (12:17 +0800)]
perf(effect): optimize effect trigger for array length mutation (#761)
Evan You [Sat, 22 Feb 2020 03:39:32 +0000 (04:39 +0100)]
feat(reactivity): expose unref and shallowRef
Evan You [Sat, 22 Feb 2020 02:54:20 +0000 (03:54 +0100)]
chore: fix test type
Evan You [Fri, 21 Feb 2020 16:48:39 +0000 (17:48 +0100)]
refactor: preserve refs in reactive arrays
BREAKING CHANGE: reactive arrays no longer unwraps contained refs
When reactive arrays contain refs, especially a mix of refs and
plain values, Array prototype methods will fail to function
properly - e.g. sort() or reverse() will overwrite the ref's value
instead of moving it (see #737).
Ensuring correct behavior for all possible Array methods while
retaining the ref unwrapping behavior is exceedinly complicated; In
addition, even if Vue handles the built-in methods internally, it
would still break when the user attempts to use a 3rd party utility
functioon (e.g. lodash) on a reactive array containing refs.
After this commit, similar to other collection types like Map and
Set, Arrays will no longer automatically unwrap contained refs.
The usage of mixed refs and plain values in Arrays should be rare in
practice. In cases where this is necessary, the user can create a
computed property that performs the unwrapping.
Evan You [Fri, 21 Feb 2020 16:45:42 +0000 (17:45 +0100)]
fix(types): improve ref typing, close #759
Evan You [Fri, 21 Feb 2020 14:05:16 +0000 (15:05 +0100)]
perf(reactivity): only trigger all effects on Array length mutation if new length is shorter than old length
dependabot-preview[bot] [Fri, 21 Feb 2020 13:46:21 +0000 (13:46 +0000)]
build(deps-dev): bump typescript from 3.7.5 to 3.8.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.5 to 3.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Reed Jones [Fri, 21 Feb 2020 13:44:58 +0000 (06:44 -0700)]
chore: typo (#744) [ci skip]
hareku [Fri, 21 Feb 2020 13:44:41 +0000 (22:44 +0900)]
test(reactivity): test for ref without init value (#746)
hareku [Fri, 21 Feb 2020 13:44:13 +0000 (22:44 +0900)]
fix(sfc): inherit parent scopeId on child rooot (#756)
Evan You [Fri, 21 Feb 2020 12:10:13 +0000 (13:10 +0100)]
fix(compiler-dom): properly stringify class/style bindings when hoisting static strings
Evan You [Fri, 21 Feb 2020 10:27:08 +0000 (11:27 +0100)]
chore: use undefined for TS 3.8 compat
guaijie [Fri, 21 Feb 2020 10:38:07 +0000 (18:38 +0800)]
fix(reactivity): should trigger all effects when array length is mutated (#754)
Luxiaosong [Fri, 21 Feb 2020 10:21:24 +0000 (18:21 +0800)]
chore: use 'const' instead of 'let' (#755) [ci skip]
Evan You [Wed, 19 Feb 2020 17:29:01 +0000 (18:29 +0100)]
fix(types): update setup binding unwrap types for
6b10f0c
close #738
basvanmeurs [Wed, 19 Feb 2020 14:50:24 +0000 (15:50 +0100)]
build: use buildOption to determine runtime compile build (#742)
This makes it possible to create a separate package that uses runtime compilation.
likui [Wed, 19 Feb 2020 14:49:46 +0000 (22:49 +0800)]
fix(compiler-core): should alias name in helperString (#743)
fix #740
Evan You [Tue, 18 Feb 2020 20:00:55 +0000 (15:00 -0500)]
release: v3.0.0-alpha.5
Evan You [Tue, 18 Feb 2020 19:56:18 +0000 (14:56 -0500)]
chore: readme
Evan You [Tue, 18 Feb 2020 19:48:56 +0000 (14:48 -0500)]
build: remove compiler-ssr and server-renderer from skipped packages
dependabot-preview[bot] [Tue, 18 Feb 2020 19:56:39 +0000 (14:56 -0500)]
build(deps): bump postcss from 7.0.26 to 7.0.27 (#734)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.26 to 7.0.27.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.26...7.0.27)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Evan You [Tue, 18 Feb 2020 19:43:04 +0000 (14:43 -0500)]
fix(runtime-core): ensure renderCache always exists
Evan You [Tue, 18 Feb 2020 19:32:06 +0000 (14:32 -0500)]
fix(v-on): transform click.right and click.middle modifiers
fix #735
Evan You [Tue, 18 Feb 2020 18:52:59 +0000 (13:52 -0500)]
refactor: extract remove util
Evan You [Tue, 18 Feb 2020 18:26:15 +0000 (13:26 -0500)]
feat(ssr): useSSRContext
Evan You [Tue, 18 Feb 2020 18:23:30 +0000 (13:23 -0500)]
refactor: only run useCssModule code in non-global builds
Evan You [Tue, 18 Feb 2020 18:22:09 +0000 (13:22 -0500)]
fix(reactivity): effect should handle self dependency mutations
Evan You [Tue, 18 Feb 2020 05:09:24 +0000 (00:09 -0500)]
fix(reactivity): trigger iteration effect on Map.set
fix #709
Evan You [Tue, 18 Feb 2020 04:26:25 +0000 (23:26 -0500)]
chore: fix dts tests
Evan You [Tue, 18 Feb 2020 04:22:25 +0000 (23:22 -0500)]
fix(computed): support arrow function usage for computed option
fix #733
Evan You [Tue, 18 Feb 2020 04:14:19 +0000 (23:14 -0500)]
refactor(watch): adjsut watch API behavior
BREAKING CHANGE: `watch` behavior has been adjusted.
- When using the `watch(source, callback, options?)` signature, the
callback now fires lazily by default (consistent with 2.x
behavior).
Note that the `watch(effect, options?)` signature is still eager,
since it must invoke the `effect` immediately to collect
dependencies.
- The `lazy` option has been replaced by the opposite `immediate`
option, which defaults to `false`. (It's ignored when using the
effect signature)
- Due to the above changes, the `watch` option in Options API now
behaves exactly the same as 2.x.
- When using the effect signature or `{ immediate: true }`, the
intital execution is now performed synchronously instead of
deferred until the component is mounted. This is necessary for
certain use cases to work properly with `async setup()` and
Suspense.
The side effect of this is the immediate watcher invocation will
no longer have access to the mounted DOM. However, the watcher can
be initiated inside `onMounted` to retain previous behavior.
Evan You [Tue, 18 Feb 2020 04:14:07 +0000 (23:14 -0500)]
fix(reactivity): avoid cross-component dependency leaks in setup()
Evan You [Mon, 17 Feb 2020 19:43:16 +0000 (14:43 -0500)]
chore: use consistent signature for shared utilities
Evan You [Mon, 17 Feb 2020 16:02:15 +0000 (11:02 -0500)]
build: make watch tree-shakable in lean build
Evan You [Sun, 16 Feb 2020 02:48:45 +0000 (21:48 -0500)]
types: fix tsx dts tests
Evan You [Sun, 16 Feb 2020 02:04:29 +0000 (21:04 -0500)]
fix(types): app.component should accept defineComponent return type
fix #730
Evan You [Sat, 15 Feb 2020 16:40:09 +0000 (11:40 -0500)]
refactor: make portal tree-shakeable
dependabot-preview[bot] [Sat, 15 Feb 2020 22:42:46 +0000 (17:42 -0500)]
build(deps): bump csstype from 2.6.8 to 2.6.9 (#722)
Bumps [csstype](https://github.com/frenic/csstype) from 2.6.8 to 2.6.9.
- [Release notes](https://github.com/frenic/csstype/releases)
- [Commits](https://github.com/frenic/csstype/compare/v2.6.8...v2.6.9)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Dmitry Sharshakov [Sat, 15 Feb 2020 22:41:20 +0000 (01:41 +0300)]
feat(ssr): render portals (#714)
Evan You [Sat, 15 Feb 2020 17:02:00 +0000 (12:02 -0500)]
chore: mark main package side-effects free
hareku [Sat, 15 Feb 2020 16:42:38 +0000 (01:42 +0900)]
test(server-renderer): implement ssrRenderList tests (#726)
夜宴 [Sat, 15 Feb 2020 16:33:22 +0000 (00:33 +0800)]
chore: remove redundant Non-Null Assertion (#728)
Dmitry Sharshakov [Sat, 15 Feb 2020 16:11:55 +0000 (19:11 +0300)]
fix(ssr): render components returning render function from setup (#720)
Evan You [Sat, 15 Feb 2020 16:10:52 +0000 (11:10 -0500)]
chore: fix snapshots
Evan You [Sat, 15 Feb 2020 02:04:08 +0000 (21:04 -0500)]
feat(ssr): support portal hydration
Evan You [Sat, 15 Feb 2020 01:48:06 +0000 (20:48 -0500)]
fix(ssr): fix class/style rendering + ssrRenderComponent export name
Evan You [Fri, 14 Feb 2020 21:41:55 +0000 (16:41 -0500)]
chore: fix hoistStatic exhaustive check
Evan You [Fri, 14 Feb 2020 21:25:41 +0000 (16:25 -0500)]
types: avoid duplicate type declarations for renderer closure functions
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
Evan You [Fri, 14 Feb 2020 17:33:32 +0000 (12:33 -0500)]
types: cleanup renderer & hydration typing
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.
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>
Evan You [Fri, 14 Feb 2020 06:36:42 +0000 (01:36 -0500)]
refactor(types): move shapeFlags to shared
Evan You [Fri, 14 Feb 2020 06:30:08 +0000 (01:30 -0500)]
refactor(ssr): make hydration logic tree-shakeable
Evan You [Fri, 14 Feb 2020 05:13:54 +0000 (00:13 -0500)]
refactor: use explicit exports for runtime-core
Evan You [Fri, 14 Feb 2020 04:31:03 +0000 (23:31 -0500)]
wip(ssr): component hydration
Evan You [Thu, 13 Feb 2020 23:50:36 +0000 (18:50 -0500)]
build: avoid runtime wildcard import in global build
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
Evan You [Thu, 13 Feb 2020 23:28:40 +0000 (18:28 -0500)]
wip(ssr): adjust event hydration flag
Evan You [Thu, 13 Feb 2020 22:47:00 +0000 (17:47 -0500)]
wip(ssr): basic element hydration
Evan You [Thu, 13 Feb 2020 22:27:52 +0000 (17:27 -0500)]
fix(runtime-core): handle component updates with only class/style bindings
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
Evan You [Wed, 12 Feb 2020 20:00:32 +0000 (15:00 -0500)]
refactor(security): mark potential unsafe code paths
Evan You [Wed, 12 Feb 2020 20:00:00 +0000 (15:00 -0500)]
feat(compiler-dom): handle constant expressions when stringifying static content
Evan You [Wed, 12 Feb 2020 18:45:35 +0000 (13:45 -0500)]
refactor(compiler-core): use more concise marker for compiled slots
Evan You [Wed, 12 Feb 2020 18:31:29 +0000 (13:31 -0500)]
feat(compiler): mark hoisted trees with patchFlag
Evan You [Wed, 12 Feb 2020 17:12:53 +0000 (12:12 -0500)]
chore: fix import path + comment
Evan You [Wed, 12 Feb 2020 16:56:42 +0000 (11:56 -0500)]
feat(compiler-dom/runtime-dom): stringify eligible static trees
Evan You [Tue, 11 Feb 2020 23:40:21 +0000 (18:40 -0500)]
test: test updates for
d40c642
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.
Yang Mingshan [Tue, 11 Feb 2020 12:30:25 +0000 (20:30 +0800)]
fix(runtime-core/scheduler): invalidate job (#717)
Evan You [Mon, 10 Feb 2020 23:32:11 +0000 (18:32 -0500)]
refactor(compiler-core): hoist static text calls between elements
Evan You [Mon, 10 Feb 2020 23:19:49 +0000 (18:19 -0500)]
fix(compiler): fix v-for fragment openBlock argument
Evan You [Mon, 10 Feb 2020 22:29:12 +0000 (17:29 -0500)]
refactor(compiler): provide _ctx and _cache via arguments
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
Dmitry Sharshakov [Mon, 10 Feb 2020 19:37:35 +0000 (22:37 +0300)]
feat(server-renderer): support on-the-fly template compilation (#707)
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)
Evan You [Mon, 10 Feb 2020 18:09:15 +0000 (13:09 -0500)]
fix(runtime-core/scheduler): avoid duplicate updates of child component
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
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
Jonas [Mon, 10 Feb 2020 14:36:19 +0000 (15:36 +0100)]
fix(transition-group): handle multiple move-classes (#679)
fix #678
Dmitry Sharshakov [Mon, 10 Feb 2020 14:34:13 +0000 (17:34 +0300)]
test(compiler-sfc): add real tests for source maps (#704)
djy0 [Mon, 10 Feb 2020 14:33:04 +0000 (22:33 +0800)]
chore(compiler-core/codegen): avoid generate indent spaces of empty lines. (#701)
djy0 [Mon, 10 Feb 2020 14:20:07 +0000 (22:20 +0800)]
test(compiler-ssr): fix typo (#713)
Evan You [Mon, 10 Feb 2020 02:47:16 +0000 (21:47 -0500)]
refactor: ensure setup context.emit always point to intenral emit
Evan You [Mon, 10 Feb 2020 02:43:54 +0000 (21:43 -0500)]
fix: remove effect from public API
close #712
jods [Mon, 10 Feb 2020 02:42:34 +0000 (03:42 +0100)]
feat(runtime-core/reactivity): expose shallowReactive (#711)
James George [Sun, 9 Feb 2020 20:45:30 +0000 (02:15 +0530)]
chore: add GitHub sponsor button config (#708) [ci skip]
Evan You [Sun, 9 Feb 2020 18:19:10 +0000 (13:19 -0500)]
wip(ssr): use consistent attr key behavior in compiler
jods [Sun, 9 Feb 2020 20:25:17 +0000 (21:25 +0100)]
perf(reactivity): better computed tracking (#710)
hareku [Sun, 9 Feb 2020 18:12:16 +0000 (03:12 +0900)]
chore(shared): fix comment (#705) [ci skip]
Evan You [Sat, 8 Feb 2020 00:04:55 +0000 (19:04 -0500)]
test: update tests and snapshots for helper prefixing
Evan You [Fri, 7 Feb 2020 23:53:39 +0000 (18:53 -0500)]
refactor(compiler): prefix all imported helpers to avoid scope collision
Evan You [Fri, 7 Feb 2020 23:00:30 +0000 (18:00 -0500)]
build: drop unnecessary codegen branch for global build
Evan You [Fri, 7 Feb 2020 22:18:12 +0000 (17:18 -0500)]
fix(runtime-core): fix ShapeFlags tree shaking