曹仲
d516036ee2
feat(runtime-core): enhance the warning when not explicitly declare the variable
2024-10-25 11:33:42 +08:00
autofix-ci[bot]
848e27cf28
[autofix.ci] apply automated fixes
2024-10-24 07:00:15 +00:00
edison
7928eaa652
Merge branch 'main' into event
2024-10-24 14:59:28 +08:00
山吹色御守
7a64b6734d
types(internal): provide internal options for using `$el` type in language tools ( #11814 )
2024-09-05 20:58:13 +08:00
Evan You
40193696b3
chore(build): use /*@__PURE__*/ annotation consistently
2024-09-04 20:24:33 +08:00
Raman Paulau
c96ec67c87
chore(types): update examples in JSDoc for augmenting global properties and custom options to align with docs ( #11609 )
2024-08-14 15:12:13 +08:00
Kevin Deng 三咲智子
928af5fe2f
refactor(types): enable `isolatedDeclarations` ( #11178 )
2024-08-08 23:05:21 +08:00
Evan You
1ef8f46af0
feat(custom-element): expose this.$host in Options API
2024-08-08 12:40:40 +08:00
Tycho
5ffd1a8945
feat(types): provide internal options for using refs type in language tools ( #11492 )
2024-08-05 10:50:43 +08:00
Evan You
26356264d2
chore: Merge branch 'main' into minor
2024-06-14 12:32:28 +02:00
Evan You
9daf90e29f
refactor(runtime-core): extract getComponentPublicInstance helper
2024-06-10 17:37:32 +08:00
Evan You
96e4738334
fix(types): respect props with default on instance type when using __typeProps
2024-06-05 14:19:31 +08:00
Evan You
1d8727ec97
chore: Merge branch 'main' into minor
2024-05-30 11:21:12 +08:00
远方os
521988d7e1
types(runtime-core): add `OnCleanup` parameter type in `this.$watch` ( #9371 )
2024-05-28 00:25:07 +08:00
远方os
82458b2239
refactor: replace `Object.assign` with `extend` ( #8988 )
2024-05-27 17:08:14 +08:00
Evan You
c146186396
fix(types): fix compat with generated types that rely on CreateComponentPublicInstance
...
close #10842
2024-04-30 10:09:06 -07:00
Carlos Rodrigues
4cc9ca870c
types(defineComponent): support for GlobalComponents, typed Directives and respect `expose` on defineComponent ( #3399 )
...
close #3367
2024-04-25 16:04:03 +08:00
Evan You
5f0c6e4a05
chore: Merge branch 'main' into minor
2024-04-19 22:09:34 +08:00
Evan You
6930e60787
fix(runtime-core): fix regression for $attrs tracking in slots
...
close #10710
2024-04-16 21:53:47 +08:00
Evan You
bb5c31e614
chore: Merge branch 'main' into minor
2024-04-16 00:05:37 +08:00
Evan You
4bc9f39f02
perf(ssr): avoid calling markRaw on component instance proxy
...
The previous behavior invokes the definePropery proxy trap on the
instance proxy and has massive overhead. This change improves Vue
ops/sec by 40% in https://github.com/eknkc/ssr-benchmark
2024-04-12 11:49:45 +08:00
Evan You
05eb4e0fef
Refactor reactivity system to use version counting and doubly-linked list tracking ( #10397 )
...
Bug fixes
close #10236
close #10069
PRs made stale by this one
close #10290
close #10354
close #10189
close #9480
2024-02-25 16:51:49 +08:00
renovate[bot]
237cb45319
chore(deps): update lint ( #10112 )
...
* chore(deps): update lint
* [autofix.ci] apply automated fixes
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-15 18:15:47 +08:00
三咲智子 Kevin Deng
bfe6b459d3
style: update format & lint config ( #9162 )
...
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
ZHAO Jin-Xiang
fff7b864f4
feat: use enum to replace const enum ( #9261 )
...
close #1228
2023-11-29 12:24:50 +08:00
Evan You
1ea775633d
chore: Merge branch 'main' into minor
2023-11-21 09:48:26 +08:00
Rudy
0e1e8f919e
fix(types): fix instance type when props type is incompatible with setup returned type ( #7338 )
...
close #5885
2023-11-09 17:40:36 +08:00
Johnson Chu
16e06ca08f
feat(reactivity): more efficient reactivity system ( #5912 )
...
fix #311 , fix #1811 , fix #6018 , fix #7160 , fix #8714 , fix #9149 , fix #9419 , fix #9464
2023-10-27 23:28:40 +09:00
Carlos Rodrigues
7374e93f02
fix(types): fix ComponentCustomProps augmentation ( #9468 )
...
close #8376
2023-10-24 18:42:47 +08:00
Evan You
a95e612b25
chore: rename globals allow list
...
close #8416
2023-05-26 11:07:13 -05:00
丶远方
3798c5480b
chore: remove unnecessary type assertions ( #8311 )
2023-05-19 07:49:28 +08:00
Evan You
1279b17300
fix(types): remove short syntax support in defineSlots()
...
ref: https://github.com/vuejs/language-tools/issues/2758
2023-05-08 11:53:49 +08:00
Evan You
94fa67a4f7
fix(hmr): force update cached slots during HMR
...
close #7155
close #7158
2023-04-20 10:06:06 +08:00
Evan You
af563bf428
fix(types): more public type argument order fix
2023-04-06 11:12:49 +08:00
Evan You
bdf557f6f2
fix(types): retain type parameters order for public types
2023-04-05 22:30:50 +08:00
三咲智子 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
Evan You
f73925d76a
fix(sfc): ensure `<script setup>` binding behavior consistency on `this` between prod and dev
...
close #6248
2022-11-10 16:02:45 +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
webfansplz
41d9c47300
fix(types): `$watch` callback parameters type ( #6136 )
...
fix #6135
2022-10-26 05:43:42 -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
Evan You
d52907f4eb
fix(runtime-core): ensure consistent identity of $forceUpdate and $nextTick instance methods
...
fix #5556
2022-05-10 14:17:04 +08: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
f641c4b228
fix(runtime-core): fix use of non-existent-in-prod internal property in defineProperty trap
...
fix #5710
2022-04-14 10:00:53 +08:00
Thorsten Lünborg
1612971471
fix(compat): copy additional properties for functions bound via globalProperties ( #4873 )
...
close #4403
2022-04-13 05:53:07 -04:00
宋铄运 (Alan Song)
c6eb3cccce
build: improve treeshakeability ( #5682 )
2022-04-13 05:39:02 -04:00
lidlanca
1574edd490
fix(runtime-core): allow spying on proxy methods regression ( #5417 )
...
fix #5415 (regression by #4216 )
2022-02-13 20:40:12 -05:00