Evan You
b0d01e9db9
dx(compiler-core): warn on <template v-for>
key misplacement
...
Note: the behavior is different from Vue 2. `<template v-for>` are compiled
into an array of Fragment vnodes so the key should be placed the `<template>`
for v-for to use it for diffing.
2020-08-04 12:20:32 -04:00
Evan You
de0c8a7e3e
fix(compiler-core): v-if key error should only be checking same key on different branches
2020-08-04 12:01:18 -04:00
dependabot-preview[bot]
c3f8c780e7
build(deps-dev): bump @typescript-eslint/parser from 3.7.1 to 3.8.0 ( #1776 )
2020-08-04 12:27:35 +00:00
Evan You
11ed210391
chore: fix tests
2020-08-03 18:01:07 -04:00
Evan You
8d4abc3814
chore: unset removed invokers
2020-08-03 17:56:55 -04:00
Evan You
1c967fc44b
fix(runtime-dom): fix v-on same computed handler on multiple elements
...
fix #1747
2020-08-03 17:55:22 -04:00
Yang Mingshan
b2a91429ed
fix(runtime-core/scheduler): prevent duplicate queue ( #1767 )
2020-08-03 17:19:06 -04:00
Aurelius333
86cdf6694d
chore(compiler-core): improve X_V_IF_KEY error message ( #1757 )
2020-08-03 17:14:14 -04:00
Evan You
0cd98c3040
fix(runtime-dom): style binding multi value support
...
fix #1759
2020-08-03 17:13:17 -04:00
Evan You
f6afe7000e
fix(runtome-core): do not cache property access in beforeCreate hook
...
fix #1756
2020-08-03 17:04:45 -04:00
Evan You
d4c17fb48b
fix(watch): pre-flush watcher watching props should trigger before component update
...
fix #1763
2020-08-03 16:49:30 -04:00
dependabot-preview[bot]
b10bc2820a
build(deps-dev): bump eslint from 7.5.0 to 7.6.0 ( #1765 )
2020-08-03 10:01:40 +00:00
dependabot-preview[bot]
411b203adf
build(deps-dev): bump @types/jest from 26.0.7 to 26.0.8 ( #1750 )
2020-07-31 16:45:00 +00:00
dependabot-preview[bot]
a293fdfe33
build(deps-dev): bump jest from 26.1.0 to 26.2.2 ( #1748 )
2020-07-31 16:41:24 +00:00
Evan You
fce2689ff1
fix(watch): should trigger watcher callback on triggerRef when watching ref source
...
fix #1736
2020-07-30 18:29:38 -04:00
Evan You
09702e95b9
fix(runtime-core/scheduler): only allow watch callbacks to be self-triggering
...
fix #1740
Previous fix for #1727 caused `watchEffect` to also recursively trigger
itself on reactive array mutations which implicitly registers array
`.length` as dependencies and mutates it at the same time.
This fix limits recursive trigger behavior to only `watch()` callbacks
since code inside the callback do not register dependencies and
mutations are always explicitly intended.
2020-07-30 17:57:20 -04:00
dependabot-preview[bot]
ccf3362d4d
build(deps): bump csstype from 2.6.11 to 2.6.13 ( #1737 )
...
Bumps [csstype](https://github.com/frenic/csstype ) from 2.6.11 to 2.6.13.
- [Release notes](https://github.com/frenic/csstype/releases )
- [Commits](https://github.com/frenic/csstype/compare/v2.6.11...v2.6.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-30 16:45:36 -04:00
dependabot-preview[bot]
5e20a3ed9a
build(deps): [security] bump elliptic from 6.5.2 to 6.5.3 ( #1735 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.2 to 6.5.3. **This update includes a security fix.**
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-30 16:45:16 -04:00
Evan You
8b67513dab
chore: update cli status [ci skip]
2020-07-29 10:24:02 -04:00
Carlos Rodrigues
ce78eac8e9
fix(runtime-core): check if the key is string on undefined property warning ( #1731 )
2020-07-29 10:06:36 -04:00
Evan You
848d9ce2ea
release: v3.0.0-rc.5
2020-07-28 17:42:05 -04:00
Evan You
6f5d840612
feat(sfc): support resolving template components from <script setup>
exports
2020-07-28 17:31:46 -04:00
Evan You
aa06b1034d
feat(reactivity): proxyRefs
method and ShallowUnwrapRefs
type ( #1682 )
...
* feat(reactivity): `proxyRefs` method and `ShallowUnwrapRefs` type
BREAKING CHANGE: template auto ref unwrapping are now applied shallowly,
i.e. only at the root level. See https://github.com/vuejs/vue-next/pull/1682 for
more details.
2020-07-28 16:30:56 -04:00
underfin
de62cc040c
fix(hmr): should update el for HYDRATE_EVENTS
patchFlags node ( #1707 )
...
fix https://github.com/vitejs/vite/issues/613
2020-07-28 15:52:20 -04:00
Carlos Rodrigues
421a70de5e
test(types): test computed get/set type inference ( #1709 )
2020-07-28 15:40:23 -04:00
Che Guevara
06cad62ee8
test(transition): add invalid durations test case ( #1702 )
2020-07-28 15:36:36 -04:00
Carlos Rodrigues
5681fdb211
test(types): test dts for Options API method return type inference ( #1708 )
2020-07-28 15:31:23 -04:00
underfin
07ece2e926
fix(style-vars): fix css vars on component with suspense as root ( #1718 )
2020-07-28 15:30:18 -04:00
Evan You
58b4a382f9
refactor(compiler-core): emit error on v-if key usage
2020-07-28 15:18:41 -04:00
Evan You
355c052622
fix(runtime-core): dev root resolution should differentiate user comments vs v-if comments
...
fix #1704
2020-07-28 14:16:09 -04:00
underfin
578f25c34e
fix(compiler-sfc): less
and stylus
output deps path is absolute p… ( #1685 )
2020-07-28 13:45:24 -04:00
Evan You
4ef5c8d424
fix(runtime-core): fix scheduler dedupe when not flushing
2020-07-28 13:23:09 -04:00
Evan You
c27dfe1d09
fix(runtime-core): scheduler should allow intentional self triggering effects
...
fix #1727
2020-07-28 12:29:43 -04:00
Evan You
730e39eb76
refactor: remove unnecessary conditions and test case
2020-07-28 12:26:14 -04:00
Evan You
b7ef38b773
fix(reactivity): fix ref mutation debugger event values
2020-07-28 12:01:34 -04:00
Evan You
0b3b1cfa48
fix(v-model): enable v-model type detection on custom elements
2020-07-28 11:44:39 -04:00
underfin
04a4ebaaeb
fix(runtime-core): use correct container for moving Teleport
content ( #1703 )
2020-07-28 11:23:39 -04:00
Evan You
fbf865d9d4
fix(compiler-core): always compile Teleport and Suspense as blocks
2020-07-28 11:12:43 -04:00
Evan You
b3b65b4058
fix: runtime compilation marker should be applied in exposed compile function
2020-07-28 11:11:26 -04:00
Evan You
a5e55e28f1
test: improve unexpected warning output
2020-07-28 10:40:25 -04:00
Evan You
7e8b26eba8
refactor(runtime-core): make nextTick() promise reject on scheduler flush error
2020-07-28 10:40:25 -04:00
Evan You
3cc768f9f2
refactor(runtime-core): adjust error handling behavior
...
- Crash in dev to make the errors more noticeable
- Recover in prod to reduce impact on end users
2020-07-28 10:40:25 -04:00
dependabot-preview[bot]
678364802d
build(deps-dev): bump ts-jest from 26.1.3 to 26.1.4 ( #1726 )
2020-07-28 09:21:13 +00:00
dependabot-preview[bot]
152464ffcd
build(deps-dev): bump @typescript-eslint/parser from 3.7.0 to 3.7.1 ( #1725 )
2020-07-28 09:19:49 +00:00
Evan You
5c74243211
test: move mockWarn into setup files
2020-07-27 22:58:51 -04:00
underfin
d4527230e4
fix(compiler-core): prevent generating invalid code for v-bind with empty expression ( #1720 )
2020-07-27 18:31:08 -04:00
Evan You
5fbd1f4ccb
fix(compiler-core/v-on): only cache empty handler when the option is used
...
fix #1716
The original idea is that the empty handler can be cached in all cases,
but this contradicts with the assumption that `hasCachedProps` check in
the static hoist transform can simply return `false` in the browser
build.
2020-07-27 18:28:39 -04:00
Evan You
c930f2ee8a
chore: update snapshot
2020-07-27 17:45:30 -04:00
Evan You
354d79c42b
fix(runtime-core): respect render function from mixins
...
fix #1630
2020-07-27 17:44:17 -04:00
Evan You
71c3c6e2a0
fix(v-model): allow v-model usage on declared custom elements
...
fix #1699
2020-07-27 17:09:30 -04:00