三咲智子 Kevin Deng
5a2f5d59cf
feat(types/slots): support slot presence / props type checks via `defineSlots` macro and `slots` option ( #7982 )
2023-04-03 16:49:16 +08:00
Evan You
4c9bfd2b99
feat(dx): improve readability of displayed types for props
2023-03-24 15:06:43 +08:00
Evan You
58e5c51149
build: upgrade to TypeScript 5.x
2023-03-23 17:11:35 +08:00
Anthony Fu
5f1883ec53
fix(types): accept sync `serverPrefetch()` ( #7000 )
2023-02-01 03:15:51 -05:00
Evan You
f0d78e8c8f
wip(vitest-migration): ssr tests passing
2023-01-26 16:18:40 +08:00
Evan You
4c3203b9b7
chore: run prettier
2022-11-08 14:25:48 +08:00
Rudy
e4de623ea7
fix(types): support inferring injected properties in options api ( #6804 )
...
close #3031
close #5931
2022-11-08 01:09:53 -05:00
Daniel Roe
c3465c1e88
fix(runtime-core): only set cache for object keys ( #6266 )
2022-08-28 23:10:16 -04:00
Evan You
8071ef47b5
fix(types): restore DefineComponent argument order
...
This is necessary for compatibility w/ tsc-generated component types
using DefineComponent.
revert #5416
reopen #3796
fix #5967
2022-05-21 00:55:51 +08:00
edison
2a9e9a4096
refactor(runtime-core): extract function `isReservedPrefix` ( #3265 )
...
* chore(runtime-core): extract function isReservedKey
* chore: improve code
Co-authored-by: Evan You <yyx990803@gmail.com>
2022-05-13 04:52:19 -04:00
那里好脏不可以
6042ab0f2f
chore: type [ci skip]
2022-05-09 22:51:51 -04:00
Zclhlmgqzc
98b821d94a
fix(types): preserve and expose original options on defineComponent return type ( #5416 )
...
fix #3796
2022-05-06 05:44:05 -04:00
Evan You
2f91872e7b
fix(ssr): only cache computed getters during render phase
...
fix #5300
2022-01-21 12:31:54 +08:00
Evan You
6cfd72e760
refactor: move type utils to shared
2022-01-16 15:47:00 +08:00
laineus
741d3b36f2
fix(runtime-core): properly merge unmounted and beforeUnmount options ( #4447 )
2021-09-01 16:41:57 -04:00
webfansplz
0627765b36
chore(types): remove unnecessary type assertions ( #4336 )
2021-08-16 18:19:44 -04:00
Evan You
561e210157
fix(inject): should auto unwrap injected refs
...
fix #4196
2021-07-27 17:52:37 -04:00
Amour1688
69344ff1ae
feat(types): map declared emits to onXXX props in inferred prop types ( #3926 )
2021-07-19 18:22:19 -04:00
Anthony Fu
f5617fc3bb
feat(reactivity): new effectScope API ( #2195 )
2021-07-16 14:30:49 -04:00
Evan You
b0203a3092
feat(expose): always expose $ instance properties on child refs
2021-06-24 21:28:09 -04:00
Evan You
9b607fe409
fix(watch): fix watch option merging from mixins
...
fix #3966
2021-06-22 13:54:43 -04:00
Evan You
51d2be2038
perf: avoid deopt for props/emits normalization when global mixins are used
2021-06-02 15:22:52 -04:00
Evan You
e2ca67b59a
fix(runtime-core): align option merge behavior with Vue 2
...
fix #3566 , #2791
2021-06-02 15:19:56 -04:00
Evan You
1e35a860b9
refactor: adjust component options merge cache strategy
...
BREAKING CHANGE: optionMergeStrategies functions no longer receive
the component instance as the 3rd argument. The argument was technically
internal in Vue 2 and only used for generating warnings, and should not
be needed in userland code. This removal enables much more efficient
caching of option merging.
2021-06-02 10:42:52 -04:00
edison
d6607c9864
fix(runtime-core): fix resolving inheritAttrs from mixins ( #3742 )
...
fix #3741
2021-05-27 21:53:41 -04:00
HcySunYang
9e3708ca75
fix(keep-alive): include/exclude should work with async component ( #3531 )
...
fix #3529
2021-05-25 10:50:00 -04:00
GU Yiling
9b160b9405
fix(types): declared prop keys should always exist in `props` argument ( #3726 )
2021-05-12 17:47:31 -04:00
Stanislav Lashmanov
2bfb8b574d
fix(compat): correctly merge lifecycle hooks when using Vue.extend ( #3762 )
...
fix #3761
2021-05-12 17:13:44 -04:00
Guillaume Chau
349eb0f0ad
feat: onServerPrefetch ( #3070 )
...
Support equivalent of `serverPrefetch` option via Composition API.
2021-05-07 12:00:52 -04:00
Evan You
ce0bbe053a
feat: support component-level `compilerOptions` when using runtime compiler
...
- The `delimiters` component option is deprecated.
Use `compilerOptions.delimiters` instead.
2021-04-28 11:40:16 -04:00
Evan You
1d1af403ca
wip: tests for global api compat
2021-04-27 17:34:19 -04:00
Evan You
7e0224aa8c
wip: more compat tweaks
2021-04-22 14:59:54 -04:00
Evan You
98bc9a26e9
wip: more compat tweaks
2021-04-22 09:49:25 -04:00
Evan You
7dc681c196
wip: filters compat
2021-04-19 12:29:55 -04:00
Evan You
115372dd5b
wip: refactor deprecations into a single file
2021-04-12 18:47:50 -04:00
Evan You
62bfdae043
wip: Vue.util compat
2021-04-11 16:53:43 -04:00
Evan You
f05d6dfd98
wip: render function compat
2021-04-09 18:56:31 -04:00
Evan You
457a56e331
wip: compat for legacy functional component
2021-04-09 15:14:14 -04:00
Evan You
3db29eb773
wip: support per-component compatConfig
2021-04-08 17:11:05 -04:00
Evan You
1c2c77eb9f
wip: apply compat enabled flags to currently implemented features
2021-04-07 16:19:25 -04:00
Evan You
65cc649559
wip: beforeDestroy & destroyed compat
2021-04-07 16:19:24 -04:00
Evan You
d0da0028f2
wip: data option compat
2021-04-07 16:19:24 -04:00
Evan You
870f2a7ba3
fix(watch): this.$watch should support watching keypath
2021-04-07 16:19:04 -04:00
HcySunYang
5db2b141dc
fix(types): add a type-only differentiator to assist Mixin's type infer ( #3481 )
...
fix #3468
2021-03-29 18:07:36 -04:00
Evan You
084e932e85
refactor: simplify lifecycle hook call logic
2021-03-25 16:48:51 -04:00
HcySunYang
b58bb16959
fix(runtime-core): should call chained mixins and extends ( #3040 )
...
fix #3038
2021-03-25 16:39:57 -04:00
HcySunYang
6e88156934
fix(runtime-core): should not cache property access during data() invocation ( #3299 )
...
fix #3297
2021-03-25 15:48:12 -04:00
HcySunYang
e3568bae27
fix(runtime-core): properties in methods should be writable and enumerable in DEV ( #3301 )
...
fix #3300
2021-02-25 09:04:28 -05:00
HcySunYang
2587f36fe3
fix(runtime-core): component methods should override global properties in DEV ( #3074 )
2021-02-05 19:52:40 +01:00
Carlos Rodrigues
6684c6334d
types: mixin and extends typing on data and setup ( #2404 )
...
close #2350
2020-12-04 16:06:34 -05:00