Guillaume Chau
23233dc8b8
feat(devtools): catch events
2020-08-24 01:33:12 +02:00
Yang Mingshan
10293c7a18
fix(watch): traverse refs in deep watch ( #1939 )
...
ref #1900
2020-08-23 14:41:11 -04:00
Guillaume Chau
31b99a9139
feat(devtools): expose setupState target object
2020-08-22 16:40:04 +02:00
Guillaume Chau
6eb7fd8333
fix(devtools): unmountApp not behind compile flag
2020-08-22 16:34:18 +02:00
Guillaume Chau
3138f4b42f
chore: rename createDevtoolsHook to createDevtoolsComponentHook
2020-08-22 15:53:21 +02:00
Evan You
54d06ec495
feat(runtime-core): support variadic children in h
for simple JSX compat
...
ref: #1917
2020-08-21 21:54:33 -04:00
Evan You
6602d6dbff
release: v3.0.0-rc.7
2020-08-21 14:13:05 -04:00
Robbin Baauw
07919e0065
perf(reactivity): improve ref performance by using class-based implementation ( #1900 )
2020-08-21 13:47:41 -04:00
Li Chen
0f8c9917f8
chore(runtime-core): use ReactiveFlags.SKIP in vnode for consistency ( #1901 )
2020-08-21 13:45:42 -04:00
ᴜɴвʏтᴇ
3c05f8bbd6
fix(reactivity): unwrap non-index accessed refs on reactive arrays ( #1859 )
...
close #1846
2020-08-21 13:36:41 -04:00
XRenSiu
bb54a84cd1
chore: use '@vue/shared' instead of '@vue/shared/src' ( #1915 )
2020-08-21 12:50:06 -04:00
Evan You
f02e2f99d9
fix(runtime-core): disable block tracking when calling compiled slot function in tempalte expressions
...
fix #1745 , fix #1918
2020-08-21 12:47:45 -04:00
Evan You
7454e2a52b
build(deps): upgrade to TypeScript 4
2020-08-20 17:48:28 -04:00
Evan You
91700fbec2
refactor(compiler-core): simplify hoistStatic check for nodes without patchFlag
...
close #1912
2020-08-20 11:43:34 -04:00
HcySunYang
255a2bd178
test(runtime-core): add tests for the optimized mode ( #1884 )
2020-08-20 10:56:31 -04:00
Evan You
a74f8d7891
test: use polling for more stable markdown e2e tests
...
close #1908
2020-08-20 10:52:45 -04:00
Evan You
d4cc7b2496
fix(teleport): only inherit el for non-patched nodes
...
fix #1903
2020-08-20 10:44:28 -04:00
underfin
69cfed6b31
fix(compiler-core): should attach key to single element child of <template v-for>
( #1910 )
2020-08-20 10:09:57 -04:00
HcySunYang
7ffb79c563
fix(runtime-core): correctly track dynamic nodes in renderSlot ( #1911 )
2020-08-20 09:37:26 -04:00
Evan You
91c4735416
release: v3.0.0-rc.6
2020-08-19 18:17:42 -04:00
Evan You
cfa7636bbe
chore: comments
2020-08-19 18:02:17 -04:00
Evan You
1eb6067a85
fix(runtime-core): fix beforeUpdate call timing to allow state mutation
...
fix #1899
2020-08-19 17:57:51 -04:00
Evan You
24041b7ac1
fix(compiler-core): generate NEED_PATCH flag for element with vnode hooks
2020-08-19 17:30:44 -04:00
Carlos Rodrigues
c2913d57d1
fix(types): handling PropType<Function> with default value ( #1896 )
...
fix #1891
2020-08-19 16:36:42 -04:00
Pick
02dcc68c24
test(reactivity): improve built-in Collection subclass test cases ( #1885 )
2020-08-19 16:22:31 -04:00
Evan You
eb2ae44d94
refactor(types): widen Component
type to include consutructor types
...
returned from `defineComponent`
ref: https://github.com/vuejs/vue-router-next/pull/421
also close #1880
Previous `Component` type is now exported as `ConcreteComponent`.
This introduces a minor breaking change when calling `h(comp, { ... })`
will now fail if `comp` is a of generic `Component` type, since it does
not specify what props it expects.
2020-08-19 16:19:25 -04:00
Carlos Rodrigues
4baf852a34
types(runtime-core): make FunctionalComponent
with emit string[] to be Component
( #1879 )
...
fix #1847
2020-08-19 10:00:48 -04:00
HcySunYang
7f82428680
types(runtime-core): tweak the type of KeepAlive ( #1871 )
2020-08-19 10:00:01 -04:00
edison
075d769e0b
chore: fix typo for babelParserDefautPlugins
( #1897 )
2020-08-19 09:53:09 -04:00
edison
7dd067206c
chore: remove unused type VNodeDirectiveData
( #1893 )
2020-08-19 09:51:44 -04:00
Carlos Rodrigues
c86e7ad11b
types(reactivity): improve typings for shallowRef
( #1780 )
2020-08-18 23:34:29 -04:00
Jordan Pittman
4172fdb90c
feat(reactivity): return array when calling toRefs
on array ( #1768 )
...
close #1764
2020-08-18 12:11:13 -04:00
小妍妍
fdb2f418cf
chore: remove deprecated <content>
tag ( #1647 )
...
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/content
2020-08-18 11:47:38 -04:00
wxy
3892ea884b
chore(runtime-dom): remove deprecated tags from jsx typing ( #1627 )
2020-08-18 11:43:14 -04:00
Evan You
9f92871c80
types(runtime-core): argument for props validator
...
Unfortunately it requires explicit annotation for now
2020-08-18 11:37:34 -04:00
Aurelius333
a88895b5da
types(runtime-core): make this
void in prop validators and prop default factories ( #1867 )
2020-08-18 11:25:55 -04:00
HcySunYang
9d36c61796
types(runtime-core): improve PropType inference precision ( #1863 )
2020-08-18 11:23:18 -04:00
Pick
4d51be73d3
refactor(runtime-core): add @internal for instance.proxy ( #1849 )
2020-08-18 11:12:26 -04:00
Evan You
0d508e9f51
feat(runtime-core): pass current props to prop default value functions
...
close #1886
2020-08-18 10:52:50 -04:00
ᴜɴвʏтᴇ
d005b578b1
fix(reactivity): accept subtypes of collections ( #1864 )
2020-08-17 12:17:46 -04:00
Evan You
6ccd9ac2bc
fix(runtime-core): fix Object props validation for objects with custom toStringTag
...
fix #1872
2020-08-17 11:25:38 -04:00
Barthélémy Ledoux
62b9d02f6f
feat(compiler-core): add comments
parser option ( #1858 )
2020-08-17 11:20:28 -04:00
kazuya kawaguchi
619efd9ac5
fix(compiler-sfc): custom blocks sourcemap ( #1812 )
2020-08-14 17:47:28 -04:00
susiwen8
a2c6f0c8c7
chore: remove unecessary 'export' ( #1785 )
2020-08-14 17:38:32 -04:00
Pick
44448fdd22
types(reactivity): add dts for proxyRefs & improve typings ( #1786 )
2020-08-14 17:37:36 -04:00
Aurelius333
5002ab53d6
types(runtime-core): make this
void in emits validator ( #1842 )
2020-08-14 17:36:26 -04:00
Evan You
223f180529
test(watch): add same value skipping trigger test
2020-08-14 17:35:49 -04:00
zhangzhonghe
517c2b8bdb
fix(teleport): always inherit root DOM nodes on patch ( #1836 )
...
fix #1813
2020-08-14 17:26:32 -04:00
Evan You
9fb84187f0
chore: bump markdown e2e test wait period
2020-08-14 17:07:42 -04:00
Necmettin Karakaya
86187ca907
chore: typos ( #1670 )
2020-08-14 17:05:12 -04:00
edison
2a1b0fc6d7
chore: use value
instead of n.value
( #1770 )
2020-08-14 17:00:49 -04:00
Evan You
86a4f2a6b3
chore: remove unnecessary wrap
2020-08-14 09:52:30 -04:00
HcySunYang
caccec3f78
fix(runtime-core/scheduler): sort postFlushCbs to ensure refs are set before lifecycle hooks ( #1854 )
...
fix #1852
2020-08-14 09:50:23 -04:00
Evan You
ac81dcf0cc
fix(reactivity): effect should still check sync self-trigger
2020-08-13 17:45:21 -04:00
Evan You
611437a3fe
fix(runtime-core/scheduler): allow component render functions to trigger itself
...
fix #1801
2020-08-13 17:42:47 -04:00
underfin
bc6f252c4a
fix(runtime-core): should correctly call beforeEnter
inside Suspense
( #1805 )
...
fix #1795
2020-08-13 12:36:30 -04:00
HcySunYang
3991ff03ce
fix(runtime-core): separate null vs. non-null ref value updates ( #1835 )
...
fix #1789 , fix #1834
2020-08-13 12:27:17 -04:00
Jacob Smith
b14f4a505b
fix(codeframe): Added Math.max to prevent RangeError ( #1807 )
...
fix #1806
2020-08-12 15:52:28 -04:00
beary
b984d47ac4
fix(types/jsx): update innerHTML property in jsx typing ( #1814 )
2020-08-12 15:50:11 -04:00
Evan You
50adc014f5
refactor(reactivity): readonly collections should not track
2020-08-06 12:10:03 -04:00
Evan You
ed4381020f
fix(reactivity): readonly+reactive collection should also expose readonly+reactive values
...
fix #1772
2020-08-06 11:18:16 -04:00
Evan You
48576e582c
fix(transition): transition should accept multiple handlers on same event
...
fix #1746
2020-08-06 10:28:03 -04:00
Evan You
791eff3dfb
fix(runtime-core): avoid manual slot invocation in template expressions interfering with block tracking
...
fix #1745
2020-08-06 10:16:13 -04:00
zhangzhonghe
233d191d0d
fix(keep-alive): fix activated hook invocation on nested components ( #1743 )
...
fix #1742
2020-08-06 09:42:52 -04:00
Eduardo San Martin Morote
00683fce9a
fix(runtime-dom): patch form
as an attribute ( #1788 )
...
Close #1787
2020-08-06 09:32:28 -04:00
wujieZ
2787c34cd4
fix(reactivity): use isExtensible instead of isFrozen ( #1753 )
...
close #1784
2020-08-05 11:53:50 -04:00
Evan You
3692f2738f
refactor(runtime-core/scheduler): dedicated preFlush queue
...
properly fix #1763 , #1777 , #1781
2020-08-05 10:55:23 -04:00
Evan You
74a1265fea
chore: remove debugger
2020-08-05 09:32:18 -04:00
Evan You
a0e34cee4a
fix(watch): exhaust pre-flush watchers + avoid duplicate render by pre-flush watchers
...
close #1777
2020-08-04 13:20:23 -04:00
Eduardo San Martin Morote
b5f91ff570
fix(watch): allow handler to be a string ( #1775 )
...
fix #1774
2020-08-04 12:42:47 -04:00
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
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
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
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
Che Guevara
06cad62ee8
test(transition): add invalid durations test case ( #1702 )
2020-07-28 15:36:36 -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
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
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
underfin
2a633c84ff
fix(transition): should call transition hooks inside already resolved suspense ( #1698 )
...
fix #1689
2020-07-27 16:47:07 -04:00
Evan You
3d2bdafd2f
chore: revert accidentally commented line
2020-07-23 14:53:09 -04:00
Evan You
a75b8a268f
fix(build): fix component resolution when disabling options API
...
fix #1688
2020-07-23 14:33:15 -04:00
Evan You
ba17c871d8
feat: support delimiters option for runtime compilation
...
close #1679
2020-07-23 14:27:17 -04:00
Evan You
7edfdf7e23
fix(reactivity): avoid tracking internal symbols in has trap
...
fix #1683
2020-07-22 21:23:32 -04:00
underfin
452edb73cb
fix(compiler-sfc): fix rewrite named export default ( #1675 )
2020-07-22 21:00:41 -04:00
Evan You
d63daaf9b6
release: v3.0.0-rc.4
2020-07-21 15:40:46 -04:00
Evan You
11c2ad4a04
fix(deps): move @babel/types back to dependencies
2020-07-21 15:39:54 -04:00
Evan You
7753485baa
release: v3.0.0-rc.3
2020-07-21 15:27:26 -04:00
Rahul Kadyan
615dccd00e
feat(compiler-core/internal): add onContextCreated
option to generate
( #1672 )
2020-07-21 15:16:20 -04:00
Evan You
4951d43526
fix(compiler-sfc): <style vars scoped>
prefixing should only apply to pre-transform source
...
fix #1623
2020-07-21 15:05:28 -04:00
Evan You
a28a11ef22
chore: make app root attribute consistent with scopeId attributes
2020-07-21 14:56:28 -04:00
Evan You
c852bf18d7
fix(v-model): v-model listeners should not fallthrough to plain element root
...
fix #1643
2020-07-21 14:17:48 -04:00
Bjarki Hall
304830a764
feat(runtime-core): respect function name when using defineComponent
function shorthand ( #1661 )
2020-07-21 13:15:26 -04:00
Evan You
1af3531719
fix(runtime-core): fix attr fallthrough on compiled framgent w/ single static element + comments
2020-07-21 13:11:19 -04:00
Evan You
6390ddfb7d
fix(runtime-core): do not use bail patchFlag on cloned vnodes
...
fix #1665
- cloned vnodes with extra props will receive only the full props flag
- this commit affects `cloneVNode` behavior when used in manual render
functions.
- ok for normal elements since elements only use patchFlags for own
props optimization
- full props flag is skipped for fragments because fragments use
patchFlags only for children optimization
- this also affects `shouldUpdateComponent` where it should now only
respect patchFlags in optimized mode, since component vnodes use
the patchFlag for both props and slots optimization checks.
2020-07-21 13:11:19 -04:00
learningMaster
324167d3d2
test(runtime-dom): add test for vModel composition session ( #1631 )
2020-07-21 10:34:08 -04:00
Zardddddd60
3e412c10e0
refactor(reactive): reduce code size by assigning to a local variable ( #1634 )
2020-07-21 10:33:09 -04:00
Evan You
fb8e83f0c2
chore: update link for the feature flag warning [ci skip]
2020-07-21 10:26:16 -04:00
Evan You
7ae07f718d
docs: details on esm-bundler feature flags [ci skip]
2020-07-21 10:11:33 -04:00
Evan You
be4df124e6
refactor: move @babel/types to dev deps, reduce install size
2020-07-20 22:14:05 -04:00
Evan You
54727f9874
feat: provide ability to overwrite feature flags in esm-bundler builds
...
e.g. by replacing `__VUE_OPTIONS_API__` to `false` using webpack's
`DefinePlugin`, the final bundle will drop all code supporting the
options API.
This does not break existing usage, but requires the user to explicitly
configure the feature flags via bundlers to properly tree-shake the
disabled branches. As a result, users will see a console warning if
the flags have not been properly configured.
2020-07-20 21:51:30 -04:00
Carlos Rodrigues
dabdc5e115
feat(computed): add readonly flag if no setter is provided ( #1654 )
2020-07-20 17:35:31 -04:00
Evan You
ad199e1a25
fix(build): make transition tree-shakeable again
2020-07-20 16:17:14 -04:00
underfin
6f148d0b9a
fix(compiler-sfc): use correct importer with useCssVars
( #1658 )
...
fix #https://github.com/vitejs/vite/issues/578
2020-07-20 12:46:33 -04:00
Liaogming
19e41eaddc
chore(compiler-sfc): delete empty file in fixture ( #1649 )
2020-07-20 12:43:58 -04:00
Tan Li Hau
288b4eab9e
fix(watch): fix watching reactive array ( #1656 )
...
fixes #1655
2020-07-20 12:39:22 -04:00
Evan You
1f4045a086
release: v3.0.0-rc.2
2020-07-19 14:52:42 -04:00
Evan You
af7e100ef2
fix(compiler-core): fix v-if + v-for on <template>
...
fix #1637
2020-07-19 14:36:01 -04:00
underfin
0526e5d7fa
fix(compiler-sfc): use filename
from options when compile styl preprocessor ( #1635 )
...
fix #https://github.com/vitejs/vite/issues/577
2020-07-19 14:17:31 -04:00
Evan You
03c681e396
refactor(types): move component props interfaces + expose AllowedComponentProps
...
fix #1632
2020-07-19 14:09:53 -04:00
zhangzhonghe
2deb0c7a74
fix(keep-alive): handle "0" as cache key ( #1622 )
...
fix #1621
2020-07-19 13:31:07 -04:00
Carlos Rodrigues
8facaefcc3
fix(watch): callback not called when using flush:sync
( #1633 )
2020-07-19 13:30:24 -04:00
Evan You
4655d69983
fix(runtime-core/hmr): only use cloneNode mount optimization in prod
...
fix #1626
2020-07-19 13:22:58 -04:00
Evan You
b3af5dbe5d
chore: more detailed teleport target warning
...
close #1629
2020-07-19 11:52:03 -04:00
HcySunYang
f9826fa963
fix(compiler-core/v-on): fix codegen for event handler with newlines ( #1640 )
2020-07-19 11:48:26 -04:00
Stanislav
fa5ddf8d06
chore(types): convert type literals to records ( #1615 )
2020-07-18 22:56:28 -04:00
motao
b8db7ab889
test(runtime-dom): improve v-on system key modifiers test ( #1597 )
2020-07-18 22:55:39 -04:00
Evan You
0ea14cade9
release: v3.0.0-rc.1
2020-07-17 15:30:17 -04:00
HcySunYang
5d8a64d53a
feat(types): deny unknown attributes on component by default ( #1614 )
...
close #1519
2020-07-17 11:43:28 -04:00
leyale
e626caa4d1
chore(shared): menuitem tag has been deprecated ( #1613 )
2020-07-17 11:26:12 -04:00
underfin
a8966457d3
refactor(devtools): extract same logic into createDevtoolsHook
( #1608 )
2020-07-17 11:25:33 -04:00
ezshine
2c3427413d
chore: typo [ci skip] ( #1604 )
2020-07-17 11:24:53 -04:00
lawvs
a935998b33
chore: better comment hovers preview [ci skip] ( #1612 )
2020-07-17 11:24:12 -04:00
Evan You
341b30c961
fix(watch): post flush watchers should not fire when component is unmounted
...
fix #1603
2020-07-17 11:17:29 -04:00
Evan You
024a8f10f5
chore: also expose DeepReadonly in runtime-core
2020-07-17 09:29:44 -04:00
Pick
527c2c8bbb
feat(types): expose DeepReadonly type ( #1606 )
2020-07-17 09:28:50 -04:00
Guillaume Chau
568b6db12b
feat: Initial devtools support ( #1125 )
2020-07-16 18:18:52 -04:00
Evan You
5ed73cd874
release: v3.0.0-beta.24
2020-07-16 13:51:52 -04:00
Evan You
d5055cd8dd
refactor(compiler-sfc): simplify style preprocessors
2020-07-16 13:38:46 -04:00
Evan You
9cb29eea3a
fix(compiler-sfc): fix preprocessor filename access
2020-07-16 13:36:31 -04:00
Sohaib Alam
6136cf874e
chore: fix error message ( #1602 )
...
make the error message in `compiler-dom` and `compiler-ssr` a bit
cleaner and fix grammar
2020-07-16 13:36:16 -04:00
Evan You
8b5d153d7f
release: v3.0.0-beta.23
2020-07-16 12:48:56 -04:00
underfin
e41d8310de
feat(compiler-sfc): export dependencies for css and css preprocessors ( #1278 )
2020-07-16 12:33:37 -04:00
Zardddddd60
ecf872fc95
refactor(reactive): remove unnecessary args handling in reactiveEffect ( #1593 )
2020-07-15 23:19:15 -04:00
无忧
22973b418b
chore: remove deprecated elements from dom tag config ( #1596 )
2020-07-15 23:16:28 -04:00
Evan You
165068dbc2
perf(runtime-core): avoid duplicate postFlushCb invocation
...
Also improve flush performance by using for loop instead of shift()
fix #1595
2020-07-15 22:36:41 -04:00
Evan You
aab99abd28
fix(slots): properly force update on forwarded slots
...
fix #1594
2020-07-15 20:12:49 -04:00
Evan You
44e6da1402
fix(runtime-dom): unref when setting useCssVars
2020-07-15 18:31:10 -04:00
Evan You
9b5ff2b567
fix(compiler-sfc): fix useCssVars codegen
2020-07-15 18:05:35 -04:00
Evan You
af4b0c2cf1
fix(compiler-sfc): prohibit src usage for <script setup>
+ do not
...
process non js/ts blocks in compileScript
2020-07-15 17:44:02 -04:00
Evan You
4535b1bde8
chore: remove outdated options
2020-07-15 17:05:00 -04:00
Evan You
11727b9e1e
refactor(compiler-sfc): adjust sfc compileScript usage
2020-07-15 16:27:21 -04:00
Evan You
03f924e48a
refactor(compiler-sfc): move sfc parse errors into return result
...
Also warn against `<script setup src>` usage
2020-07-15 16:00:53 -04:00
Evan You
fcbefdb769
release: v3.0.0-beta.22
2020-07-15 12:43:41 -04:00
cexbrayat
9146cc485e
fix(compiler-sfc): <script setup>
warning
...
The warning was showing even if the component is only using a classic `<script>`
2020-07-15 12:32:11 -04:00
Evan You
5f61aa0f71
fix(hmr): fix hmr updates for reused hoisted trees
...
fix https://github.com/vitejs/vite/issues/514
2020-07-15 12:26:44 -04:00
Evan You
32a4cb804b
test: improve coverage
2020-07-15 10:38:45 -04:00
Evan You
056a13142f
test: fix fragment unkeyed fragment test flag
2020-07-15 10:10:38 -04:00
Jacob Müller
fe1b27b7f8
fix(v-model): handle more edge cases in looseEqual()
( #379 )
2020-07-15 09:37:51 -04:00
春去春又来
379a8af288
test(runtime-core): add test for rendererComponent ( #1393 )
2020-07-15 09:34:23 -04:00
Pick
b772bba558
feat(types/reactivity): use DeepReadonly
type for readonly
return type ( #1462 )
...
close #1452
2020-07-15 09:27:21 -04:00
underfin
246ec5c594
fix(runtime-core): do not call transition enter hooks when mounting in suspense ( #1588 )
...
fix #1583
2020-07-15 09:24:16 -04:00
HcySunYang
64c7b2f9ce
fix(compiler-core): generate incremental keys for v-if/else-if/else chains ( #1589 )
...
fix #1587
2020-07-15 09:21:40 -04:00
Carlos Rodrigues
d78a6821f5
types(runtime-core): default SetupContext
generic argument to EmitsOptions
( #1584 )
2020-07-15 09:19:20 -04:00
Evan You
9188e9ea74
release: v3.0.0-beta.21
2020-07-14 17:18:07 -04:00
Evan You
f49f95344b
chore: fix types
2020-07-14 17:07:36 -04:00
underfin
583a1c7b45
fix(runtime-core): avoid scopeId as attr for slot nodes with same scopeId ( #1561 )
...
fix vitejs/vite#536
2020-07-14 17:06:39 -04:00
Pick
2b60870f8a
refactor(types): improve code readability & friendly to type hints ( #1560 )
2020-07-14 16:33:30 -04:00
Evan You
cb6a0915c5
fix(runtime-dom): remove attrs with nullish values
...
fix #1576
2020-07-14 16:25:21 -04:00
Evan You
00ab9e2e85
refactor: adjust event options handling to be JSX friendly
2020-07-14 13:20:59 -04:00
Evan You
380c6792d8
fix(v-on): refactor DOM event options modifer handling
...
fix #1567
Previously multiple `v-on` handlers with different event attach option
modifers (`.once`, `.capture` and `.passive`) are generated as an array
of objects in the form of `[{ handler, options }]` - however, this
makes it pretty complex for `runtime-dom` to properly handle all
possible value permutations, as each handler may need to be attached
with different options.
With this commit, they are now generated as event props with different
keys - e.g. `v-on:click.capture` is now generated as a prop named
`onClick.capture`. This allows them to be patched as separate props
which makes the runtime handling much simpler.
2020-07-14 11:48:05 -04:00
Evan You
9152a89016
fix(v-on): capitalize dynamic event names
2020-07-13 17:36:46 -04:00
Evan You
576344d2c3
refactor(compiler): extract isStaticExp util
2020-07-13 16:48:24 -04:00
Evan You
8b320cc12f
fix(runtime-dom/v-on): only block event handlers based on attach timestamp
...
fix #1565
2020-07-13 14:50:11 -04:00
Evan You
6b63ba2f45
fix(compiler-dom): fix v-on .left .right modifier handling
2020-07-13 14:50:11 -04:00
Pick
09f61b4049
types(runtime-core): adjust Renderer's type declaration ( #1566 )
2020-07-13 12:44:37 -04:00
Evan You
65beba98fe
fix(slots): differentiate dynamic/static compiled slots
...
fix #1557
2020-07-13 12:36:41 -04:00
Evan You
ba3b3cdda9
fix(runtime-core/emits): merge emits options from mixins/extends
...
fix #1562
2020-07-13 11:55:46 -04:00
Evan You
b9595e64cf
feat: ssr support for <style vars>
2020-07-12 18:04:09 -04:00
Evan You
b6cdd5621e
wip: template binding optimization
2020-07-10 22:12:25 -04:00
Evan You
b51b79f5c4
refactor: rename optimizeBindings -> optimizeImports
2020-07-10 20:43:52 -04:00
Evan You
5f271515cf
refactor: shorten scoped css var / animation prefix
2020-07-10 18:47:31 -04:00
Evan You
73807aeaf7
types: fix jsx type collision with generated type after concatenation
2020-07-10 18:04:44 -04:00
Evan You
4c43d4e5b9
feat(compiler-sfc): <script setup>
support (experimental)
...
This is the last commit for the feature which adds async/await detection.
2020-07-10 18:00:13 -04:00
Evan You
73bfce3706
refactor: only rewrite css varaiable in <style scoped>
when vars is present
2020-07-10 17:10:48 -04:00
Evan You
f3cc41f0c8
feat(compiler-sfc): allow using :deep, :global & :slotted for short in <style scoped>
2020-07-10 16:47:36 -04:00
Evan You
bd5c3b96be
feat(compiler-sfc): <style vars>
CSS variable injection
2020-07-10 16:30:58 -04:00
Evan You
6647e34ce7
refactor: adjust useCSSVars scoped usage
2020-07-10 10:19:16 -04:00
Evan You
879ea17985
test: tests for useCSSVars
2020-07-10 09:44:00 -04:00
Evan You
bb47510aae
wip: fix tests
2020-07-09 23:06:11 -04:00
Evan You
b4f7ab45ea
refactor: simplify sfc script transform usage
2020-07-09 18:18:46 -04:00
Evan You
9f706a9f5e
feat(runtime-dom): useCssVars
2020-07-09 16:25:29 -04:00
Evan You
18c537d3c2
wip: test for runtime props/emits extraction
2020-07-09 12:17:28 -04:00
Evan You
2c3cdab93d
wip: generate runtime prop type checks in dev
2020-07-09 12:17:28 -04:00
Evan You
3e1cdba9db
wip: tests for compileScriptSetup
2020-07-09 12:17:28 -04:00
Evan You
e4df2d7749
wip: export { x as default } handling
2020-07-09 12:17:28 -04:00
Evan You
a44d53003e
wip: move type declarations out of setup
2020-07-09 12:17:28 -04:00
Evan You
c0d86070fd
wip: extract runtime props/emits from type declarations
2020-07-09 12:17:28 -04:00
Evan You
608885350b
wip: compileScript typed signature generation
2020-07-09 12:17:28 -04:00
Evan You
a47478caf4
wip: compileScriptSetup full js support
2020-07-09 12:17:28 -04:00
Evan You
6b32d16471
chore(template-explorer): tweak theme
2020-07-09 12:17:28 -04:00
Evan You
1359cc3a28
wip: compileScriptSetup
2020-07-09 12:17:28 -04:00
Evan You
1ad3f975ed
wip: parser support for script setup
2020-07-09 12:17:28 -04:00
Evan You
20df2f3817
release: v3.0.0-beta.20
2020-07-08 12:45:30 -04:00
Evan You
5e52f4e4d7
fix(compiler-dom): should ignore and warn side effect tags like script and style
...
This keeps behavior consistency with v2.
2020-07-08 12:32:07 -04:00
Evan You
903e8f697e
fix(runtime-core): should allow v-model listeners to fallthrough, but ignore for warning
...
fix #1543
2020-07-08 11:56:47 -04:00
Carlos Rodrigues
1e90605c15
types(runtime-core): provide valid type for default $emit
( #1498 )
2020-07-08 11:51:03 -04:00
meteorlxy
220db9bcda
feat(types): expose WritableComputedRef ( #1500 )
2020-07-08 11:49:07 -04:00
Evan You
87c2a1e50f
fix(compiler-core/v-on): bail caching for member expression handlers on components
...
to preserve correct arity when it is passed down.
fix #1541
2020-07-08 11:48:12 -04:00
Evan You
00f6031fbf
test: assert vnode invalid key warning for NaN
2020-07-08 11:48:12 -04:00
Evan You
4b5ce8b456
refactor(compiler-core): remove unnecessary arg in cached handler codegen
2020-07-08 11:48:12 -04:00
Felix Rilling
829b35e426
chore: typo fixes ( #1546 )
...
* chore: fix typos in comments/JSDoc.
* chore: fix typo in internal function name.
* chore: fix typos in test comments/descriptions/variable names.
2020-07-08 12:32:42 +02:00
Evan You
fe9e227ae4
types: adjust resolveDynamicComponent return type
2020-07-07 12:43:05 -04:00
Evan You
d5ab70ba66
release: v3.0.0-beta.19
2020-07-07 10:04:31 -04:00
wonderful-panda
a5b4332c69
fix(types/tsx): add JSX.IntrinsicAttributes definition ( #1517 )
...
fix #1516
2020-07-06 21:59:26 -04:00
Evan You
58b07069ad
fix(watch): stop instance-bound watchers in post render queue
...
so that changes triggered in beforeUnmount get correct value in callback
fix #1525
2020-07-06 21:50:56 -04:00
Evan You
41db49dfb7
fix(ssr): support dynamic components that resolve to element or vnode
...
fix #1508
2020-07-06 21:23:35 -04:00
Evan You
d7184c99e6
refactor(types): add VNode to VNodeTypes
2020-07-06 21:12:15 -04:00
Evan You
9ee85a3783
chore: fix unintended import
2020-07-06 20:41:38 -04:00
underfin
425335c28b
fix(v-model): consistent nullish value handling with 2.x ( #1530 )
...
fix #1528
2020-07-06 19:02:33 -04:00
Evan You
441c23602f
fix(runtime-dom): should set <input list="...">
as attribute
...
fix #1526
2020-07-06 19:01:33 -04:00
Evan You
31e37b417b
chore: warn NaN vnode key
2020-07-06 18:56:21 -04:00
Evan You
d86b01ba3a
fix(keep-alive): fix keep-alive with scopeId/fallthrough attrs
...
fix #1511
2020-07-06 18:17:40 -04:00
Evan You
6dd59ee301
fix(v-model): should ignore compiled v-model listeners in attr fallthrough
...
fix #1510
2020-07-06 17:00:34 -04:00
djy0
77538ec6d9
fix(runtime-dom/style): fix patchStyle on falsy next value ( #1504 )
...
fix #1506
2020-07-06 16:45:15 -04:00
Evan You
36b6b4f022
fix(runtime-core/template-ref): template ref used in the same template should trigger update
...
fix #1505
2020-07-06 16:40:00 -04:00
Jack Robertson
64e2f46436
fix(compiler-core): add \r
to accepted chars after end tag name ( #1515 )
...
fix #1476
2020-07-06 16:00:26 -04:00
Pick
4f6460a71f
chore(reactivity): remove unused comment ( #1485 ) [ci skip]
2020-07-06 15:57:54 -04:00
Evan You
7f83856f34
release: v3.0.0-beta.18
2020-07-01 21:06:25 -04:00
Evan You
f3e9c1b59d
fix(runtime-core): avoid accidental access of Object.prototype properties
2020-07-01 20:13:02 -04:00
Evan You
4e8e689572
fix: ensure vnode hooks are called consistently regardless of keep-alive
2020-07-01 19:50:13 -04:00